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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
L

Legacy 51064

Guest
=SUMPRODUCT((MONTH(Registrations!$K$3:$K$5000)=MONTH(Helpdesk!$F$1))*(Registrations!$K$3:$K$5000))
 

starryeyed

Board Regular
Joined
Jun 22, 2005
Messages
221
Thanks, but that gives me 270653!

I have exactly 7 dates which fit the criteria.
 

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
20,216
Office Version
  1. 365
Platform
  1. Windows
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!
 

starryeyed

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

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,794
Messages
5,833,732
Members
430,228
Latest member
Normano

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
Top