display number if date is in a range

L

lmarty

I have a column of starting dates with a second column of dates 60 days after
first, in a third column I have a event date. I need to count row if event
happens within the 60 days of first column.
10/15/09 12/14/09 12/1/09 1
10/15/09 12/14/09 12/15/09 0
10/25/09 12/24/09 11/15/09 1
10/13/09 12/22/09 11/1/09 1

Thank you
 
J

Jacob Skaria

Count of rows....
=SUMPRODUCT((A1:A4<=C1:C4)*(B1:B4>=C1:C4))

If this post helps click Yes
 
R

Rick Rothstein

Sorry, you wanted 0 and 1, not FALSE and TRUE. Try this formula instead...

=--(A1+60>C1)
 

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