Sumproduct trouble

starryeyed

Board Regular
Joined
Jun 22, 2005
Messages
221
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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
=SUMPRODUCT((MONTH(Registrations!$K$3:$K$5000)=MONTH(Helpdesk!$F$1))*(Registrations!$K$3:$K$5000))
 
Upvote 0
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!
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,999
Members
448,543
Latest member
MartinLarkin

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top