Looking for help with If statement

  • Thread starter Thread starter Ayo
  • Start date Start date
A

Ayo

Is there a function like the ISBLANK function for dates. I am trying to write
and IF statement formular that works like this:
If the value in A1 is a Date then perform calculation else leave blank.

What is the best way to do this.

Thanks
 
Please try this will return FALSE if valid date..
=ISERROR(DATE(YEAR(A1),MONTH(A1),DAY(A1)))

If this post helps click Yes
 
I was looking for something in this line:
=If(A1=Date,
SUMPRODUCT(--(Progress!$A$5:$A$1756=$A$5),--(Progress!$D$5:$D$1756=C$3),--(Progress!$E$5:$E$1756=$B5)), "")
 
Then just implement Jacob's suggestion, as in:
=IF(ISERROR(DATE(YEAR(A1),MONTH(A1),DAY(A1))),"",
SUMPRODUCT(--(Progress!$A$5:$A$1756=$A$5),--(Progress!$D$5:$D$1756=C$3),--(Progress!$E$5:$E$1756=$B5)))

Regards,
Fred.
 

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

Back
Top