Sum Product?

kizzie37

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

Some videos you may like

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,344
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,534
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,192
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,192
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.
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,223
Messages
5,509,902
Members
408,760
Latest member
DoktorPhill

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top