"How to Use Solver in Excel | Step-by-Step Example & Tutorial"
- Yatendra Awana
- Feb 28, 2025
- 3 min read
Excel is not just for basic calculations or charts; it's a robust tool equipped with powerful features like Solver. Solver helps you make smarter decisions by finding optimal solutions for a variety of scenarios. Whether you're trying to boost profits, lower costs, or meet specific targets while considering constraints, Solver can be immensely helpful. In this guide, we will go through how to use Solver in Excel, illustrated with a clear step-by-step example.
What is Solver?
Solver is an Excel add-in designed for optimization. It achieves this by modifying several variables to reach the best outcome based on your set criteria. For example, if you aim to maximize your bakery's output while facing resource limitations, Solver can pinpoint the best production levels for your cakes and cookies.
Enabling Solver in Excel
Before you can use Solver, you need to enable it within your Excel application:
Open Excel and head to the "File" menu.
Click on Options found at the bottom left.
In the Excel Options dialog box, select Add-ins.
In the Manage box, choose Excel Add-ins and click Go.
In the Add-ins dialog box, check the box for Solver Add-in and click OK.
Once activated, you can find Solver in the Data tab.
Example Scenario
Let's illustrate how to use Solver with a practical example. Suppose you own a bakery and want to determine the number of cakes and cookies to produce in order to maximize profits while working with limited resources.
Step 1: Set Up Your Spreadsheet
Create a spreadsheet that looks like this:
A1: "Product Type"
B1: "Profit per Unit"
C1: "Units to Produce"
D1: "Total Profit"
Fill in the following data:
| A | B | C | D |
|--------------|-------|--------|-----------|
| Cakes | 20 | | =B2*C2 |
| Cookies | 10 | | =B3*C3 |
| Total | | | =SUM(D2:D3) |
This setup enables you to calculate total profit based on the number of units manufactured.
Step 2: Define Constraints
Next, define your resource limitations:
Flour available: 500 units (Cakes need 5 units of flour; Cookies use 2 units).
Eggs available: 200 units (Cakes use 2 eggs; Cookies require 1 egg).
Add this resource information:
| E | F | G |
|------------|-------|--------------|
| Flour | 5 | 2 |
| Eggs | 2 | 1 |
Summarize your available resources in a table:
| A | B | C | D | E |
|--------------|-------|--------|----------|-------|
| Resource | Available | Usage per Cake | Usage per Cookie | Total Usage |
| Flour | 500 | 5 | 2 | =E2C2 + E3C3 |
| Eggs | 200 | 2 | 1 | =F2C2 + F3C3 |
Step 3: Setting Up Solver
Now, let’s inform Solver about our optimization goal:
Go to the Data tab and select Solver.
Set Objective: Choose the cell for total profit calculation (e.g., D4).
To: Select “Max”.
By Changing Variable Cells: Choose the cells for units produced (C2:C3).
For Flour: Set the total consumption to be less than or equal to the available amount (E5 <= 500).
For Eggs: Set the total consumption to be less than or equal to the available amount (F5 <= 200).
In the Solver Parameters dialog, set:
Click on Add to input your constraints:
Press OK to apply them.
Step 4: Solve the Problem
After setting up everything, click Solve in the Solver Parameters dialog. Solver will compute the optimal production levels for cakes and cookies to maximize your profit.
Step 5: Analyze the Results
Once Solver completes its calculations, you will see a dialog box displaying the results. Pick the option to keep the solution and click OK. You will now observe the optimal quantity for cakes and cookies filled in the "Units to Produce" column.
Step 6: Adjust and Re-solve
Solver is flexible; you can rerun it under different variables or constraints. For example, if you lower ingredient costs or modify the available resources, you can analyze how that impacts your profit margin.
Mastering Solver for Better Decisions
Understanding how to use Solver in Excel empowers you to enhance your decision-making through effective optimization. This tutorial guided you through the setup and implementation of Solver in a bakery example. By specifying your variables and constraints, Solver helps you find personalized solutions to your business challenges.
Whether in small shops or complex project management, mastering Solver can lead to more informed and data-driven decisions.
Familiarizing yourself with this tool saves you time and improves your analytical skills, allowing for better outcomes in your work.
Remember, experimenting with Solver can open new avenues for efficiency and resource management.
Happy analyzing!


