Dynamic scenario

Tigerexcel

Active Member
Joined
Mar 6, 2020
Messages
493
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Dynamic scenario.xlsx
ABCDEF
120212021 Alternative scenario
2Sales Prod B$1,000$1,000Assumptions
3Sales Prod A$2,000$2,000Cost of goods$1,200
4Total Revenue$3,000$3,000Sales Prod A$400
5Cost of goods$600$600Delivery$600
6Administration$500$500
7Printing$300$300
8Delivery$250$250
9Total Expenses$1,650$1,650
10Profit$1,350$1,350
11Profit Margin45%45%
Sheet1
Cell Formulas
RangeFormula
B4B4=B2+B3
C2:C10C2=B2
B9B9=SUM(B5:B8)
B10B10=B4-B9
B11:C11B11=B10/B4
Cells with Data Validation
CellAllowCriteria
E3:E5List=$I$2:$I$7


Basically I'd like to test various scenarios. The formulae need to update so that if there are any values in F3, F4 or F5 then these values will replace what is in Column C placed against the relevant item labels. In the example above Cost of goods would change from $600 to $1200 etc. I need the ability to test a number of scenarios so the formulae need to be able to go back to their default values which are in Column B. Thus if there's nothing in Column E the values in Column C should be back to the same values in Column B. Ignore the Data Validation above, it is not needed.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
How about
=IFERROR(INDEX($F$3:$F$5,MATCH(A2,$E$3:$E$5,0)),B2)
 
Upvote 0
Try:

Book1 (version 1).xlsb
ABCDEF
120212021 Alternative scenario
2Sales Prod B10001000Assumptions
3Sales Prod A2000400Cost of goods1200
4Total Revenue30001400Sales Prod A400
5Cost of goods6001200Delivery600
6Administration500500
7Printing300300
8Delivery250600
9Total Expenses16502600
10Profit1350-1200
11Profit Margin0.45-0.85714286
Sheet7
Cell Formulas
RangeFormula
B4:C4B4=B2+B3
C5:C8,C2:C3C2=IFERROR(1/(1/(VLOOKUP(A2,$E$3:$F$10,2,0))),B2)
B9:C9B9=SUM(B5:B8)
B10:C10B10=B4-B9
B11:C11B11=B10/B4
 
Upvote 0
Thanks guys for the super-quick response. I didn't realise that IFERROR will also return a cell value if it doesn't find a value, I had thought it would only do this if it found an error.
The actual spreadsheet that I have to apply this to has hundreds of rows, when I apply the formula to Column C it will overwrite the existing formulae. Does anyone know of a way to apply this formula to a column of cells such that it will only apply the formula to the constant values but leave the formulae untouched? This might be hoping for too much, I can workaround this by copying the formula sections at a time but would like to know if there's a faster way.
 
Upvote 0
Why don't you want to replace the existing formula?
 
Upvote 0
Why don't you want to replace the existing formula?
Info is downloaded from Accounting software and is hard-coded, so I have to manually enter formulae into Column C. A blanket copy of the index formula throws out C4 and C9 to C11 calculatrions.
 
Upvote 0
Sorry but I don't understand what you're saying.
 
Upvote 0
Hi again Fluff, are you suggesting I copy the new formula all the way down Column C? The purpose of the exercise is to do What-if type analyses, I need to calculate what margins will be if some of the variables change. Existing formulae reference values from previous column thus don't update, hard to explain on-line.
 
Upvote 0
Please remember we have no idea what you are trying to do, other than what you have told us.
You asked for a formula to go in col C & that is what both Eric & I supplied.
If that is not what you want then you need to clearly explain what you do want.
 
Upvote 0

Forum statistics

Threads
1,214,872
Messages
6,122,026
Members
449,061
Latest member
TheRealJoaquin

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