The new forums will be named Coin Return (based on the most recent
vote)! You can check on the status and timeline of the transition to the new forums
here.
The Guiding Principles and New Rules
document is now in effect.
Excel Sort Text Shenanigans
This is a question I'm asking for Mrs. Enc. She has a column in excel with numbers that look like this:
1101
1283
6739
7288
1101C
2374T
4563D
What she wants is for these to sort by number and then letter, so 1101 is followed by 1101C, rather than appearing after all the 4 digit numbers are sorted out, but general sorting and turning everything to text formatting isn't doing it. The list she is working with is many thousands long and she has to manually sort these multiple times a week since COVID as her previous software solution cant be used at home.
Is there a way to get EXCEL to do this as she wishes?
0
Posts
I haven't done it that way before, but it seems to work well.
The way I've done it is to set up a new column with =TEXT(A1, "#"), copied downwards (adjusting for the correct cell reference), then Copy -> Paste Special (Values) into a third column, and then sorting the result, selecting "Sort numbers and numbers stored as text separately" when prompted. But I think text to columns gets there in fewer steps.
This is also good for other quirks like dates that don't filter like dates should.
Can you expand on this part?
This worked yesterday! Thanks!
Seems like you've solved it, so not sure if this is needed but:
1. Highlight the column with the data then on the data tab click "text to columns".
2. Click next.
3. Uncheck 'tab' and click next. (you can probably just click next in your case).
4. Switch the column data format to 'text' and click finish.
Thanks all! This helped her a lot and saved her about 6 hours of time on a weekly basis right now.
@ceres this can be closed.