Reputation: 61
I have a Google Sheet with many numbers from 100-845. Some of them have either "pt" or "A/B/C" behind them, which makes filter putting them at the bottom of the sorting A-Z. Any quick fix you guys know of?
To make it easier to understand; in cell A2:A745 I have numbers as this in each row, which I want to sort:
100
101pt
101pt
102A
102B
103
104
...
I look forward to your replies.
Upvotes: 1
Views: 3891
Reputation: 34245
If they are all 3-digit numbers, you should be able to do this:
=sort(filter(A:A,A:A<>"")&"",1,1)
ie sort them all as text.
This wouldn't work if you had a mix of (say) 1,2 and 3-digit numbers and wanted to sort them as numbers because 3 (for example) would appear after 23.
Upvotes: 1