Click the Data tab. Then click the Solver button.
![Click the Data tab. Then click the Solver button.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Use_Solver___Click_Data_Tab_Then_Click_Solver_Bu.PNG)
Select the target cell.
![Select the target cell.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Use_Solver___Select_Target_Cell.PNG)
Click an Equal To option, and then, if necessary, enter a value.
![Click an Equal To option, and then, if necessary, enter a value.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Use_Solver___Click_Equal_To_Option_And_Then_If_N.PNG)
Select the cell range the solver uses to compare against the target cell.
![Select the cell range the solver uses to compare against the target cell.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Use_Solver___Select_Cell_Range_Solver_Uses_To_Co.PNG)
Click Add.
![Click Add.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Use_Solver___Click_Add.PNG)
Enter specific cell reference and constraint, and then click Add.
Click OK.
![Enter specific cell reference and constraint, and then click Add.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Use_Solver___Enter_Specific_Cell_Reference_And_C.PNG)
Click Solve.
![Click Solve.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Use_Solver___Click_Solve.PNG)
If the Solver finds a solution, the Solver Results dialog box opens.
Click the Keep Solver Solution option.
Click a report type.
Then click OK.