ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   counting and adding (https://www.excelbanter.com/excel-discussion-misc-queries/146224-counting-adding.html)

A.S.

counting and adding
 
I wanted to know if there is a formula that counts the number of digits in a
cell then adds zeroes until there are 6 digits. For example,

1238
37830
38
782
628918

With formula would look like:
123800
378300
380000
782000
628918

Thanks,



David Biddulph[_2_]

counting and adding
 
=A1*10^(6-LEN(A1))
--
David Biddulph

"A.S." wrote in message
...
I wanted to know if there is a formula that counts the number of digits in
a
cell then adds zeroes until there are 6 digits. For example,

1238
37830
38
782
628918

With formula would look like:
123800
378300
380000
782000
628918

Thanks,





PCLIVE

counting and adding
 
Try this:

=A1&REPT(0,6-LEN(A1))

HTH,
Paul

"A.S." wrote in message
...
I wanted to know if there is a formula that counts the number of digits in
a
cell then adds zeroes until there are 6 digits. For example,

1238
37830
38
782
628918

With formula would look like:
123800
378300
380000
782000
628918

Thanks,





excelent

counting and adding
 
=(A1&REPT(0;6-LEN(A1)))*1


"A.S." skrev:

I wanted to know if there is a formula that counts the number of digits in a
cell then adds zeroes until there are 6 digits. For example,

1238
37830
38
782
628918

With formula would look like:
123800
378300
380000
782000
628918

Thanks,



excelent

counting and adding
 
ups forgot it is (,) not (;)

=(A1&REPT(0,6-LEN(A1)))*1


"excelent" skrev:

=(A1&REPT(0;6-LEN(A1)))*1


"A.S." skrev:

I wanted to know if there is a formula that counts the number of digits in a
cell then adds zeroes until there are 6 digits. For example,

1238
37830
38
782
628918

With formula would look like:
123800
378300
380000
782000
628918

Thanks,




All times are GMT +1. The time now is 08:22 PM.

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