Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
SUMIF using two ranges
I would like to use SUMIF with two IF ranges ie:
If Column A="xxx" and Column B="yyy" then sum column D Is this possible? I have only every used SUMIF(A:A,"xxx",D:D) Many thanks Yvonne |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
SUMIF using two ranges
=SUMPRODUCT(--(A2:A20="xxx"),--(B2:B20="yyy"),D2:D20)
SP cannot work on whole columns, the range has to be explicit. -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "yvonneb" wrote in message ... I would like to use SUMIF with two IF ranges ie: If Column A="xxx" and Column B="yyy" then sum column D Is this possible? I have only every used SUMIF(A:A,"xxx",D:D) Many thanks Yvonne |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
SUMIF using two ranges
Try Sumproduct:-
=SUMPRODUCT((A1:A100="xxx")*(B1:B100="yyy")*(D1:D1 00)) Mike "yvonneb" wrote: I would like to use SUMIF with two IF ranges ie: If Column A="xxx" and Column B="yyy" then sum column D Is this possible? I have only every used SUMIF(A:A,"xxx",D:D) Many thanks Yvonne |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
SUMIF using two ranges
Thanks Bob, got it using your suggestion. Much appreciated.
"Bob Phillips" wrote: =SUMPRODUCT(--(A2:A20="xxx"),--(B2:B20="yyy"),D2:D20) SP cannot work on whole columns, the range has to be explicit. -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "yvonneb" wrote in message ... I would like to use SUMIF with two IF ranges ie: If Column A="xxx" and Column B="yyy" then sum column D Is this possible? I have only every used SUMIF(A:A,"xxx",D:D) Many thanks Yvonne |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
SUMIF and LEFT and Named Ranges | Excel Worksheet Functions | |||
SUMIF and LEFT and Named Ranges | Excel Worksheet Functions | |||
How to SUMIF multiple ranges? | Excel Discussion (Misc queries) | |||
SumIF Multiple Ranges | Excel Worksheet Functions | |||
SUMIF and 3-D Ranges | Excel Worksheet Functions |