Sort By Column A When Letter On End

Dazzawm

Well-known Member
Joined
Jan 24, 2011
Messages
3,748
Office Version
  1. 365
Platform
  1. Windows
I have column A with data of varying lengths. I need a macro please that will sort the entire sheet by column A when there is a letter on the end like below first. I have highlighted for clarity once sort is done. Thanks

Before
AUA316D 5005A
AUA316D 5005B
AUA320D 1032
AUA320D 1034
AUA320D 2001B
AUA320D 2030
AUA320D 2034


After
AUA316D 5005A
AUA316D 5005B
AUA320D 2001B
AUA320D 1032
AUA320D 1034
AUA320D 2030
AUA320D 2034
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Does it have to be a macro?

MrExcelPlayground20.xlsx
ABCD
1ThingThingAThingBThingC
2AUA316D 5005AA35
3AUA316D 5005BB43
4AUA320D 1032C22
5AUA320D 1034D39
6AUA320D 2001BE44
7AUA320D 2030F55
8AUA320D 2034G33
9
10
11ThingThingAThingBThingC
12AUA316D 5005AA35
13AUA316D 5005BB43
14AUA320D 2001BE44
15AUA320D 1032C22
16AUA320D 1034D39
17AUA320D 2030F55
18AUA320D 2034G33
Sheet13
Cell Formulas
RangeFormula
A12:D18A12=SORTBY(A2:D8,ISNUMBER(VALUE(RIGHT(A2:A8,1))),1,A2:A8,1)
Dynamic array formulas.
 
Upvote 0
Does it have to be a macro?

MrExcelPlayground20.xlsx
ABCD
1ThingThingAThingBThingC
2AUA316D 5005AA35
3AUA316D 5005BB43
4AUA320D 1032C22
5AUA320D 1034D39
6AUA320D 2001BE44
7AUA320D 2030F55
8AUA320D 2034G33
9
10
11ThingThingAThingBThingC
12AUA316D 5005AA35
13AUA316D 5005BB43
14AUA320D 2001BE44
15AUA320D 1032C22
16AUA320D 1034D39
17AUA320D 2030F55
18AUA320D 2034G33
Sheet13
Cell Formulas
RangeFormula
A12:D18A12=SORTBY(A2:D8,ISNUMBER(VALUE(RIGHT(A2:A8,1))),1,A2:A8,1)
Dynamic array formulas.
It does have to be a macro for use on many files of varying size.
 
Upvote 0
Hopefully someone will come to my rescue!
 
Upvote 0
Ask the question again in a new thread. People tend to look at unanswered more than answered questions.
 
Upvote 0

Forum statistics

Threads
1,215,129
Messages
6,123,214
Members
449,091
Latest member
jeremy_bp001

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top