#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 122
Default Pos Pay

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

Ex. A123456

needs to be 0000123456
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"