Zeros in a cell

rhmkrmi

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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
There are zeros only but different columns cells need to be populated with different number of zeros.
 
Upvote 0
something like this?

0000000000
000000000
0000000000
0000000

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.

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:
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,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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