Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'm relatively new to Excel I'm wondering if there is a formula i can use
that replaces the last four numbers in a sequence with "X" no matter the length of the sequence eg: 149876 14xxxx 1234789 123xxxx This is not like the social security number where the amount of numbers is fixed they are varying lengths. Thank you |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() one way would be =REPLACE(A1,LEN(A1)-3,4,"xxxx") -- daddylonglegs ------------------------------------------------------------------------ daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486 View this thread: http://www.excelforum.com/showthread...hreadid=522896 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Apologies I need it to replace the first four digits with X
eg Account number = 123456 outcome I require is XXXX56 "daddylonglegs" wrote: one way would be =REPLACE(A1,LEN(A1)-3,4,"xxxx") -- daddylonglegs ------------------------------------------------------------------------ daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486 View this thread: http://www.excelforum.com/showthread...hreadid=522896 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Try =REPLACE(A1,1,4,"xxxx") -- daddylonglegs ------------------------------------------------------------------------ daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486 View this thread: http://www.excelforum.com/showthread...hreadid=522896 |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Just alter daddylonglegs formula
From =REPLACE(A1,LEN(A1)-3,4,"xxxx") Last 4 To =REPLACE(A1,1,4,"xxxx") First 4 George davids wrote: Apologies I need it to replace the first four digits with X eg Account number = 123456 outcome I require is XXXX56 "daddylonglegs" wrote: one way would be =REPLACE(A1,LEN(A1)-3,4,"xxxx") -- daddylonglegs ------------------------------------------------------------------------ daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486 View this thread: http://www.excelforum.com/showthread...hreadid=522896 |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=left(trim(a1),len(a1)-4)&"xxxx"
"davids" wrote: I'm relatively new to Excel I'm wondering if there is a formula i can use that replaces the last four numbers in a sequence with "X" no matter the length of the sequence eg: 149876 14xxxx 1234789 123xxxx This is not like the social security number where the amount of numbers is fixed they are varying lengths. Thank you |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to Replace Numbers with Phrases | Excel Discussion (Misc queries) | |||
How to Replace Numbers with Phrases | Excel Discussion (Misc queries) | |||
How do I sort letters before numbers in Excel? | Excel Discussion (Misc queries) | |||
Paste rows of numbers from Word into single Excel cell | Excel Discussion (Misc queries) | |||
finding common numbers in large lists | Excel Worksheet Functions |