Sum Product?

kizzie37

Well-known Member
Joined
Oct 23, 2007
Messages
575
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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
So you want items submitted and received in the same month?

Try (untested)

=SUMPRODUCT(--($J$2:$J$847=N5)*--($K$2:$K$847=N5))
 
Upvote 0
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
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

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