Today’s topic is how to create a data table.
One of the things they teach us early in business school is to think broadly about our decisions. We are taught to think about best-case scenarios, worst-case scenarios, and everything in between. Excel can be very useful in exploring a number of different situations from a quantitative standpoint, and data tables are one of the main tools you can use to quickly and easily explore such scenarios.
Data tables allow you to see what the outcome would be if you changed one (or two) of your input variables. This means that instead of manually changing a cell one number at a time to see what would happen, you can list a large range of possible values for your input variable(s) and Excel will calculate the result for you.
Here is an example:
- Download the example spreadsheet here
- Make sure you are on the sheet titled “One Variable Data Table”
- Using the 8% discount rate, we can see that if service was expanded the NPV for 5 years would be $1,147 209. However, we are not sure if 8% is correct. We would like to see what the NPV would be if the discount rate was as low as 6%, as high as 10%, and everything in between.
- Notice in cells B9:B17 I have already created a range of values from 6% to 10% increasing at half percent intervals.
- Now we can get down to business. Move your cursor to C8.
- Press the “equals” button, then arrow up twice to cell C6 (the NPV formula) then hit “enter.”
- Highlight cells B8:C17 – the box holding the data table.
- PC: From the “Data” menu in the “Data Tools” section click “What-If Analysis” then “Data Table” (keyboard shortcut Alt → A → W → T)
- Mac: From the “Data” menu in the “Analysis” section click “What-If” then “Data Table”
- You should see the Data Table dialogue box pop up (see picture below)
- Click into the “Column input cell” box and then click cell C5 (the discount rate)
- Leave the “Row Input Cell” empty. Then click OK.
Notice that Excel has automatically placed a formula into each box that calculates the NPV given the different discount rates. A few things to keep in mind about data tables:
- The number sitting at the top of the data table (in our example, cell C8) cannot be moved or deleted. But it looks weird sitting there, so I usually change its font color to match the background or hide the entire row.
- You can’t delete a single row in a data table. If you need to alter the data table, you’ll have to remake it.
- Sometimes calculations for Data Tables are turned off. Either change this using the calculation options (under the “Formulas” menu) or hit the F9 button to manually calculate. (CMD + = for a Mac)
- Data tables can handle two variables and there is an advanced example showing you how to do that on the other tab in the example worksheet. Go try it out, you’ll be glad you did!
i wasnt sure how to set up a table where i’m looking at different IRR’s given length of time…
so for example. today outflow is -1.5mm, then i get back 37500 every month for 120 months. I get my IRR is 2.345% per month or 32% compounded annually.
Now i want to create a table where different lengths of months are going down vertically and next to them the appropriate IRR in lets say 130 months, 140 months, 150 months….etc.
any guidance is extremely appreciated.
Thank you,
Dan
Here is a spreadsheet that I think answers your problem: https://dl.dropboxusercontent.com/u/3535032/IRR_DataTable.xlsx
Essentially, you need to set up your cash flows with an IF formula to make it dynamic based on a single timing input.
thank you so much! this was exactly what I was looking for…
Pingback: Excel Tip of the Week: Calculation Options | OwenBloggers: Life as an MBA student at Vanderbilt University Owen Graduate School