Forum Discussion
Excel not sorting numbers correctly - smallest to largest etc.
If they are not generated within Excel but copy/pasted from the Web, most probably you have non-printable characters inside your cells with numbers. That doesn't matter you used same site or not.
You may check by LEN() applied to cells if all of them returns 4.
If not you may apply =CLEAN(A1)*1 to such cells to remove non-printable characters.
- Monty_GMay 20, 2019Copper Contributor
SergeiBaklan, can you explain in detail how to do this, how do I apply this, where do i type it, find it, etc.
- DLansApr 15, 2019Copper Contributor
SergeiBaklan Thank you, the =CLEAN function helped me out immensely. I cannot see any difference between the input and the output, but the output I can sort properly. Thanks again!
- SergeiBaklanApr 15, 2019Diamond Contributor
DLans , so far so good, you are welcome. You could see the difference if check =LEN(A1) and =LEN(CLEAN(A1)) if in A1 is initial value