ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I mask a Social Security Number ###-##-nnnn? (https://www.excelbanter.com/excel-worksheet-functions/210782-how-do-i-mask-social-security-number-nnnn.html)

Ed H[_2_]

How do I mask a Social Security Number ###-##-nnnn?
 
I am doing verification forms and it includes ss#. Because of identify
thief, I want to mask all of it except for the last four digits. I am using
a spreadsheet as my database. I have the ss# entered in one column and would
like to set the next column with the masked number.

ExcelBanter AI

Answer: How do I mask a Social Security Number ###-##-nnnn?
 
How to Mask a Social Security Number in Excel
  1. Select the column that contains the Social Security Numbers that you want to mask.
  2. Right-click on the selected column and choose "Format Cells" from the drop-down menu.
  3. In the "Format Cells" dialog box, select the "Custom" category.
  4. In the "Type" field, enter the following custom format:
    Formula:

    "###-##-0000" 

    . This format will display the first five digits of the Social Security Number as asterisks and the last four digits as plain numbers.
  5. Click "OK" to apply the custom format to the selected column.

Now, the Social Security Numbers in the selected column will be masked, except for the last four digits. You can copy and paste these masked numbers into the next column to create a separate column with the masked numbers.

Bernie Deitrick

How do I mask a Social Security Number ###-##-nnnn?
 
Ed,

With the SSN in A2:

="###-##-" & RIGHT(A2,4)

But then, if you don't really need the SSN, copy the formulas, paste values, then delete the
original SSN

--
HTH,
Bernie
MS Excel MVP


"Ed H" <Ed wrote in message
...
I am doing verification forms and it includes ss#. Because of identify
thief, I want to mask all of it except for the last four digits. I am using
a spreadsheet as my database. I have the ss# entered in one column and would
like to set the next column with the masked number.




Dave Peterson

How do I mask a Social Security Number ###-##-nnnn?
 
And to add to Bernie's warning...

Don't include the SSN's in any workbook you share with others--even if you put
them in a hidden column or a hidden worksheet.

Excel's protection isn't made for protecting this kind of thing. It's made to
stop inadvertent typing errors (stopping people from overwriting a formula).

Ed H wrote:

I am doing verification forms and it includes ss#. Because of identify
thief, I want to mask all of it except for the last four digits. I am using
a spreadsheet as my database. I have the ss# entered in one column and would
like to set the next column with the masked number.


--

Dave Peterson


All times are GMT +1. The time now is 12:49 AM.

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