Có lúc mình quay lại hi88 report mà không đặt trước mục tiêu sẽ xem khu vực nào, nhờ vậy cách vận hành lại dễ quan sát hơn. Mình bắt đầu từ trang chính, chuyển sang casino live rồi ghé qua bắn cá trước khi mở phần tài khoản. Dù thay đổi nội dung khá ngẫu nhiên, các bước điều hướng vẫn giữ được sự mạch lạc và không khiến mình phải quay lại tìm đường. Mình cũng nhận thấy những chức năng thường dùng được bố trí tương đối dễ nhớ. Theo mình, sự thuận tiện này chỉ thực sự rõ sau vài lần sử dụng, khi thao tác dần trở thành thói quen thay vì phải quan sát kỹ…
Khi xem 98win từ góc độ người thường xuyên quay lại, tôi chú ý nhiều hơn đến việc website không yêu cầu đăng nhập lại mỗi lần chuyển giữa các khu vực nội dung. Điều này khác với tốc độ tải hay cách phân nhóm, bởi tác động nằm trực tiếp ở tính liên tục của phiên sử dụng. Người dùng có thể bắt đầu ở một khu vực, chuyển sang nội dung khác rồi tiếp tục thao tác mà trạng thái truy cập không bị ngắt chỉ vì đổi mục. Với một phiên có nhiều lần chuyển đổi, việc duy trì trạng thái như vậy giúp loại bỏ một thao tác lặp lại và làm hành trình từ nội dung…
Trong một lần trải nghiệm riêng Keno tại Hay88, mình tập trung vào cách thông tin được trình bày trong phạm vi xổ số. Ban đầu mình dành thời gian xác định Keno nằm ở đâu, sau đó mới xem những dữ liệu và lựa chọn xuất hiện bên trong. Khi cần quay lại, mình thử đi theo đúng trình tự ngược để xem có dễ trở về danh sách xổ số hay không. Sau vài lượt, cách thao tác trở nên quen hơn vì mình đã biết nội dung nằm ở lớp nào. Với mình, trải nghiệm này cho thấy khi đánh giá một lựa chọn cụ thể, cần xem cả khả năng tìm thấy nó từ chuyên mục…
Thay vì bắt đầu từ trang chính, qq88.money được mình kiểm tra trực tiếp qua khu game bài để xem một danh mục vận hành độc lập thế nào. Mình quan sát cách nội dung được bố trí, cách quay lại những phần chính và phản hồi trong quá trình di chuyển. Sau đó mình thử thêm trên điện thoại để xem cách sử dụng có thay đổi đáng kể không. Điều mình nhận thấy là các thao tác vẫn khá quen thuộc và bố cục tương đối dễ theo dõi. Theo mình, khi một khu vực giữ được sự rõ ràng ở nhiều tình huống sử dụng, người dùng sẽ dễ hình thành thói quen mà không cần điều chỉnh…
Khi mình quan sát cách hiển thị của https://mm88.tax/, mình thấy bố cục tổng thể được tổ chức khá rõ ràng, các nhóm nội dung như thể thao, casino live, game bài và bắn cá được tách riêng nên việc theo dõi không bị rối, hệ thống menu giữ sự nhất quán giúp người dùng nhận biết vị trí danh mục nhanh hơn, trong lúc chuyển qua nhiều chuyên mục liên tiếp, tốc độ phản hồi khá đều và thao tác diễn ra mượt, cách trình bày như vậy tạo cảm giác gọn gàng, dễ làm quen và thuận tiện hơn khi sử dụng trên nhiều thiết bị