Feb 9, 2006 #1 E1Designs IS-IT--Management Joined Oct 20, 2005 Messages 201 Location US I have a list: A A1 B B1 C C1 A B I need it to be sorted like this: A A B B C A1 B1 C1 etc...
Feb 9, 2006 1 #2 AnotherHiggins Technical User Joined Nov 25, 2003 Messages 6,259 Location US I don't think you'll be able to do it with Excel's native functionality. But you could use a 'helper column'. Say your data is in Column A. In column B, enter this formula: [COLOR=blue white]=LEN(A2)&A2[/color] (assuming row 1 contains header data) Then sort by column B. [tt]_____ [blue]-John[/blue][/tt] [tab][red]The plural of anecdote is not data[/red] Help us help you. Please read FAQ181-2886 before posting. Upvote 0 Downvote
I don't think you'll be able to do it with Excel's native functionality. But you could use a 'helper column'. Say your data is in Column A. In column B, enter this formula: [COLOR=blue white]=LEN(A2)&A2[/color] (assuming row 1 contains header data) Then sort by column B. [tt]_____ [blue]-John[/blue][/tt] [tab][red]The plural of anecdote is not data[/red] Help us help you. Please read FAQ181-2886 before posting.
Feb 9, 2006 Thread starter #3 E1Designs IS-IT--Management Joined Oct 20, 2005 Messages 201 Location US That does not seem to be giving the correct results. ;/ Upvote 0 Downvote
Feb 9, 2006 #4 AnotherHiggins Technical User Joined Nov 25, 2003 Messages 6,259 Location US It works fine on the example data you provided. Do you have other datatypes? Maybe you have A2 and you want that sorted after C1? [tt]_____ [blue]-John[/blue][/tt] [tab][red]The plural of anecdote is not data[/red] Help us help you. Please read FAQ181-2886 before posting. Upvote 0 Downvote
It works fine on the example data you provided. Do you have other datatypes? Maybe you have A2 and you want that sorted after C1? [tt]_____ [blue]-John[/blue][/tt] [tab][red]The plural of anecdote is not data[/red] Help us help you. Please read FAQ181-2886 before posting.
Feb 9, 2006 #5 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR And maybe you forgot to copy down the formula ? Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
And maybe you forgot to copy down the formula ? Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Feb 13, 2006 #6 wellas666 Programmer Joined Feb 10, 2006 Messages 23 Location GB Or try this: Data is in Column A. In column B2, enter this formula: =LEN(A2) (assuming row 1 contains header data) and copy down the formula. Then sort by column B,A. Upvote 0 Downvote
Or try this: Data is in Column A. In column B2, enter this formula: =LEN(A2) (assuming row 1 contains header data) and copy down the formula. Then sort by column B,A.
Feb 13, 2006 #7 AnotherHiggins Technical User Joined Nov 25, 2003 Messages 6,259 Location US wellas666, I don't see how that would work any differently than my suggestion. Are you still having trouble, E1Designs? [tt]_____ [blue]-John[/blue][/tt] [tab][red]The plural of anecdote is not data[/red] Help us help you. Please read FAQ181-2886 before posting. Upvote 0 Downvote
wellas666, I don't see how that would work any differently than my suggestion. Are you still having trouble, E1Designs? [tt]_____ [blue]-John[/blue][/tt] [tab][red]The plural of anecdote is not data[/red] Help us help you. Please read FAQ181-2886 before posting.
Feb 14, 2006 Thread starter #8 E1Designs IS-IT--Management Joined Oct 20, 2005 Messages 201 Location US I got it, thanks all Upvote 0 Downvote