Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default CREATE CUSTOM SORT IN EXCEL

How do I sort the following text; EP2323A-01, EP2323A-02, EP2323A-03,
EP2323A-04, EP2323A-05, EP2323B-01, EP2323B-02, EP2323B-03,
EP2323B-04, EP2323B-05....EP2323F-05. when it is not in any particular
order? I want to sort by the number's 01 first then the letter A-F. Then the
number's 02 and then letters A-F.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default CREATE CUSTOM SORT IN EXCEL

You could extract those final two digits into a helper column with
this:

=RIGHT(A1,2)

assuming your data is in A1, and copy this down.

Include the helper column within your sort range and sort on that as
the first field and your data as the second field.

Hope this helps.

Pete

On Nov 13, 2:49*pm, Grayhair
wrote:
How do I sort the following text; EP2323A-01, EP2323A-02, EP2323A-03,
EP2323A-04, EP2323A-05, EP2323B-01, EP2323B-02, EP2323B-03,
EP2323B-04, EP2323B-05....EP2323F-05. when it is not in any particular
order? I want to sort by the number's 01 first then the letter A-F. Then the
number's 02 and then letters A-F.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default CREATE CUSTOM SORT IN EXCEL

hi,

You need 2 helper columns and assuming your data in column A put this in b1
and drag down

=RIGHT(A1,2)

Then this in c1 and drag down

=MID(A1,7,1)

Now select all 3 columns and sort first on column B ascending and a
secondary sort on column C ascending. You will probably be prompted if you
want to sort anything that looks like a number as a number. Click OK

Delete or hide the helper columns.

Mike


"Grayhair" wrote:

How do I sort the following text; EP2323A-01, EP2323A-02, EP2323A-03,
EP2323A-04, EP2323A-05, EP2323B-01, EP2323B-02, EP2323B-03,
EP2323B-04, EP2323B-05....EP2323F-05. when it is not in any particular
order? I want to sort by the number's 01 first then the letter A-F. Then the
number's 02 and then letters A-F.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Custom Sort Error [email protected] Excel Discussion (Misc queries) 0 January 9th 08 05:10 PM
Excel Charts - Create a custom data label Sunil Charts and Charting in Excel 1 January 25th 07 02:18 PM
How do I create a custom font color in Excel? Katie Excel Discussion (Misc queries) 8 September 29th 06 05:43 PM
Excel sort by Fill Color by custom list sort Dash4Cash Excel Discussion (Misc queries) 2 July 29th 05 10:45 PM
how do i create a custom calendar in excel? Dee Excel Discussion (Misc queries) 0 February 10th 05 05:41 PM


All times are GMT +1. The time now is 05:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"