Thread
:
Simple alpha numeric sorting
View Single Post
#
2
Posted to microsoft.public.excel.programming
Claus Busch
external usenet poster
Posts: 3,872
Simple alpha numeric sorting
Hi,
Am Sun, 5 Feb 2017 15:45:17 -0800 (PST) schrieb
:
I have absolutely NO experience with excel, and I am trying to sort lot numbers which are followed by a letter; eg:
1B
5B
19B
45B
190B
247B
560B
However I can only sort so it renders my results
1B
19B
190B
247B
45B
5B
560B
if your values in column A then make a helper column with this formula:
=IF(CODE(RIGHT(A1,1)) 64,LEFT(A1,LEN(A1)-1)*1000+CODE(RIGHT(LOWER(A1),1)),A1*1000)
and copy down. Then sort your table by the helper column.
Regards
Claus B.
--
Windows10
Office 2016
Reply With Quote
Claus Busch
View Public Profile
Find all posts by Claus Busch