View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
davids
 
Posts: n/a
Default replace numbers with X

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