Sum values if date is before today

J

James

Hi,

I have dates in B11:B376 and numbers representing time taken off in D11:D376
(ie. 1.0 for a full day, and 0.5 for half day vacation taken)

My question is how do I sum the time taken if the date has already passed,
ie. if the date in column B is less than TODAY()

Thanks in advance
 
J

James

thank you for the replies

Gary''s Student:
=SUMPRODUCT((B11:B376<TODAY())*(D11:D376)) worked for some cases but I got
an error (#Value) in other cases. could not figure out what was messing it
up. I believe you get the #value when you have different sized arrays, not
sure why it was doing this. thanks you though

Jacob:
that formula worked great. Exactly what i was looking for. Thanks again.
 

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

Top