crave4excel
New Member
- Joined
- Feb 2, 2012
- Messages
- 45
Hi everyone,
I'm in need of your expertise to create a formula that sums up the total based on a dynamic variable. Example below-
I have the months in columns that goes all the way to December, and apple and oranges repeat in rows. I'm trying to create a dynamic formula that calculates the SUM of each fruit, based on the variable, which is MONTH in this case. The variable will be a drop down menu that allows me to toggle the month. I'm not sure if SUMIFS or SUMPRODUCT is more appropriate, i've been pulling my hair out trying to get this work but nothing helps. I've tried INDEX & MATCH but it doesn't allow me to SUM up the values, instead of grabbing the first value it appears.
Please help!
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]January [/TD]
[TD]February [/TD]
[TD]March [/TD]
[/TR]
[TR]
[TD]apple
[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]orange[/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]orange[/TD]
[TD]10[/TD]
[TD]15[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]apple[/TD]
[TD]4[/TD]
[TD]8[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]
[/TD]
[TD]February (this is a drop down )[/TD]
[/TR]
[TR]
[TD]apple[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]orange[/TD]
[TD]17[/TD]
[/TR]
</tbody>[/TABLE]
I'm in need of your expertise to create a formula that sums up the total based on a dynamic variable. Example below-
I have the months in columns that goes all the way to December, and apple and oranges repeat in rows. I'm trying to create a dynamic formula that calculates the SUM of each fruit, based on the variable, which is MONTH in this case. The variable will be a drop down menu that allows me to toggle the month. I'm not sure if SUMIFS or SUMPRODUCT is more appropriate, i've been pulling my hair out trying to get this work but nothing helps. I've tried INDEX & MATCH but it doesn't allow me to SUM up the values, instead of grabbing the first value it appears.
Please help!
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]January [/TD]
[TD]February [/TD]
[TD]March [/TD]
[/TR]
[TR]
[TD]apple
[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]orange[/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]orange[/TD]
[TD]10[/TD]
[TD]15[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]apple[/TD]
[TD]4[/TD]
[TD]8[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]
[/TD]
[TD]February (this is a drop down )[/TD]
[/TR]
[TR]
[TD]apple[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]orange[/TD]
[TD]17[/TD]
[/TR]
</tbody>[/TABLE]