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.
Sumifs
-
- Administrator
- Posts: 78549
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Sumifs
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.
=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
Hans
-
- 2StarLounger
- Posts: 183
- Joined: 26 Dec 2010, 06:56
Re: Sumifs
OK,
But the result is if i apply that condition in D14 is 18072.0.
It should be only 18.
But the result is if i apply that condition in D14 is 18072.0.
It should be only 18.
Regards
Saras
Saras
-
- Administrator
- Posts: 78549
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Sumifs
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)
=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
Hans
-
- 2StarLounger
- Posts: 183
- Joined: 26 Dec 2010, 06:56
Re: Sumifs
Excellent... It is working.
But also wanted to know if this works with sumifs function also please.
But also wanted to know if this works with sumifs function also please.
Regards
Saras
Saras
-
- Administrator
- Posts: 78549
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Sumifs
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
Hans
-
- Administrator
- Posts: 78549
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Sumifs
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.
=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
Hans
-
- 2StarLounger
- Posts: 183
- Joined: 26 Dec 2010, 06:56
Re: Sumifs
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....
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
Saras