Scenario Manager

“Input cell reference is not valid” – how to create a Data Table in ANY sheet

by Rickard Wärnelid on May 25 2009

no comments »

Input cell reference is not valid - Excel error message

"Input cell reference is not valid" - Excel error message

Working with Data Tables in Excel is essential knowledge to anyone active in financial modelling using Excel. Using Data Tables one can achieve amazingly powerful scenario analysis with consistent and graphically appealing outputs.

Typical scenario manager for financial analysis - Link this to data table

Typical scenario manager for financial analysis - Link this to data table

If you have ever tried to create a data table using inputs from another sheet you may have seen the error message “Input cell reference is not valid”. This appears to be a limitation of what can be done with Excel Data Tables, however there is a neat and efficient work-around to solve this problem. We have put up a Data Table Tutorial on the main Corality website with a sample workbook outlining the solution.

Hopefully this will put an end to the common statement that it is ‘impossible’ to create a data table in a sheet different to where the assumption is….

Read the full Excel Data Table tutorial

Scenario analysis for freaks - 13 silly options

by Rickard Wärnelid on May 13 2009

no comments »

There are lots of different ways of building a solid scenario manager for efficient scenario analysis, and some are better than others. Most people would agree that the OFFSET is the most common Excel function for this purpose, followed by LOOKUP and INDEX, but every now I see a new creative, or silly, way of solving this rather simple problem by using obscure Excel functionality.

Excel workbook with 13 different ways of creating a Scenario Manager

excelI have put together an Excel workbook with different ways of creating a Scenario Manager - i.e. to pick up the relevant value based on the selected scenario. My standard way of doing this is with an OFFSET as I like that you can expand the range of scenarios without having to re-code the function. From a transparency point of view though I would say that using LOOKUP would make the most sense.

13 Ways to create a Scenario Manager in Excel

Which Excel functions are acceptable from a best-practice point of view?

My preferences (not just from a financial model audit point of view but also as a user/builder of models) are OFFSET, LOOKUP and INDEX.

The worst offenders are definitely

  • SUM (array)
  • Nested IF (I can’t believe people still do this..)
  • Choose (very old-school)
  • MMULT (over-engineering to the n:th degree)
  • ‘+’ (Although there are not complex Excel functions, it still gets very messy and hard to update)
  • INDIRECT (I have never seen this one in practice, and I really hope it stays that way…)
  • PRODUCT (array) (again, over-complication a simple problem)

List of all 13 solutions in Excel

All 13 solutions are listed below (and in this Excel Workbook: “Scenario analysis for freaks - 13 silly options”). The cell references in the list below will probably make more sense once you have had a look at the workbook.

  • =OFFSET($F9,0,$D$7-1)
  • =SUMIF($F$7:$J$7,$D$7,$F11:$J11)
  • =SUMPRODUCT(($F$7:$J$7=$D$7)*1,$F12:$J12)
  • ={SUM(($F$7:$J$7=$D$7)*$F13:$J13)}
  • =LOOKUP($D$7,$F$7:$J$7,$F14:$J14)
  • =IF($D$7=$F$7,F15,IF($D$7=$G$7,G15,IF($D$7=$H$7,H15,IF($D$7=$I$7,I15,IF($D$7=$J$7,J15,”N/A”)))))
  • =CHOOSE($D$7,F16,G16,H16,I16,J16)
  • ={MMULT((D$7=$F$7:$J$7)*1,TRANSPOSE($F$17:$J$17))}
  • =($D$7=$F$7)*F18+($D$7=$G$7)*G18+($D$7=$H$7)*H18+($D$7=$I$7)*I18+($D$7=$J$7)*J18
  • =INDEX($F19:$J19,0,D7)
  • =INDEX($F20:$J20,0,MATCH($D$7,$F$7:$J$7))
  • =INDIRECT(CHAR(96+COLUMN(F$21)+$D$7-1)&ROW())
  • ={PRODUCT(IF($F$7:$J$7=D7,$F22:$J22,1))}

I know that offset is a controversial topic, so it would be interesting to hear other people’s views on how to best construct a scenario manager. Feel free to email me a file with your preferred approach (or more ways of how NOT to do it) and I will post it on the blog.

Search Blogs

Need a financial model audit?

Do you want to find our more about our financial model audit services??

Read more about Corality

Bloggers

Bing specialises in financial modelling in Excel and VBA and has a wealth of technical and analytica...

View their blogs

Graham specialises in advising both private and public sectors on the financial and commercial aspec...

View their blogs

Minh has extensive knowledge and experience in accounting and auditing within Australia and Vietnam ...

View their blogs

Peter is a UK qualified accountant with over 10 years experience and a strong background in financia...

View their blogs

Rickard has a wealth of project finance and financial modelling experience gained from a range of po...

View their blogs