Sorting cells with letter and number content

tpepere

New Member
Joined
Mar 10, 2004
Messages
1
I'm trying to sort a substantial list of titles e.g. C1, C2, C3, C4... C10, C11, C12, C100 etc. However on sorting Excel arranges the cells C1, C10, C11, C12, C100, C2, C3, C4 (default sort order). Is there a way to sort the cells paying attention to the numeric value e.g. C1 then C2, not C1 then C100?

Kind regards.
 

Some videos you may like

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

earlyd

Well-known Member
Joined
Dec 10, 2002
Messages
1,199
Can you pad your numeric portion with leading zeroes, like C001, C002,...C100?
 

onlyadrafter

Well-known Member
Joined
Aug 19, 2003
Messages
5,703
Platform
  1. Windows
Hello,

Or can you split the cell into two columns with C and the number,then sort?

Alternatively create a custom list C1, C2.. C100 then use this asthe SORT under options.
 

GorD

Well-known Member
Joined
Jan 17, 2004
Messages
1,446
You can create a custom list in tools options custom lists. Add a new series as C1,C2,C3.

Then when you sort, change the options box to your list type instead of normal.

hope this helps
 

Watch MrExcel Video

Forum statistics

Threads
1,122,335
Messages
5,595,573
Members
413,996
Latest member
mabelO

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
Top