Sum Product?

kizzie37

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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,350
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,538
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,209
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,209
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,133,573
Messages
5,659,606
Members
418,514
Latest member
radonwilson

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