How to Solve 2 Equations with 2 Unknowns in Excel (2 Examples)

Method 1 – Combine MMULT and MINVERSE Functions

Steps:

  • Select the D13 and D14 cells.

Select Cells to Solve 2 Equations with 2 Unknowns in Excel

  • Insert the formula below to solve the equations:
=MMULT(MINVERSE(B8:C9),E8:E9)
  • Press Ctrl + Shift + Enter to get your desired result.

Combine MMULT and MINVERSE Functions to Solve 2 Equations with 2 Unknowns in Excel

Thus, your equations with two unknowns will be solved, and you will get the solutions in D13 and D14 cells. For example, the output should look like this.

Solved 2 Equations with 2 Unknowns in Excel

Note: Here, you must press Ctrl + Shift + Enter to get your desired result because it is an array formula. If you press Enter only, the formula won’t work properly, and you won’t get your proper result.

Read More: How to Solve Polynomial Equation in Excel


Method 2 – Use the Solver Add-In in Excel

Step 1: Installing Solver Add-In

Generally, Solver doesn’t remain in any tab initially. Rather, you need to add it from the Excel add-in section.

  • Go to the File tab.

Access the File Tab

  • Choose the Options option from the expanded File tab.

Choose the Options Option

  • The Excel Options window will appear.
  • Go to the Add-ins tab from the window >> select the Solver Add-in option >> click the Go… button.

Excel Options Window

  • The Add-ins window will appear now.
  • Tick the Solver Add-in option from the window and click the OK button.

Add-ins Window

Thus, the Solver tool will be added to the Data tab.

Solver Tool to Solve 2 Equations with 2 Unknowns in Excel


Step 2: Preparing the Dataset in Proper Format to Solve Functions

To calculate using the Solver tool, you will first need to assume the unknowns’ values and calculate the functions’ values.

  • Set the X and Y values as 1 and 1. As a result, the values of the functions would be 3 and 1. But the required values are 8 and 5.
  • Record these assumed values, calculated function values, and required values of the functions in the Excel file.

Prepared Dataset


Step 3: Using Solver to Get Results

Now, you can finally get the values of the two unknowns.

  • Go to the Data tab >> Solver tool.

Solver Tool to Solve 2 Equations with 2 Unknowns in Excel

  • The Solver Parameters window will appear.
  • At the Set Objective: text box, refer to cell C12.
  • At the To: options list, put the radio button on the Value Of: option and write 8 in the text box beside this option.
  • At the By Changing Variable Cells: text box, refer to C8:C9 cells.
  • To set the constraints, click the Add button at the Subject to the Constraints: group.

Solver Parameters Window

  • The Add constraint dialogue box will appear.
  • At the Cell Reference text box, refer to the C12 cell.
  • Choose equal sign (=) from the dropdown list and refer to the D12 cell in the Constraint: text box.
  • Click on the OK button.

Add Constraint Window

  • Repeat the previous 5 steps to add another equation’s constraint.
  • The Solver Parameters window will look like the following.
  • Choose the Simplex LP option from the Select a Solving Method: options.
  • Click on the Solve button.

Solve 2 Equations with 2 Unknowns in Excel using the Solver Tool

  • The Solver Results window will appear to inform you that a solution has been found.
  • Put the radio button on the Keep Solver Solution option and click on OK.

Solver Results Window

Your equations with 2 unknowns will be solved, and the following results will be shown in the C8:C9 cells. For instance, the result would look like this.

Solved 2 Equations with 2 Unknowns in Excel

Read More: How to Solve an Equation for X When Y is Given in Excel 


Download the Practice Workbook

You can download our practice workbook from here for free!


Related Articles


<< Go Back to Excel Solve Equation | Excel Solver Examples | Solver in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Tanjim Reza
Tanjim Reza

Md. Tanjim Reza Tanim, a BUET graduate in Naval Architecture & Marine Engineering, contributed over one and a half years to the ExcelDemy project. As an Excel & VBA Content Developer, he authored 100+ articles and, as Team Leader, reviewed 150+ articles. Tanim, leading research, ensures top-notch content on MS Excel features, formulas, solutions, tips, and tricks. His expertise spans Microsoft Office Suites, Automating Finance Templates, VBA, Python, and Developing Excel Applications, showcasing a multifaceted commitment to the... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo