Change formula based on Dropdown List

LostInDaJungle

New Member
Joined
Feb 27, 2012
Messages
47
I'm working on a budgeting package, and I want to be able to change the type of calculation done based on a drop down list.

The idea is that we would take 2012 data and apply certain formulas based on type of cost/income for determining the 2013 budget.

For instance -

Occupancy is a fixed expense. No matter how much we sell, our rent doesn't go up.
COGS is a variable expense that is in direct proportion to our sales. The more we sell, the more we have to purchase for manufacturing.
Sales Expenses increase with sales, but not 1:1. We anticipate that sales expense will increase at 10% of the increase in sales.

So, I would like to make a drop down with "Fixed", "V100" (Variable at 100% of sales), and "V10" to cover these three scenarios. Calculation in the 2013 budget column would be based on what type was made in the drop down.

Fixed - No change
V10 - (2012 actual * .9) + ((2012 actual * .1) * (2012 Actual/2013 target))
V100 - 2012 actual * (2012 Actual/2013 target)

I was thinking I could just have the DDL change the ".9" and ".1" in the v10 formulas, but I'm going to get div/0 errors.

Any thoughts?
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Found my own solution:
=IF( B11=1,A13,
IF(
B11=2,(A13*C3)+((A13*B3)*(C13/B13)),
IF(
B11=3,(A13*C4)+((A13*B4)*(C13/B13)),
IF(
B11=4,(A13*C5)+((A13*B5)*(C13/B13)),
IF(
B11 = 5, (A13*C6)+((A13*B6)*(C13/B13)),
IF(
B11 = 6, (A13*C7)+((A13*B7)*(C13/B13)), "NA"
)
)
)
)
)
)

Nested If's.
 
Upvote 0

Forum statistics

Threads
1,223,635
Messages
6,173,479
Members
452,516
Latest member
archcalx

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