Sumproduct trouble

starryeyed

Board Regular
I've tried, but I can't get it to work...

This is my formula
=SUMPRODUCT(--MONTH(Registrations!\$K\$3:\$K\$5000)=--MONTH(Helpdesk!\$F\$1),--Registrations!\$K\$3:\$K\$5000)

In Helpdesk!F1 I have 1/11/05
In registrariotns!K3:K5000 there's a list of dates, a few of which contain dates in November.

I've tried a countif, and I've tried the sumproduct, but both give the answer as 0 instead of 3. What have I done wrong?

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
=SUMPRODUCT((MONTH(Registrations!\$K\$3:\$K\$5000)=MONTH(Helpdesk!\$F\$1))*(Registrations!\$K\$3:\$K\$5000))

Thanks, but that gives me 270653!

I have exactly 7 dates which fit the criteria.

Try...

=SUMPRODUCT(--(Registrations!\$K\$3:\$K\$5000<>""),--(MONTH(Registrations!\$K\$3:\$K\$5000)=MONTH(Helpdesk!\$F\$1)))

If you want to set your criteria based on the month and year, try the following...

=SUMPRODUCT(--(Registrations!\$K\$3:\$K\$5000-DAY(Registrations!\$K\$3:\$K\$5000)+1=DATE(YEAR(Helpdesk!F1),MONTH(Helpdesk!\$F\$1),1)))

Hope this helps!

Domenic said:
Try...

=SUMPRODUCT(--(Registrations!\$K\$3:\$K\$5000<>""),--(MONTH(Registrations!\$K\$3:\$K\$5000)=MONTH(Helpdesk!\$F\$1)))

Brilliant! Thank you It's been doing head in all day lol

Replies
3
Views
163
Replies
2
Views
324
Replies
1
Views
225
Replies
5
Views
632
Replies
0
Views
174

1,207,189
Messages
6,076,991
Members
446,248
Latest member
tim_crouse

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back