Zeros in a cell

rhmkrmi

Active Member
Joined
Aug 17, 2012
Messages
308
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.
 

Some videos you may like

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

sandy666

Banned - Rules violations
Joined
Oct 24, 2015
Messages
7,499
any real example? there are zeroes only or something more?
 

rhmkrmi

Active Member
Joined
Aug 17, 2012
Messages
308
There are zeros only but different columns cells need to be populated with different number of zeros.
 

sandy666

Banned - Rules violations
Joined
Oct 24, 2015
Messages
7,499
something like this?

0000000000
000000000
0000000000
0000000

I'd like to see any example
 

rhmkrmi

Active Member
Joined
Aug 17, 2012
Messages
308

ADVERTISEMENT

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.
 

sandy666

Banned - Rules violations
Joined
Oct 24, 2015
Messages
7,499
so change cell(s) format to text then enter your zeroes
 

rhmkrmi

Active Member
Joined
Aug 17, 2012
Messages
308

ADVERTISEMENT

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.
 

sandy666

Banned - Rules violations
Joined
Oct 24, 2015
Messages
7,499
of course you can SUM.

0033300000
25105
0000000000
30220000
281
355
5

=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:

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,138
Office Version
  1. 365
Platform
  1. Windows
SUM will simply ignore text values

<b></b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>G</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">4</td><td style="text-align: right;;">1</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">5</td><td style="text-align: right;;">00</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">6</td><td style="text-align: right;;">3</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">7</td><td style="text-align: right;;">0000</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">8</td><td style="text-align: right;;">4</td></tr></tbody></table><p style="width:4.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Lookup</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: rgb(255,255,255)" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">G8</th><td style="text-align:left">=SUM(<font color="Blue">G4:G7</font>)</td></tr></tbody></table></td></tr></table><br />
 

Watch MrExcel Video

Forum statistics

Threads
1,122,940
Messages
5,598,975
Members
414,270
Latest member
skipolmsted

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
Top