How to Create a 4-Variable Data Table in Excel (with Easy Steps)

Four variables mean the dataset needs to have 4 independent variables. We will calculate the final output, which is a dependent variable. We have a dataset of Bank statements, where we entered the Principle, Interest Rate, Month, and Future Value (FV). We’ll find the Payment from these four variables.

Sample Dataset


Step 1 – Create the Outline of a Table

  • Create a dataset as in the image below, with four columns for independent variables and a fifth for the dependent one.
  • Fill in the independent variables for all data points.

Create a data Table with 4 Variables in Excel


Step 2 – Calculate the Payment Using the PMT Function

  • Go to cell F5 and insert the following formula.
=PMT(C5,D5,B5,E5)

C5 is the Interest rate, D5 is the Month, B5 represents the Principle (Present Value), and E5 is the Future Value (FV). The PMT function returns the payment for the inserted data.

Calculate the Payment (PMT) to create 4 variable data table in Excel

  • Press Enter and drag down the Fill Handle tool for the other cells.

Fill Handle

You will get all the output for the remaining cells.


Step 3 – Insert a Pivot Table

  • Select the entire range B5:F16 and navigate to the Insert tab, then choose PivotTable.

Insert the Pivot Table to create 4 variable data table in Excel

  • The PivotTable from table or range window appears.
  • The Table/Range is auto-selected.
  • Choose New worksheet in the Choose where you want the PivotTable to be placed.
  • Hit OK.

PivotTable from table or range window

  • Drag Principle in the Columns group, Interest Rate, Month, and Future Value (FV) in the Rows section, and the PMT in the ∑ Values field.

Completing Pivot table fields for creating 4 variable data table in Excel


Step 4 – Modify the Data Table

  • Go to the Design tab.
  • Choose Report Layout in the Layouts group and pick Show in Tabular Form.

Modify the Data Table to make 4 variable data table in Excel

  • Under the Layouts section, choose Grand Totals and select Off for Rows and Columns.

  • Select Subtotals and pick Do Not Show Subtotals.

Formatting 4 variable data table in excel

  • Select the output of columns E, F, and G, right-click on the selection, then choose Format Cells.

  • The Format Cells window appears.
  • Set the Category as Currency. Choose suitable Negative numbers and put the Decimal places as 0.
  • Hit OK.

Format Cells window

  • Here’s a 4-variable data table from our sample.


Practice Section

We have provided a practice section on each sheet on the right side for your practice.

Practice Section


Download the Practice Workbook


Related Articles


<< Go Back to Data Table in Excel | What-If Analysis in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Fahim Shahriyar Dipto
Fahim Shahriyar Dipto

Fahim Shahriyar Dipto is a graduate of Mechanical Engineering at BUET. With over 1.5 years of experience at Exceldemy, he authored 70+ articles on ExcelDemy. He has expertise in designing worksheets at You’ve Got This Math. Currently, He is a Team Leader at Brainor. Dipto's passion extends to exploring various aspects of Excel. Beyond tech, he enjoys creating engaging kids' worksheets using Illustrator. A dedicated employee and innovative content developer, He incorporates a commitment to academic excellence and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo