quiqueperez
New Member
- Joined
- Sep 10, 2014
- Messages
- 12
Hi,
I'm struggling to write a formula to sum the values in column A based on a number of conditions, including one that applies over multiple columns.
Using the following example, I would need to add the values in column A if condition 1 = Australia and the value in at least one of the areas is greater than zero.
In the current example the result woud be 55 (row3 + row4)
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]VALUES TO ADD[/TD]
[TD]CONDITION 1[/TD]
[TD]AREA 1[/TD]
[TD]AREA 2[/TD]
[TD]AREA 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")
Any would be very much appreciated.
Cheers,
Enrique
I'm struggling to write a formula to sum the values in column A based on a number of conditions, including one that applies over multiple columns.
Using the following example, I would need to add the values in column A if condition 1 = Australia and the value in at least one of the areas is greater than zero.
In the current example the result woud be 55 (row3 + row4)
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]VALUES TO ADD[/TD]
[TD]CONDITION 1[/TD]
[TD]AREA 1[/TD]
[TD]AREA 2[/TD]
[TD]AREA 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")
Any would be very much appreciated.
Cheers,
Enrique