mnminutoli
New Member
- Joined
- Oct 25, 2018
- Messages
- 1
I am hoping someone could help me with an excel function I am struggling with.
I have two tables one in sheet one and one in sheet two (as shown below). I want to generate an excel formula that will sum all the values for Q1 - Q4 that match each fruit name in the summary table on sheet 2. So for example, apples would be 515. There are multiple rows with the word "apples" and multiple columns (Q1-Q4) that have data for "apples". Does anyone know how I can do this?
Sheet 1:
[TABLE="width: 320"]
<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64"] Q1[/TD]
[TD="width: 64"] Q2[/TD]
[TD="width: 64"] Q3[/TD]
[TD="width: 64"] Q4[/TD]
[/TR]
[TR]
[TD]Apples[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]90[/TD]
[/TR]
[TR]
[TD]Oranges[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]20[/TD]
[/TR]
[TR]
[TD]Oranges[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD]Oranges[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD]Apples[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]80[/TD]
[/TR]
[TR]
[TD]Mangoes[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]20[/TD]
[/TR]
[TR]
[TD]Mangoes[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]30[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2:
[TABLE="width: 311"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD] Total [/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Apples [/TD]
[TD] (Formula)[/TD]
[TD]should be 515[/TD]
[/TR]
[TR]
[TD]Oranges [/TD]
[TD] (Formula)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mangoes[/TD]
[TD] (Formula)[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 311"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD] [/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have two tables one in sheet one and one in sheet two (as shown below). I want to generate an excel formula that will sum all the values for Q1 - Q4 that match each fruit name in the summary table on sheet 2. So for example, apples would be 515. There are multiple rows with the word "apples" and multiple columns (Q1-Q4) that have data for "apples". Does anyone know how I can do this?
Sheet 1:
[TABLE="width: 320"]
<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64"] Q1[/TD]
[TD="width: 64"] Q2[/TD]
[TD="width: 64"] Q3[/TD]
[TD="width: 64"] Q4[/TD]
[/TR]
[TR]
[TD]Apples[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]90[/TD]
[/TR]
[TR]
[TD]Oranges[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]20[/TD]
[/TR]
[TR]
[TD]Oranges[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD]Oranges[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD]Apples[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]80[/TD]
[/TR]
[TR]
[TD]Mangoes[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]20[/TD]
[/TR]
[TR]
[TD]Mangoes[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]30[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2:
[TABLE="width: 311"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD] Total [/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Apples [/TD]
[TD] (Formula)[/TD]
[TD]should be 515[/TD]
[/TR]
[TR]
[TD]Oranges [/TD]
[TD] (Formula)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mangoes[/TD]
[TD] (Formula)[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 311"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD] [/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]