Zeros in a cell

rhmkrmi

Active Member
Joined
Aug 17, 2012
Messages
348
Office Version
  1. 365
Platform
  1. Windows
Hello, How can I keep different numbers of zeros in a cell, for example, 000 or 000000 or 00000000.

When I use custom format, I am limited to the number of zeros that is customized but I need to have different number of zeros in a column cells.

Thank you.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
There are zeros only but different columns cells need to be populated with different number of zeros.
 
Upvote 0
something like this?

[Table="width:, class:head"]
[tr=bgcolor:#FFFFFF][td]00[/td][td]000[/td][td]00000[/td][/tr]

[tr=bgcolor:#FFFFFF][td]00000[/td][td]0[/td][td]000[/td][/tr]

[tr=bgcolor:#FFFFFF][td]000000[/td][td]0000[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td]0[/td][td]00[/td][td]0000[/td][/tr]
[/table]


I'd like to see any example
 
Upvote 0
Yes, exactly, thank you.


I could not paste an image in but we may have actual numbers in the same column too, for example:


00
0000
568541
000000
0
2515


Thank you.
 
Upvote 0
Thanks.
In that case, I cannot sum them.

If there is no solution to this, how can I go about doing what you had in your example in #4 ?

Thanks again.
 
Upvote 0
of course you can SUM.

[Table="width:, class:head"]
[tr=bgcolor:#FFFFFF][td]00[/td][td]333[/td][td]00000[/td][/tr]

[tr=bgcolor:#FFFFFF][td]251[/td][td]0[/td][td]5[/td][/tr]

[tr=bgcolor:#FFFFFF][td]000000[/td][td]0000[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td]30[/td][td]22[/td][td]0000[/td][/tr]

[tr=bgcolor:#FFFFFF][td]
281
[/td][td]
355
[/td][td]
5
[/td][/tr]
[/table]


=SUM(--A1,--A2,--A3,--A4)
or
=SUMPRODUCT(--A1:A4)

enter formula to the Totals Row, change format to General then re-enter formula by F2 + Enter then drag formula from the left to the right
 
Last edited:
Upvote 0
SUM will simply ignore text values


Book1
G
41
500
63
70000
84
Lookup
Cell Formulas
RangeFormula
G8=SUM(G4:G7)
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top