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 with start (C) and end (D) timestamps. I am calculating the time difference using =(D1-C1). I have copied the formula to empty columns which returns a 0 time difference. Is there a way to hide the value if it returns 0?

share|improve this question
up vote 2 down vote accepted

The following formula will do just that:


It says: if the result of D1-C1 equals 0, then show nothing (""), else show the result.

share|improve this answer
Thanks. I extended the formula to =IF(D1>0;IF(D1-C1=0;"";D1-C1);"") so that it will only display a difference if the End time stamp has a value. – xylar Jan 2 '13 at 11:44

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.