tricky sorting question

  • Thread starter Thread starter RobR
  • Start date Start date
R

RobR

I need to sort all records by the last 4 digits in a particular column.
ie, my data looks like

alskjflkja0023
lkahsflkjf0021
mnslfkjas0019

I need to order all records by the last 4 digits. Any ideas on
how to go about doing that? All entries are 17 characters
long so it would be the right most 4 digits of the 17 character
string. Thanks!
 
RobR,

I suggest a helper column, with a formula like =RIGHT(A1,4)
Bring the formula down as far as needed, and sort on that column.

Beege
 
Brilliant, worked perfectly. Thanks!

Beege said:
RobR,

I suggest a helper column, with a formula like =RIGHT(A1,4)
Bring the formula down as far as needed, and sort on that column.

Beege
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top