Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 44
Default How to sort combined alphabet and numerical value?

I have values like in column A: (1-Mahesh), (Denish), (Jignesh), (2-Ramesh),
(1,1-Luicey), (1,1,1-Burman), (2,3,3-Barton).....etc.

I want it such a way that in apears like Alphabet, not number. I also want
to include numerical value. Sort order like, 2,2,3-Barton; 1,1,1-Burman;
Denish; Jignesh, 1,1-Lucey; 1-Mahesh; 2-Ramesh.

Hope someone have solution.

Harshad


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default How to sort combined alphabet and numerical value?

Put this formula in B1:

=IF(ISNUMBER(FIND("-",A1)),RIGHT(A1,LEN(A1)-FIND("-",A1)),A1)

and copy down as required.

Then apply the sort to both columns, using column B as the sort field.

Hope this helps.

Pete

On Sep 24, 6:05*am, Harshad wrote:
I have values like in column A: (1-Mahesh), (Denish), (Jignesh), (2-Ramesh),
(1,1-Luicey), (1,1,1-Burman), (2,3,3-Barton).....etc.

I want it such a way that in apears like Alphabet, not number. I also want
to include numerical value. Sort order like, 2,2,3-Barton; 1,1,1-Burman;
Denish; Jignesh, 1,1-Lucey; *1-Mahesh; 2-Ramesh.

Hope someone have solution.

Harshad


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 44
Default How to sort combined alphabet and numerical value?

Hi dera Pete,

Thank you very much.
Your answer has saved my so many working hrs.

Keep it up.

With regards,
Harshad

"Pete_UK" wrote:

Put this formula in B1:

=IF(ISNUMBER(FIND("-",A1)),RIGHT(A1,LEN(A1)-FIND("-",A1)),A1)

and copy down as required.

Then apply the sort to both columns, using column B as the sort field.

Hope this helps.

Pete

On Sep 24, 6:05 am, Harshad wrote:
I have values like in column A: (1-Mahesh), (Denish), (Jignesh), (2-Ramesh),
(1,1-Luicey), (1,1,1-Burman), (2,3,3-Barton).....etc.

I want it such a way that in apears like Alphabet, not number. I also want
to include numerical value. Sort order like, 2,2,3-Barton; 1,1,1-Burman;
Denish; Jignesh, 1,1-Lucey; 1-Mahesh; 2-Ramesh.

Hope someone have solution.

Harshad



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
Combine data in two columns into one and sort the combined column alphabetically..how?? Tommy[_4_] Excel Discussion (Misc queries) 5 May 15th 23 11:46 AM
Excluding Text combined with numerical value in EXCEL 2003 MW Excel Discussion (Misc queries) 1 September 11th 08 05:31 PM
Sort by Last Name when name is combined Lisapbs Excel Worksheet Functions 5 April 23rd 07 07:11 PM
how do i program alphabet letters to represent numerical values? Jo Excel Discussion (Misc queries) 4 October 8th 06 11:37 PM
How do you change sort defaults for combined text number & hyphen. Anna Excel Discussion (Misc queries) 1 April 8th 05 05:01 AM


All times are GMT +1. The time now is 09:08 AM.

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

About Us

"It's about Microsoft Excel"