SUMPRODUCT help with dates

S

steve_m

I've got a list of dates dd/mm/yyyy in column A and a list of the numbers in
column B which is related to the number of occurrences of something on each
date listed. There are some gaps in the dates ie. it is not a continuous
calendar list.

What I need to do is count the total number of occurrences in April 2010 for
example. I've tried using SUMPRODUCT but I'm stuck! I've managed to count the
number of times a date in April 2010 is listed but not the sum of number of
occurrences in April 2010 from the column B? Hopefully that is semi-clear?!!
 
M

Ms-Exl-Learner

Try this…

=SUMPRODUCT((A1:A100>=DATE(2010,4,1))*(A1:A100<=DATE(2010,4,30)),(B1:B100))

Remember to Click Yes, if this post helps!
 
J

Jacob Skaria

Try SUMPRODUCT() with TEXT()

=SUMPRODUCT((TEXT(A1:A100,"mmmyyyy")="Apr2010")*B1:B100)
 
S

steve_m

Thanks, that does the job! How could I modify this to only sum items in
column B if both the month in column A matches *and* a boolean value in
column C is true?
 
F

Fred Smith

Just add it as another condition. Assuming column C really has True/False
values in it, use:
=SUMPRODUCT((TEXT(A1:A100,"mmmyyyy")="Apr2010")*B1:B100*C1:C100)

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

Similar Threads

Counting Dates 3
SUMPRODUCT within set dates 4
Sumproduct to count between two dates 2
Sumproduct Help 3
Format Date Filter Problem 1
COUNTIF formula Using 2 or more cells 2
SUMPRODUCT with Date? 3
SUMPRODUCT 7

Top