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

Excel is a powerful tool and is very renowned for data analysis and solving large calculations. In several mathematics problems and calculations, we need to solve 2 equations with 2 unknowns. Excel is very handy to use in this regard. If you are looking for ways to do this, you have landed in the perfect place. In this article, I will show you two effective methods to solve 2 equations with 2 unknowns in Excel.

## How to Solve 2 Equations with 2 Unknowns in Excel: 2 Examples

Say, you have 2 equations with 2 unknowns x and y. The equations are as follows:

2x + y = 8

3x – 2y = 5

Now, you can follow any of the two methods given below to solve these equations.

### 1. Combine MMULT and MINVERSE Functions

The most effective and quickest method for solving two equations with 2 unknowns is to combine the MMULT and MINVERSE functions. Follow the steps below to do this.

📌 Steps:

• First and foremost, select the D13 and D14 cells.

• Following, insert the formula below to solve the equations.
`=MMULT(MINVERSE(B8:C9),E8:E9)`
• Subsequently, press Ctrl + Shift + Enter to get your desired result.

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.

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.

### 2. Using Solver Add-In in Excel

Another smart way to solve 2 equations with 2 unknowns is to use the Excel Solver add-in. Go through the steps below to accomplish this.

📌 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.
• In order to do this, first, you need to go to the File tab.

• Afterward, choose the Options option from the expanded File tab.

• At this time, the Excel Options window will appear.
• Now, go to the Add-ins tab from the window >> select the Solver Add-in option >> click on the Goâ€¦ button.

• As a result, the Add-ins window will appear now.
• Following, tick the Solver Add-in option from the window and click on the OK button.

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

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

Now for calculating using the Solver tool, at first you will need to assume the unknownsâ€™ values and calculate the functionsâ€™ values.

• To do this, we set the X and Y values as 1 and 1. As a result, the values of the functions would be 3 and 1 respectively. But the required values are 8 and 5.
• Now, record these assumed values calculated function values, and required values of the functions in the Excel file.

📌 Step 3: Using Solver to Get Results

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

• Initially, go to the Data tab >> Solver tool.

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

• Consequently, the Add constraint dialogue box will appear.
• At the Cell Reference text box, refer to the C12 cell.
• Following, choose equal sign (=) from the dropdown list and refer to the D12 cell in the Constraint: text box.
• Last but not least, click on the OK button.

• Repeat the previous 5 steps to add another equationâ€™s constraint.
• Afterward, the Solver Parameters window will look like the following.
• Here, choose the Simplex LP option from the Select a Solving Method: options.
• Subsequently, click on the Solve button.

• As a result, the Solver Results window will appear informing you that it found a solution.
• Here, put the radio button on the Keep Solver Solution option and click on the OK button.

Consequently, 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.

## 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

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

Advanced Excel Exercises with Solutions PDF