Forum Discussion
Irregular Sorting in Excel
If your laptop is on Windows did you have a chance to test on another Windows machine? Or perhaps you could submit the file in question here to remove sensitive information.
- Paul_CastelinoMay 02, 2020Copper Contributor
SergeiBaklanAttached is the file. In one column in the data sorted from another device and in another column is the file sorted from my laptop.
- SergeiBaklanMay 02, 2020Diamond Contributor
Yes, as Detlef_Lewin mentioned there are about hundred texts with not-printable unicode characters in front. Excel on Windows uses unicode sorting and to my knowledge there is no option to shift on ANSII sorting and back. Not sure how Excel for Mac works, based on your sample it performs ANSII sorting.
On Excel for Windows Power Query sorts correctly ignoring non-printable unicode characters.
- Paul_CastelinoMay 02, 2020Copper Contributor
Tried entering the formula but its giving an error message.
I hope you have the file. What corrections would I need to do?
- Detlef_LewinMay 02, 2020Silver Contributor
Check at least the first three characters of each text:
=UNICODE(MID($D2;1;1)) =UNICODE(MID($D2;2;1)) =UNICODE(MID($D2;3;1))