ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Pos Pay (https://www.excelbanter.com/excel-worksheet-functions/195801-pos-pay.html)

Melissa

Pos Pay
 
I need to extract numbers only and zero fill to 10 places

Ex. A123456

needs to be 0000123456

Teethless mama

Pos Pay
 
=TEXT(RIGHT(A1,LEN(A1)-1),"0000000000")

"Melissa" wrote:

I need to extract numbers only and zero fill to 10 places

Ex. A123456

needs to be 0000123456


T. Valko

Pos Pay
 
Assuming the number portion always starts at the 2nd character.

This returns a TEXT string.

=TEXT(MID(A1,2,10),"0000000000")

If you want the number to remain a numeric number:

=--MID(A1,2,10)

Then custom number format as 0000000000

--
Biff
Microsoft Excel MVP


"Melissa" wrote in message
...
I need to extract numbers only and zero fill to 10 places

Ex. A123456

needs to be 0000123456





All times are GMT +1. The time now is 04:07 AM.

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