#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default 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,


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default 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,




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default 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,




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 695
Default 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,


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 695
Default 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,


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
counting and adding Isaiah I Excel Discussion (Misc queries) 2 June 11th 07 08:49 PM
adding totals in a column, not counting repetitions in another col h20polo Excel Discussion (Misc queries) 1 June 6th 07 05:30 AM
Counting Mark Excel Worksheet Functions 6 March 8th 07 01:47 AM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 PM
Counting names in a column but counting duplicate names once TBoe Excel Discussion (Misc queries) 9 May 11th 05 11:24 PM


All times are GMT +1. The time now is 12:32 PM.

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"