Forum Discussion
Sort numerically with - A-Z after them.
Hello,
I assume that the problem is that number will be sorted after text, like in this screenshot, is that correct?
When cells contain a mix of text and numbers, text will be sorted after the numbers. If you want to sort strictly by the numerical value, you need to pull the number into a helper column. The formula to do that is showing in cell E12
=LEFT(D12,FIND("-",D12&"-")-1)+0
Now you can sort the table by the helper column.
- ccotterJan 17, 2019Copper Contributor
More like this.
- Jan 17, 2019
Would you like me to keep guessing what you want to achieve and what the problems are, or are you prepared to speed things up a bit and use your own words?
So, you have text that starts with numeric characters and has leading zeros. Fine.
Now what? With real numbers ranging from ?? to ??, where would you like to see your text cells in the sort order? Please give me something to aim for.
Mock it up and post the expected result, then things will be so much easier to work out.
- ccotterJan 17, 2019Copper Contributor
Here is what I am working with. The current is the top section and the expected is the bottom. I have roughly 4k tools to sort.