Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 410
Default Sorting Starting at Second Character

I think the Subject says it all. I have a list of items and they
start with M. So they read M1, M2, M3 ...Etc. When you sort this it
puts all the M1s together, like M1, M10, M100. Is there a way in
excel to have it skip the first character and sort by just the
numbers? If there is not, then I will have to split it into seperate
columns, sort, and then put them back together.

Thanks,
Jay
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Sorting Starting at Second Character

hi
custom sorts are usually done with a helper column.
in a blank column to the right of your data, enter this formula.....
assuming a header row....
=right(A2,len(a2)-1)

copy down as far as needed.
sort with the helper column as primary sort.

regards
FSt1
"jlclyde" wrote:

I think the Subject says it all. I have a list of items and they
start with M. So they read M1, M2, M3 ...Etc. When you sort this it
puts all the M1s together, like M1, M10, M100. Is there a way in
excel to have it skip the first character and sort by just the
numbers? If there is not, then I will have to split it into seperate
columns, sort, and then put them back together.

Thanks,
Jay

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Sorting Starting at Second Character

In an adjacent column =RIGHT(A1,LEN(A1)-1)

Double-click on the cell to fill down.

Sort on that column.

If happy, delete the column.


Gord Dibben MS Excel MVP


On Wed, 21 Jan 2009 13:54:32 -0800 (PST), jlclyde
wrote:

I think the Subject says it all. I have a list of items and they
start with M. So they read M1, M2, M3 ...Etc. When you sort this it
puts all the M1s together, like M1, M10, M100. Is there a way in
excel to have it skip the first character and sort by just the
numbers? If there is not, then I will have to split it into seperate
columns, sort, and then put them back together.

Thanks,
Jay


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Sorting Starting at Second Character

Note: when you are sorting you will be asked what to do with text that look
like numbers.

Select treat as numbers.


Gord

On Wed, 21 Jan 2009 14:51:33 -0800, Gord Dibben <gorddibbATshawDOTca wrote:

In an adjacent column =RIGHT(A1,LEN(A1)-1)

Double-click on the cell to fill down.

Sort on that column.

If happy, delete the column.


Gord Dibben MS Excel MVP


On Wed, 21 Jan 2009 13:54:32 -0800 (PST), jlclyde
wrote:

I think the Subject says it all. I have a list of items and they
start with M. So they read M1, M2, M3 ...Etc. When you sort this it
puts all the M1s together, like M1, M10, M100. Is there a way in
excel to have it skip the first character and sort by just the
numbers? If there is not, then I will have to split it into seperate
columns, sort, and then put them back together.

Thanks,
Jay


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 410
Default Sorting Starting at Second Character

On Jan 21, 4:23*pm, FSt1 wrote:
hi
custom sorts are usually done with a helper column.
in a blank column to the right of your data, enter this formula.....
assuming a header row....
=right(A2,len(a2)-1)

copy down as far as needed.
sort with the helper column as primary sort.

regards
FSt1



"jlclyde" wrote:
I think the Subject says it all. *I have a list of items and they
start with M. *So they read M1, M2, M3 ...Etc. *When you sort this it
puts all the M1s together, like M1, M10, M100. *Is there a way in
excel to have it skip the first character and sort by just the
numbers? *If there is not, then I will have to split it into seperate
columns, sort, and then put them back together.


Thanks,
Jay- Hide quoted text -


- Show quoted text -


i am thinking that I will just do a macro to do text to columns. Then
sort, then put the cells back together. should be pretty simple. I
was just hoping for another way to do this.

Thanks,
Jay


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Sorting Starting at Second Character

hi
a helper column would be simplier.

my thoughts
Regards
FSt1

"jlclyde" wrote:

On Jan 21, 4:23 pm, FSt1 wrote:
hi
custom sorts are usually done with a helper column.
in a blank column to the right of your data, enter this formula.....
assuming a header row....
=right(A2,len(a2)-1)

copy down as far as needed.
sort with the helper column as primary sort.

regards
FSt1



"jlclyde" wrote:
I think the Subject says it all. I have a list of items and they
start with M. So they read M1, M2, M3 ...Etc. When you sort this it
puts all the M1s together, like M1, M10, M100. Is there a way in
excel to have it skip the first character and sort by just the
numbers? If there is not, then I will have to split it into seperate
columns, sort, and then put them back together.


Thanks,
Jay- Hide quoted text -


- Show quoted text -


i am thinking that I will just do a macro to do text to columns. Then
sort, then put the cells back together. should be pretty simple. I
was just hoping for another way to do this.

Thanks,
Jay

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
sorting by character [email protected] Excel Worksheet Functions 7 September 18th 07 09:08 AM
find a character location in a string starting from the right funtipoom Excel Worksheet Functions 2 February 15th 07 12:18 AM
Sorting: Sorting by the First Character dzuy Excel Discussion (Misc queries) 2 June 22nd 06 08:27 PM
sort starting from a specific character (@ sign) for email addres RobJ Excel Discussion (Misc queries) 1 June 12th 06 09:18 PM
Excel and access should permit sorting by last character Eriemaster Excel Worksheet Functions 0 July 29th 05 09:13 PM


All times are GMT +1. The time now is 07:11 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"