Sumifs

saru5133
2StarLounger
Posts: 183
Joined: 26 Dec 2010, 06:56

Sumifs

Post by saru5133 »

Please find attached the excel sheet i am trying to working on.
I am trying to get the sum of Sum Usage Qty from Data sheet under various contracts for various week ending dates.

Could you help me please.
You do not have the required permissions to view the files attached to this post.
Regards
Saras

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Sumifs

Post by HansV »

Try this in D14:

=SUMPRODUCT((Data!$A$2:$A$842=$B$14)*(Data!$K$2:$K$842=D$13)*(Data!$L$2:$L$842=$C14)*Data!$N$2:$N$842)

You can fill this formula down to D21 and then right to column Q.
Best wishes,
Hans

saru5133
2StarLounger
Posts: 183
Joined: 26 Dec 2010, 06:56

Re: Sumifs

Post by saru5133 »

OK,
But the result is if i apply that condition in D14 is 18072.0.
It should be only 18.
Regards
Saras

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Sumifs

Post by HansV »

Sorry, I summed the wrong column. It should have been column M (Sum Usage Qty) instead of column N (Sum Tot Chrg Amt):

=SUMPRODUCT((Data!$A$2:$A$842=$B$14)*(Data!$K$2:$K$842=D$13)*(Data!$L$2:$L$842=$C14)*Data!$M$2:$M$842)
Best wishes,
Hans

saru5133
2StarLounger
Posts: 183
Joined: 26 Dec 2010, 06:56

Re: Sumifs

Post by saru5133 »

Excellent... It is working.
But also wanted to know if this works with sumifs function also please.
Regards
Saras

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Sumifs

Post by HansV »

I'm on a computer with Excel 2003 at the moment, and it'll be several hours before I can test in Excel 2007.
Best wishes,
Hans

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Sumifs

Post by HansV »

Try this formula:

=SUMIFS(Data!$M$2:$M$842,Data!$A$2:$A$842,$B$14,Data!$K$2:$K$842,D$13,Data!$L$2:$L$842,$C14)

It can be filled down and to the right.
Best wishes,
Hans

saru5133
2StarLounger
Posts: 183
Joined: 26 Dec 2010, 06:56

Re: Sumifs

Post by saru5133 »

Thanks Hans,
This is one place i look for and confident about the solution you provide even when i have hands around to give suggestions.

Thanks once again....
Regards
Saras