#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RLB
 
Posts: n/a
Default Fill with zero

Hi,
I table of 3 digit numeric fields, data in field can be 1-3 significant
digits. I use the numbers as input to another look up that requires all 3
digits and filled with zeros. So I need a formula to determine number of
significant digits in original field and if less than 3 fill to 3 with zeros.
I tried "format" as well as "precision as displayed", but niether worked.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ragdyer
 
Posts: n/a
Default Fill with zero

Are you talking about -
012
OR
120
AND
Are you talking about *true* XL numbers or text?

For text you might try:

=REPT(0,3-LEN(A1))&A1
OR
=TEXT(A1,"000")
for 012

=A1&REPT(0,3-LEN(A1))
for 120


--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"RLB" wrote in message
...
Hi,
I table of 3 digit numeric fields, data in field can be 1-3 significant
digits. I use the numbers as input to another look up that requires all 3
digits and filled with zeros. So I need a formula to determine number of
significant digits in original field and if less than 3 fill to 3 with

zeros.
I tried "format" as well as "precision as displayed", but niether worked.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RLB
 
Posts: n/a
Default Fill with zero

Ragdyer
I tried the =rept and it worked.
Thanks,
RLB

"Ragdyer" wrote:

Are you talking about -
012
OR
120
AND
Are you talking about *true* XL numbers or text?

For text you might try:

=REPT(0,3-LEN(A1))&A1
OR
=TEXT(A1,"000")
for 012

=A1&REPT(0,3-LEN(A1))
for 120


--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"RLB" wrote in message
...
Hi,
I table of 3 digit numeric fields, data in field can be 1-3 significant
digits. I use the numbers as input to another look up that requires all 3
digits and filled with zeros. So I need a formula to determine number of
significant digits in original field and if less than 3 fill to 3 with

zeros.
I tried "format" as well as "precision as displayed", but niether worked.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RLB
 
Posts: n/a
Default Fill with zero

Hi Don,
For some reason format doesn't work on this problem. When I go to format
cell it is a "special with chinese" and when I change to custom 000 it won't
take.
Bob

"Don Guillett" wrote:

To get 001 from 1
formatcustom000

--
Don Guillett
SalesAid Software

"RLB" wrote in message
...
Hi,
I table of 3 digit numeric fields, data in field can be 1-3 significant
digits. I use the numbers as input to another look up that requires all 3
digits and filled with zeros. So I need a formula to determine number of
significant digits in original field and if less than 3 fill to 3 with
zeros.
I tried "format" as well as "precision as displayed", but niether worked.




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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto fill option Thana New Users to Excel 2 March 9th 06 06:13 PM
Fill Effects on Fill Color Rugdoody Excel Discussion (Misc queries) 1 September 14th 05 06:45 PM
Fill handle formula neeraj Excel Worksheet Functions 9 September 13th 05 01:46 AM
How to fill colour in Excel, it appers No fill in my computer? bede Excel Discussion (Misc queries) 1 June 11th 05 03:27 AM
Excel printing problem - won't print cell under a "fill effect" bo dmotika Excel Discussion (Misc queries) 0 May 26th 05 04:38 PM


All times are GMT +1. The time now is 08:45 AM.

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

About Us

"It's about Microsoft Excel"