Returning results from table

Rural

New Member
Joined
Jan 25, 2018
Messages
2
Hello

Within a spreadsheet I have two tables. Table 1 contains the raw data and Table 2 needs to summarise the results.

For the first row in Table 2 I have used the following formula to obtain the required results.
=INDEX(E27:E38,MATCH(MAX(F27:F38),F27:F38,0))

In the next two rows 41 and 42 of Table 2 I don't know what formula to input though to get the desired result if it is even at all possible.
Colum F of Rows 41 and 42 needs to list the data whilst columns G & H needs to add up the results of the required data

Any ideas much appreciated.


TABLE 1
column Ecolumn Fcolumn Gcolumn H
CROPSArea (ha)% of arable land
Row27SB10.0014%
Row28SO30.0042%
Row29WB4.006%
Row30WW0.000%
Row31WOSR20.0028%
Row32TSWS0.000%
Row33Legumes5.007%
Row34HF0.000%
Row35Potatoes3.004%
Row36Other Arable0.000%
Row37FALLOW0.000%
Row38TGRS0.000%
RoW39

TABLE 2
Row40Main CropSO30.00 ha42%
Row41Two main cropsSO, WOSR50.00 ha70.00%
Row42Third and subsequent cropsSB,WB,LEGUMES,POTATOES22.00 ha30.00%
<colgroup><col width="81" style="width: 61pt; mso-width-source: userset; mso-width-alt: 2962;"> <col width="138" style="width: 104pt; mso-width-source: userset; mso-width-alt: 5046;"> <col width="194" style="width: 146pt; mso-width-source: userset; mso-width-alt: 7094;"> <col width="112" style="width: 84pt; mso-width-source: userset; mso-width-alt: 4096;"> <col width="64" style="width: 48pt;"> <tbody> </tbody>
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
E
F
G
H
I
J
K
L
25
TABLE 1
26
CROPSArea (ha)% of arable land
27
SB
10​
14%​
28
SO
30​
42%​
29
WB
4​
6%​
30
WW
0​
0%​
31
WOSR
20​
28%​
32
TSWS
0​
0%​
33
Legumes
5​
7%​
34
HF
0​
0%​
35
Potatoes
3​
4%​
36
Other Arable
0​
0%​
37
FALLOW
0​
0%​
38
TGRS
0​
0%​
39
TABLE 2
40
Main CropSO30.00 ha
42%​
41
Two main cropsSO, WOSR5070%CRITERIACRITERIA
42
Third and subsequent cropsSB,WB,LEGUMES,POTATOES2231%SOSB
43
WOSRWB
44
Legumes
45
Potatoes

<tbody>
</tbody>

H41
=SUMPRODUCT(SUMIF($F$27:$F$38,$K$42:$K$43,G$27:G$38)) copy across

h42=SUMPRODUCT(SUMIF($F$27:$F$38,$L$42:$L$45,G$27:G$38)) copy across

I41-I42 Format percent style
 
Upvote 0

E

F

G

H

I

J

K

L

25
TABLE 1

26
CROPS
Area (ha)
% of arable land

27
SB

10​

14%​

28
SO

30​

42%​

29
WB

4​

6%​

30
WW

0​

0%​

31
WOSR

20​

28%​

32
TSWS

0​

0%​

33
Legumes

5​

7%​

34
HF

0​

0%​

35
Potatoes

3​

4%​

36
Other Arable

0​

0%​

37
FALLOW

0​

0%​

38
TGRS

0​

0%​

39
TABLE 2

40
Main Crop
SO
30.00 ha

42%​

41
Two main crops
SO, WOSR
50
70%
CRITERIA
CRITERIA

42
Third and subsequent crops
SB,WB,LEGUMES,POTATOES
22
31%
SO
SB

43
WOSR
WB

44
Legumes

45
Potatoes

<tbody>
</tbody>

H41
=SUMPRODUCT(SUMIF($F$27:$F$38,$K$42:$K$43,G$27:G$38)) copy across

h42=SUMPRODUCT(SUMIF($F$27:$F$38,$L$42:$L$45,G$27:G$38)) copy across

I41-I42 Format percent style

Hello. Thanks for the reply. My initial query was possibly misleading. The data in column G and H of table 1 is stemming from another spreadsheet and a such can change. The purpose of Table 2 is therefore to react to any changes and summarise. As such a formula is required for columns F,G &H in rows 41 & 42.

Row 41 column H needs to be the sum of the two largest figures in column G of table 1. Row 41 column G needs to return the adjacent cell categories (i.e. the crop types of the largest areas, column F table 1) and similarly Row 41 column I needs to return the summed adjacent cell figures h of table 1

Row 42 is similar in that it needs to return the accumulated results of remaining crops where a positive area exists.

I suspect that this is possibly challenging!!!!!

Thanks
 
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,822
Members
449,469
Latest member
Kingwi11y

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top