If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 Sort combination of letters and numbers
 Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

## Sort combination of letters and numbers

#1
June 6th 08, 06:19 PM posted to microsoft.public.excel.newusers
 Millabird external usenet poster Posts: 1
Sort combination of letters and numbers

I have this type of data to sort: C-1, C-2, C-3, C-4, C-5, C-6, all the way
up to C-500, but it doesn't sort into number order. How can I make it sort
by number, and disregard the "C-" part? thanks!
#2
June 6th 08, 07:14 PM posted to microsoft.public.excel.newusers
 Jim Cone[_2_] external usenet poster Posts: 1,549
Sort combination of letters and numbers

Assuming your data is in column C and it starts in row 1...
In a blank column next to your data enter this formula...
=RIGHT(C1,LEN(C1)-2)
Fill the formula down to the bottom of your data.
Select both columns and sort using the new column as the key.
--
Jim Cone
Portland, Oregon USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins - try the "Special Sort" free trial - no registration)

"Millabird" wrote in message
I have this type of data to sort: C-1, C-2, C-3, C-4, C-5, C-6, all the way
up to C-500, but it doesn't sort into number order. How can I make it sort
by number, and disregard the "C-" part? thanks!
#3
June 6th 08, 10:36 PM posted to microsoft.public.excel.newusers
 Bernard Liengme external usenet poster Posts: 4,393
Sort combination of letters and numbers

You will need a 'helper' column with the number extracted
If the C-nnnn is in A1, use =--MID(A1,3,255) to get nnn
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Millabird" > wrote in message
...
>I have this type of data to sort: C-1, C-2, C-3, C-4, C-5, C-6, all the
>way
> up to C-500, but it doesn't sort into number order. How can I make it
> sort
> by number, and disregard the "C-" part? thanks!

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts vB code is On Smilies are On [IMG] code is On HTML code is Off
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Excel Newsgroups     Excel Discussion (Misc queries)     Setting up and Configuration of Excel     New Users to Excel     Excel Worksheet Functions     Links and Linking in Excel     Charts and Charting in Excel     Excel Programming About ExcelBanter     About this forum

 Similar Threads Thread Thread Starter Forum Replies Last Post SORT A LIST OF NUMBERS AND LETTERS A,B,C,D AND FIND MAX darryl Excel Worksheet Functions 2 August 31st 06 03:53 AM sort a range of numbers ignoring preceding letters j0hnt52 Excel Discussion (Misc queries) 1 April 17th 06 04:04 AM finding out the combination of letters! via135 Excel Worksheet Functions 2 February 13th 06 05:12 AM Sort mixed numbers/letters V-ger Excel Discussion (Misc queries) 1 November 14th 05 10:49 PM How do I sort letters before numbers in Excel? RiverGirl Excel Discussion (Misc queries) 4 May 27th 05 04:09 PM

All times are GMT +1. The time now is 11:44 AM.