Counting occurrences by date

L

lwilliams

Good morning:

I need some help with the following. I have a range of dates in the format
MM/DD/YY and need to count occurrences by day, current week and current
month. Any help would be greatly appreciated.
 
B

Bob Phillips

this day
=COUNTIF(A2:A200,TODAY())

this week
=SUMPRODUCT(--(A2:A200>=TODAY()-WEEKDAY(TODAY())+1),--(A2:A200<TODAY()-WEEKDAY(TODAY())+8))

this month
=SUMPRODUCT(--(MONTH(A2:A200)=10))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
L

lwilliams

Hi Bob:

Thanks for the answer. Seems like you are the one who always helps me. I
do appreciate it.
--
Larry


Bob Phillips said:
this day
=COUNTIF(A2:A200,TODAY())

this week
=SUMPRODUCT(--(A2:A200>=TODAY()-WEEKDAY(TODAY())+1),--(A2:A200<TODAY()-WEEKDAY(TODAY())+8))

this month
=SUMPRODUCT(--(MONTH(A2:A200)=10))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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