Sorting on only certain characters in a cell

L

Lesa

I am trying to sort on a column that contains items such as the following:

P8692
LT6140
3511

The last 4 numbers are the last 4 of a VIN number and are the only ones I
want to sort on (would like to ignore the first characters and only sort on
the last 4).

Can anyone help?
 
G

galimi

Lesa,

In another column, enter the formula =right(a1,4)

Where a1 can be replaced with the cell value that contains the entire vin.
You can then sort on this new column.
 
M

mcescher

I am trying to sort on a column that contains items such as the following:

P8692
LT6140
3511

The last 4 numbers are the last 4 of a VIN number and are the only ones I
want to sort on (would like to ignore the first characters and only sort on
the last 4).

Can anyone help?

Assuming your data is in column A
You could insert a hidden column next to your data, and then us a
=Right(A1,4) to get the VIN and sort by it.
 

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

Top