quiqueperez
New Member
- Joined
- Sep 10, 2014
- Messages
- 12
Hi,
I need to write a formula to sum the values in column A based on a number of conditions, including one that would be the sum of the values in a number of columns.
Using the following example, I would need to add the values in column A if condition 1 = Australia and the sum of the values in ITEM 1, 2 and 3 is greater than 0.
In the current example the result woud be 55 (row3 + row4)
<tbody>
</tbody>
The formula I'm thinking of is something like this, but I don't know how to formulate it,
SUMIFS(VALUES TO ADD, CONDITION 1, AUSTRALIA, SUM(AREA 1, AREA 2, AREA 3), ">0")
Similarly, I also need a variant of the above to do a SUMPRODUCT of column A times the sum of ITEM 1 + 2+ 3.
Something like,
SUMPRODUCT(VALUES TO ADD, SUM(ITEM1, ITEM2, ITEM3), CONDITION1="AUSTRALIA")
Your help would be very much appreciated.
Cheers,
Enrique
I need to write a formula to sum the values in column A based on a number of conditions, including one that would be the sum of the values in a number of columns.
Using the following example, I would need to add the values in column A if condition 1 = Australia and the sum of the values in ITEM 1, 2 and 3 is greater than 0.
In the current example the result woud be 55 (row3 + row4)
VALUES TO ADD | CONDITION 1 | ITEM 1 | ITEM 2 | ITEM 3 |
56 | US | 1 | 0 | 2 |
23 | AUSTRALIA | 0 | 1 | 0 |
32 | AUSTRALIA | 1 | 1 | 2 |
14 | AUSTRALIA | 0 | 0 | 0 |
<tbody>
</tbody>
The formula I'm thinking of is something like this, but I don't know how to formulate it,
SUMIFS(VALUES TO ADD, CONDITION 1, AUSTRALIA, SUM(AREA 1, AREA 2, AREA 3), ">0")
Similarly, I also need a variant of the above to do a SUMPRODUCT of column A times the sum of ITEM 1 + 2+ 3.
Something like,
SUMPRODUCT(VALUES TO ADD, SUM(ITEM1, ITEM2, ITEM3), CONDITION1="AUSTRALIA")
Your help would be very much appreciated.
Cheers,
Enrique