Hi All,
Ok - my head hurts (sadly not through overindulgence - although I'm considering it as a better option than trying to get my brain around this conundrum) - I'm sure this is simple and I'm probably just getting lost in the logic.... So I call upon your collective genius to remind me how age has destroyed my brain, so much that it can comprehend the weather in greater detail than being able to get the desired result from an equation
So, in the table below I need to bring back the resulting farm that produced the largest amount of fruit in a given month (I can bring back the quantity - as the MAX function happily works this out). The options for which fruit and month are driven by a drop down menu, with the resulting farm and yield formulaically calculated from the data array.
Really appreciate any help!
Range: A1:F16
Fruit to lookup: I2 (drop down list, but for sake of this example - just the single cell)
Month to examine: I3 (drop down list, but for sake of this example - just the single cell)
Resulting Farm: I5
Yield: I6
[TABLE="width: 672"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[TD]I
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Fruit
[/TD]
[TD]Farm
[/TD]
[TD]Jan Yield
[/TD]
[TD]Feb Yield
[/TD]
[TD]Mar Yield
[/TD]
[TD]Apr Yield
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Apples
[/TD]
[TD]Red
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]40
[/TD]
[TD][/TD]
[TD]What Fruit?
[/TD]
[TD]Apples
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Apples
[/TD]
[TD]Blue
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]50
[/TD]
[TD][/TD]
[TD]What Month?
[/TD]
[TD]Jan
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]Apples
[/TD]
[TD]Green
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]60
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]Pears
[/TD]
[TD]Red
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]40
[/TD]
[TD][/TD]
[TD]Best Farm?
[/TD]
[TD]Formula?
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]Pears
[/TD]
[TD]Blue
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]50
[/TD]
[TD][/TD]
[TD]Qty Yielded?
[/TD]
[TD]Formula?
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD]Pears
[/TD]
[TD]Green
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]60
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD]Kiwi
[/TD]
[TD]Red
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]40
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD]Kiwi
[/TD]
[TD]Blue
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]50
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD]Kiwi
[/TD]
[TD]Green
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]60
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11
[/TD]
[TD]Oranges
[/TD]
[TD]Red
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]40
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12
[/TD]
[TD]Oranges
[/TD]
[TD]Blue
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]50
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13
[/TD]
[TD]Oranges
[/TD]
[TD]Green
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]60
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14
[/TD]
[TD]Tomatoes
[/TD]
[TD]Red
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]40
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]15
[/TD]
[TD]Tomatoes
[/TD]
[TD]Blue
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]50
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16
[/TD]
[TD]Tomatoes
[/TD]
[TD]Green
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]60
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Ok - my head hurts (sadly not through overindulgence - although I'm considering it as a better option than trying to get my brain around this conundrum) - I'm sure this is simple and I'm probably just getting lost in the logic.... So I call upon your collective genius to remind me how age has destroyed my brain, so much that it can comprehend the weather in greater detail than being able to get the desired result from an equation
So, in the table below I need to bring back the resulting farm that produced the largest amount of fruit in a given month (I can bring back the quantity - as the MAX function happily works this out). The options for which fruit and month are driven by a drop down menu, with the resulting farm and yield formulaically calculated from the data array.
Really appreciate any help!
Range: A1:F16
Fruit to lookup: I2 (drop down list, but for sake of this example - just the single cell)
Month to examine: I3 (drop down list, but for sake of this example - just the single cell)
Resulting Farm: I5
Yield: I6
[TABLE="width: 672"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[TD]I
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Fruit
[/TD]
[TD]Farm
[/TD]
[TD]Jan Yield
[/TD]
[TD]Feb Yield
[/TD]
[TD]Mar Yield
[/TD]
[TD]Apr Yield
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Apples
[/TD]
[TD]Red
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]40
[/TD]
[TD][/TD]
[TD]What Fruit?
[/TD]
[TD]Apples
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Apples
[/TD]
[TD]Blue
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]50
[/TD]
[TD][/TD]
[TD]What Month?
[/TD]
[TD]Jan
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]Apples
[/TD]
[TD]Green
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]60
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]Pears
[/TD]
[TD]Red
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]40
[/TD]
[TD][/TD]
[TD]Best Farm?
[/TD]
[TD]Formula?
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]Pears
[/TD]
[TD]Blue
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]50
[/TD]
[TD][/TD]
[TD]Qty Yielded?
[/TD]
[TD]Formula?
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD]Pears
[/TD]
[TD]Green
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]60
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD]Kiwi
[/TD]
[TD]Red
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]40
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD]Kiwi
[/TD]
[TD]Blue
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]50
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD]Kiwi
[/TD]
[TD]Green
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]60
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11
[/TD]
[TD]Oranges
[/TD]
[TD]Red
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]40
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12
[/TD]
[TD]Oranges
[/TD]
[TD]Blue
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]50
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13
[/TD]
[TD]Oranges
[/TD]
[TD]Green
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]60
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14
[/TD]
[TD]Tomatoes
[/TD]
[TD]Red
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]40
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]15
[/TD]
[TD]Tomatoes
[/TD]
[TD]Blue
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]20
[/TD]
[TD="align: right"]50
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16
[/TD]
[TD]Tomatoes
[/TD]
[TD]Green
[/TD]
[TD="align: right"]30
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]10
[/TD]
[TD="align: right"]60
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]