Sum Product?

kizzie37

Well-known Member
Joined
Oct 23, 2007
Messages
542
Office Version
  1. 365
I have a column of months (date item submitted) and am using the below to count the number within the month


=SUMPRODUCT(--($J$2:$J$847=N5))

In column K there are months (date item received) I would like to count the number received in the month of those submitted. so column j is submitted and shows month number, column K is received

problem is column K may have items received in the month, but were submitted in a previous month, I dont want to count these.

Any ideas what formula can be used?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,426
Office Version
  1. 2019
So you want items submitted and received in the same month?

Try (untested)

=SUMPRODUCT(--($J$2:$J$847=N5)*--($K$2:$K$847=N5))
 

Kaps_mr2

Well-known Member
Joined
Jul 5, 2008
Messages
1,544
not entirely sure what you mean but :-

SUMPRODUCT(--(MONTH($K$8:$K$12)=2),--(YEAR($K$8:$K$12)=2010),L$8:L$12)


will count up the items received in Feb 2010 - where the dates are in col K (rows 8-12) and your items received in column L.

thanks

Kaps
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
Would you post 5 rows from K and 5 rows J, which illustrates the problem you want to solve?
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
So you want items submitted and received in the same month?

Try (untested)

=SUMPRODUCT(--($J$2:$J$847=N5)*--($K$2:$K$847=N5))

Would it be possible for you not to use this *-- bit? Either just "*" or ",--" would suffice. In UK, comma becomes semi-colon.
 

kizzie37

Well-known Member
Joined
Oct 23, 2007
Messages
542
Office Version
  1. 365
Thanks all for your help. Aladin your suggestion works perfectly!
 

Forum statistics

Threads
1,176,401
Messages
5,902,840
Members
435,000
Latest member
jmc12

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