How To Create Excel Data Table?
A Data Table generates different scenarios for your formula. You can use it to do What-if analysis. Lets first create a Excel Table that has at least 2 columns. This will help in understanding how Data tables work.- First column filled with test values
- Second column header with calculation to be tested.
- Select Table range.
- Click Menu -> Data -> What-If Analysis.
- Select 'Data Tables'.
- Choose appropriate cells for Row or Column Input.
- Click Ok.
How to Use Excel Data Table? - Example
Assume that you want to calculate percentage for marks scored by students. Below Table has the Marks scored out of 200 Marks, by students in a subject.| A | B | C | D |
| Total Marks | 200 | 100% | <- ‘B1/200 |
| Jobs | 100 | ||
| Gates | 150 | ||
| Sachin | 180 |
What-if Analysis & Data Tables
Similarly to easily check the percentage of marks scores by other students, we are going to create a Data table.- Select the table range B1:C4.
- Select Menu -> Data -> What-if Analysis -> Data Table.
- In Column Input Row choose cell B1.
- Click Enter.
| A | B | C | D |
| Total Marks | 200 | 100% | =(B1/200)*100 |
| Jobs | 100 | 50% | =(100/200)*100 |
| Gates | 150 | 75% | =(150/200)*100 |
| Sachin | 180 | 90% | =(180/200)*100 |