View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default How do I sort a column by last character

You can add another column with a formula like:
=right(a2,1)
to get the rightmost character in A2
Then drag this formula down as far as you need.

And finally sort the entire range using this "helper" column as the primary key.

DPK_02 wrote:

I am trying to sort a row based on the last character in a string of
characters or if reading right to left, I would be sorting by the first
character. Can someone tell me how to do this. Thanks.


--

Dave Peterson