How do you sort a column of numbers with hyphens?
Example ##-##-####.
I want to sort by the last numbers
Thanks
How do you sort a column of numbers with hyphens?
Example ##-##-####.
I want to sort by the last numbers
Thanks
Unfortunately this can't be done because what you are sorting aren't numbers, technically, but text strings. The trick would be to separate theĀ final digits from the leaders and use them to sort by.
=MID($A2,FIND(CHAR(160),SUBSTITUTE($A2,"-",CHAR(160),2))+1,20)
and copied down.The Numbers and Helper columns could be anywhere on the sheet and have any names you prefer. There could be other data on the sheet. So long as they are all selected rows will stay together after the sort.