Convert SSN in one column to text in the adjacent column

Status
Not open for further replies.

realtoast

New Member
Joined
Nov 24, 2015
Messages
47
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
I have a table with around 10,000 records. The records are medical claims, where an individual claimant may have many rows of different types of claims. The individuals are identified by their Social Security Number (ClaimantID). I've created a column, Claimant Alias, where I use the =RIGHT() function to only show the last four digits of the adjacent ClaimantID. This works fine and the last four digits of the SSN can be used to pivot (unless there are duplicates of the last four digits with more than one person; which is a distinct possibility).

But, I would like to take it a step further and replace, say, the digits of the SSN with text in an adjacent column. For instance, 123-45-6785 would convert to, say Claimant1. Then, in the next change in SSN records would be Claimant2, etc. So, in the end, the column, Claimant Alias would have only Claimant[X] from which I could pivot.

Any tips greatly appreciated.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Please do not post the same question multiple times. Questions of a duplicate nature will be locked or deleted, per #12 of the Forum Rules and points 6 & 7 of the Forum Use Guidelines.

Any bumps, clarifications, or follow-ups should be posted to the original thread.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,837
Messages
6,181,255
Members
453,028
Latest member
letswriteafairytale

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top