Question related to sort letters and numbers

%3CLINGO-SUB%20id%3D%22lingo-sub-2979263%22%20slang%3D%22en-US%22%3EQuestion%20related%20to%20sort%20letters%20and%20numbers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2979263%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Everyone%2C%3C%2FP%3E%3CP%3EI%20have%20a%20Data%3C%2FP%3E%3CP%3Elike%20-%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%20(5348).png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F327897i3D73436B8E951E8C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%20(5348).png%22%20alt%3D%22Screenshot%20(5348).png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20sorting%2C%20it%20come%20Person%201%2C%20Person%20101%2C%20Person%203%2C%20Person%204%20and%20Person%205%3C%2FP%3E%3CP%3Elike%20-%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%20(5349).png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F327899i79D16EDA01BB2EB2%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%20(5349).png%22%20alt%3D%22Screenshot%20(5349).png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20will%20not%20sort%20ascending%20order%20like%20Person%201%2C%26nbsp%3BPerson%203%2C%20Person%204%2C%26nbsp%3B%20Person%205%20and%20Person%20101%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20How%20to%20sort%20by%20ascending%20order%20by%20using%20EXCEL%20FORMULA%20or%20VBA%20CODE%3F%3C%2FP%3E%3CP%3EPlease%20help...%3F%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E(I%20am%20using%20Microsoft%20Office%202019%20Home%20and%20Student)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2979263%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2979285%22%20slang%3D%22en-US%22%3ERe%3A%20Question%20related%20to%20sort%20letters%20and%20numbers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2979285%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F811137%22%20target%3D%22_blank%22%3E%40Zan_Hanifee%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20may%20add%20helper%20columns%20extracting%20numbers%20only%20and%20sort%20range%20by%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Regular Contributor

Hello Everyone,

I have a Data

like - 

Screenshot (5348).png

 

After sorting, it come Person 1, Person 101, Person 3, Person 4 and Person 5

like - 

Screenshot (5349).png

 

It will not sort ascending order like Person 1, Person 3, Person 4,  Person 5 and Person 101

 

So, How to sort by ascending order by using EXCEL FORMULA or VBA CODE?

Please help..??

 

(I am using Microsoft Office 2019 Home and Student)

 

 

 

 

 

3 Replies

@Zan_Hanifee 

You may add helper columns extracting numbers only and sort range by it.

How can we do it sir?

@Zan_Hanifee 

Slightly depends on your Excel version and actual data.

Helper column could be added as

image.png

when select both and Data -> Sort. Result is

image.png