Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Google Spreadsheet that I enter in new values everyday and want to have the equation run down the entire column so I don't have to drag the previous day's box down to copy the info.

It would work fine to drag the box all the way to the bottom of the sheet, but then the cells get filled with a 0.

How can I put the equation in the cells without having them give me a value right away? i.e. only have them show a value when the rest of that row has info in it.

share|improve this question

migrated from superuser.com Apr 16 '12 at 4:45

This question came from our site for computer enthusiasts and power users.

up vote 5 down vote accepted

How to make annoying zeros stripped out in Google Spreadsheet

This is much easier now. No longer trick these days.

In the menu,

  1. Format > Number > More Formats > Custom Number Format
  2. Type in #,##0_);"("#,##0")";"-"_)
share|improve this answer
Or without the hyphen if to be blank: #,##0 ;(#,##0); – pnuts Nov 5 '14 at 13:37
The minimum: #;-#; Yields the number unchanged if positive, the number unchanged if negative (but prefixed with a hypen), and an empty string if blank. – Nick May Feb 26 at 18:38
This won't help if you're trying to not have those cells show up in a graph though; use an if/ifblank as described elsewhere. – Nick May Feb 26 at 18:47

I would wrap your formula in an if statement that results in "" if the row is blank. Then you can copy all the way down. Like this:

share|improve this answer

If your result depends on more than one cell, you can prevent anything from appearing until all necessary reference cells are populated:


If you have some optional cells (e.g. C1 here), use AND():

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.