Return empty cell/blank

  • Thread starter Thread starter Marc
  • Start date Start date
M

Marc

I have this formula to calculate the difference with a
date and now: H4: =datedif(g4,now(),"d")

G4= 6 JUL 04 H4= 1

What I want is if the cell in G is left blank, the cell H
should have nothing in it. what is the formula?

Thanks Marc
 
First you don't need to use DATEDIF for counting days, secondly unless time
is involved there is no need for NOW, you can use TODAY() instead

=IF(G4="","",TODAY()-G4)

should do what you want

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)
 
Good day, I tried it at work with Excell 2000 adn it
didn't work but I tried it at home with Excell 2002 and it
works.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

ISBLANK IF STATEMENT 6
Leave final cell blank 2
Formula help for Excel 97 6
Calculate Elapsed Date and Time 3
excel time stamp 3
Counting formula 1
Empty Cell 2
If Formula Help 3

Back
Top