View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Julieeeee Julieeeee is offline
external usenet poster
 
Posts: 10
Default Count number of digits in a cell

That works like a dream. Thanks!!

"Niek Otten" wrote:

=REPT("0",14-LEN(A1))&A1

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Julieeeee" wrote in message ...
|I have a column of numbers that all need to be 14 digits long. So I need to
| add leading zeros... Currently I am doing =00&A4 and that would be great if
| they were all 12 digits (12 + 00 = 14 digits) but some are 7, 8, 9, 10, and
| 11 digits. Is there a formula to count the number of digits in the cell?