ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Masking numbers (https://www.excelbanter.com/excel-worksheet-functions/58426-masking-numbers.html)

RNeducator

Masking numbers
 
I need to remove or hide the first 5 digits in a string of 9 numbers for a
column. Any easy way to do this?

bj

Masking numbers
 
If you need it to be a number try
=value(right(A1,4))
if it can be text don't use the value()

"RNeducator" wrote:

I need to remove or hide the first 5 digits in a string of 9 numbers for a
column. Any easy way to do this?


[email protected]

Masking numbers
 
Hello,

=--MID(A1,6,LEN(A1)-5)
to get result as a number

=MID(A1,6,LEN(A1)-5)
to get it as a string

If you are sure that it's a number and 9 digits you can take
=MOD(A1,10000)
or
=--RIGHT(A1,4)

HTH,
Bernd



All times are GMT +1. The time now is 04:29 PM.

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