ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sorting (https://www.excelbanter.com/excel-worksheet-functions/181192-sorting.html)

Bridget

Sorting
 
I have a report that contains names,SSN's, and dates. I need to sort the
sheet by the last 2 of the SSN. Can this be done?

Mike H

Sorting
 
Bridget,

Insert a 'helper' column next to the SSN No and extract the 2 rightmost
digits to it select all your columns and sort by that

To extract last 2 digits use
=RIGHT(A1,2)
You may have to tell Excel to sort anything that looks like a number as a
number

Mike

"Bridget" wrote:

I have a report that contains names,SSN's, and dates. I need to sort the
sheet by the last 2 of the SSN. Can this be done?


Gord Dibben

Sorting
 
If the SS numbers are in a column by themselves, add a helper column with this
formula.

=RIGHT(B2,2) when Column B is SSN's

Assumes D is helper column and D1 contains a header.

Sort on column D


Gord Dibben MS Excel MVP

On Tue, 25 Mar 2008 05:35:06 -0700, Bridget
wrote:

I have a report that contains names,SSN's, and dates. I need to sort the
sheet by the last 2 of the SSN. Can this be done?




All times are GMT +1. The time now is 01:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com