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)
[TABLE="class: cms_table_grid, width: 500"]
<tbody>[TR]
[TD]VALUES TO ADD[/TD]
[TD]CONDITION 1[/TD]
[TD]ITEM 1[/TD]
[TD]ITEM 2[/TD]
[TD]ITEM 3[/TD]
[/TR]
[TR]
[TD]56[/TD]
[TD]US[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]23[/TD]
[TD]AUSTRALIA[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]32[/TD]
[TD]AUSTRALIA[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]AUSTRALIA[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
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)
[TABLE="class: cms_table_grid, width: 500"]
<tbody>[TR]
[TD]VALUES TO ADD[/TD]
[TD]CONDITION 1[/TD]
[TD]ITEM 1[/TD]
[TD]ITEM 2[/TD]
[TD]ITEM 3[/TD]
[/TR]
[TR]
[TD]56[/TD]
[TD]US[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]23[/TD]
[TD]AUSTRALIA[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]32[/TD]
[TD]AUSTRALIA[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]AUSTRALIA[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
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