Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

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

1 Answer 1

up vote 2 down vote accepted

The following formula will do just that:

=IF(D1-C1=0;"";D1-C1)

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

share|improve this answer
1  
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

 
discard

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.