Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
DougMash
 
Posts: n/a
Default In Excel, how do I sort a column by the LAST digit of the data?

I need to sort a column of data by the LAST digit of the data. We add a
letter to the end of our catalog numbers to denote "new" (ie 012345-N) or
"used" (12345-U), and I'd love to be able to sort by that last digit. Thanks!
  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

Insert a column and copy this formula all the way down
=right(a1,1)
Now sort using this column as the first sort criterion and the original
column as the second sort criterion.

"DougMash" wrote in message
...
I need to sort a column of data by the LAST digit of the data. We add a
letter to the end of our catalog numbers to denote "new" (ie 012345-N) or
"used" (12345-U), and I'd love to be able to sort by that last digit.
Thanks!



  #3   Report Post  
PegL
 
Posts: n/a
Default

One way: add a column which has the formula =right(a2,1) (assuming your data
is in column A, starting in row 2). Copy that down. If this is fairly
large, you might then do a copy;paste special values to get rid of the
formulas. Then sort on that column 1st, then the original column.

"DougMash" wrote:

I need to sort a column of data by the LAST digit of the data. We add a
letter to the end of our catalog numbers to denote "new" (ie 012345-N) or
"used" (12345-U), and I'd love to be able to sort by that last digit. Thanks!

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 change default column sort to current selection john palmer Excel Worksheet Functions 2 March 8th 05 03:07 PM
HELP! How do you--> Lock a set of rows but also link worksheets to FRUSTRATED Excel Discussion (Misc queries) 6 December 29th 04 10:05 PM
Excel Sort function should not sort the cell formatting! Lisa D.N.1 Excel Worksheet Functions 1 December 28th 04 08:37 PM
How do I sort in Excel? Val Excel Worksheet Functions 1 December 9th 04 05:56 PM
How do I sort a column of formulas in Excel? Gordon Excel Discussion (Misc queries) 2 November 27th 04 01:55 AM


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