ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   replace last four of ssn with xxxx (https://www.excelbanter.com/excel-discussion-misc-queries/87133-replace-last-four-ssn-xxxx.html)

mary s

replace last four of ssn with xxxx
 
How do I replace the last four of an ssn with xxxx? I tried:
Insert function
Old text A1 (or whatever start cell)
Start num 8
Num char 4
New text xxxx

The end result I want is 123-45-xxxx but every time i try to copy the
formula down it alters the successive ssns. Any ideas?


dlw

replace last four of ssn with xxxx
 
how about: =left(a1,7)&"xxxx"

"mary s" wrote:

How do I replace the last four of an ssn with xxxx? I tried:
Insert function
Old text A1 (or whatever start cell)
Start num 8
Num char 4
New text xxxx

The end result I want is 123-45-xxxx but every time i try to copy the
formula down it alters the successive ssns. Any ideas?


Jim May

replace last four of ssn with xxxx
 
=LEFT(A1,LEN(A1)-4)&"xxxx"


"mary s" wrote:

How do I replace the last four of an ssn with xxxx? I tried:
Insert function
Old text A1 (or whatever start cell)
Start num 8
Num char 4
New text xxxx

The end result I want is 123-45-xxxx but every time i try to copy the
formula down it alters the successive ssns. Any ideas?


mary s

replace last four of ssn with xxxx
 
Is there any way I can lock that formula so that when I copy it down a column
of SSNs the following SSNs don't change?

"dlw" wrote:

how about: =left(a1,7)&"xxxx"

"mary s" wrote:

How do I replace the last four of an ssn with xxxx? I tried:
Insert function
Old text A1 (or whatever start cell)
Start num 8
Num char 4
New text xxxx

The end result I want is 123-45-xxxx but every time i try to copy the
formula down it alters the successive ssns. Any ideas?


David Biddulph

replace last four of ssn with xxxx
 
"mary s" wrote in message
...
"dlw" wrote:
"mary s" wrote:

How do I replace the last four of an ssn with xxxx? I tried:
Insert function
Old text A1 (or whatever start cell)
Start num 8
Num char 4
New text xxxx

The end result I want is 123-45-xxxx but every time i try to copy the
formula down it alters the successive ssns. Any ideas?


how about: =left(a1,7)&"xxxx"


Is there any way I can lock that formula so that when I copy it down a
column
of SSNs the following SSNs don't change?


You're not copying the formula down column A, are you? If your existing
SSNs are in column A, put your formula in column B (or any convenient empty
column). If, when you've done that, you want to replace the old SSNs with
the new ones, you can cut, then paste special/ values.
--
David Biddulph



mary s

replace last four of ssn with xxxx
 
Yeah. I was creating the formula and copying it down the same column. They
all work once I enter them in a new blank column and copy down. Thanks
everyone for your help!

"David Biddulph" wrote:

"mary s" wrote in message
...
"dlw" wrote:
"mary s" wrote:

How do I replace the last four of an ssn with xxxx? I tried:
Insert function
Old text A1 (or whatever start cell)
Start num 8
Num char 4
New text xxxx

The end result I want is 123-45-xxxx but every time i try to copy the
formula down it alters the successive ssns. Any ideas?


how about: =left(a1,7)&"xxxx"


Is there any way I can lock that formula so that when I copy it down a
column
of SSNs the following SSNs don't change?


You're not copying the formula down column A, are you? If your existing
SSNs are in column A, put your formula in column B (or any convenient empty
column). If, when you've done that, you want to replace the old SSNs with
the new ones, you can cut, then paste special/ values.
--
David Biddulph





All times are GMT +1. The time now is 09:43 PM.

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