Hello everyone,
I'm sure there is an easy solution to this but I just can't find what I need, can anyone help me please?!
I have a table which contains headers of the same title RED and GREEN, as shown below (except the APPLES and GRAPES cells are merged with the cell on their right to give the effect of two columns which have then been split into sub-columns of RED and GREEN).
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]APPLES[/TD]
[TD][/TD]
[TD]GRAPES[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]COUNTRY[/TD]
[TD]RED[/TD]
[TD]GREEN[/TD]
[TD]RED[/TD]
[TD]GREEN[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]7[/TD]
[TD]8[/TD]
[/TR]
</tbody>[/TABLE]
I need a formula which will sum the number values based on the COUNTRY and RED headers.
For example, the UK should give an answer of 4 as it has 1 RED APPLE and 3 RED GRAPES.
My full working table has 10 columns which I need to sum, and though the standard SUMIF formulas work, they take up rows and rows of the formula line!
Is there a formula I can use instead which is more efficient?
Many thanks in advance.
I'm sure there is an easy solution to this but I just can't find what I need, can anyone help me please?!
I have a table which contains headers of the same title RED and GREEN, as shown below (except the APPLES and GRAPES cells are merged with the cell on their right to give the effect of two columns which have then been split into sub-columns of RED and GREEN).
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]APPLES[/TD]
[TD][/TD]
[TD]GRAPES[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]COUNTRY[/TD]
[TD]RED[/TD]
[TD]GREEN[/TD]
[TD]RED[/TD]
[TD]GREEN[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]7[/TD]
[TD]8[/TD]
[/TR]
</tbody>[/TABLE]
I need a formula which will sum the number values based on the COUNTRY and RED headers.
For example, the UK should give an answer of 4 as it has 1 RED APPLE and 3 RED GRAPES.
My full working table has 10 columns which I need to sum, and though the standard SUMIF formulas work, they take up rows and rows of the formula line!
Is there a formula I can use instead which is more efficient?
Many thanks in advance.