Solution - using Solver. Below we solve this LP with the Solver add-in that comes with Microsoft Excel. If you click here you will be able to download an Excel spreadsheet called lp.xls that already has the LP we are considering set up. Look at Sheet A in lp.xls and to use Solver do Tools and then Solver. Solving Linear Programs in Excel 11) Excel will solve LP problem based on the formulas you inputted. When Excel finds an optimal solution, the following appears. 12) Choose desired output reports. Highlight both (hold down the control key) the Answer Report and Sensitivity Report. Click on Keep Solver Solution and OK then the Reports will be. Solver generates a different sensitivity report for nonlinear problems, as shown in Figure 13-17. These reports tell you how sensitive the solution is to small changes in variables and constraints.
How to do sensitivity analysis with data table in Excel?
– If you get prompted that Solver is not currently installed, click Yes to install it. 4. After you load Solver, the Solver command is available in the “Analysis group” on the “Data” tab – MAC users. 1. Open Excel for Mac 2011 and begin by clicking on the “Tools” menu. 2. Excel does not allow Integer constraints in Sensitivity and Limit reports. You will need to return to the Solver Parameters dialog box (see Figure 6-18) and delete the inte- ger parameters for Houses and Lots to get these reports. These reports involve graphing several parameters in several equations.
Let’s say you have a chair shop and sold chairs as below screenshot shown. Now, you want to analyze how the price and sales volume affect the profit of this shop simultaneously, so that you can adjust your sales strategy for better profit. Actually, the sensitivity analysis can solve your problem.
Do sensitivity analysis with data table in Excel
This method will apply the Data Table feature to do a sensitivity analysis in Excel. Please do as follows:
1. Finish the Profit & Loss Statement table as below screenshot shown:
(1) In Cell B11, Please type the formula =B4*B3;
(2) In Cell B12, please type the formula =B5*B3;
(3) In Cell B13, please type the formula =B11-B12;
(4) In Cell B14, please type the formula =B13-B6-B7.
2. Prepare the sensitivity analysis table as below screenshot shown:
(1) In Range F2:K2, please type the sales volumes from 500 to 1750;
(2) In Range E3:E8, please type the prices from 75 to 200;
(3) In the Cell E2, please type the formula =B14
3. Select the Range E2:K8, and click Data > What-If Analysis > Data Table. See screenshot:
4. In the popping out Data Table dialog box, please (1) in the Row input cell box specify the cell with chairs sales volume (B3 in my case), (2) in the Column input cell box specify the cell with chair price (B4 in my case), and then (3) click the OK button. See screenshot:
5. Now the sensitivity analysis table is created as below screenshot shown.
You can easily get how the profit changes when both sales and price volume change. For example, when you sold 750 chairs at price of $125.00, the profit changes to $-3750.00; while when you sold 1500 chairs at price of $100.00, the profit changes to $15000.00.
Related articles:
The Best Office Productivity Tools
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
- Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
- Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
- Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
- Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
- Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
- Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
- Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
- Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
- More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.Nice. Thank you
- To post as a guest, your comment is unpublished.I built an Excel sensitivity analysis tool - https://causal.app/sensitivity. It figures out which variables in your model are the most important, and shows you what happens if you vary each variable one by one.
- To post as a guest, your comment is unpublished.Cell A11 should be Sales; Cell A12 should be Cost of Sales; Cell A13 should be Gross Profit while Cell A14 should be Operating Profit.
Celestine B. Etouwem.
Even i have faced this problem.But i found the way to work with it. when you hit the solver button to solve it gives us the strange message'BLAH BLAH'( An unexpected internal error occurred,
or the available memory was exhausted'.)'
1.open the excel and save(ctrl+s) your file(current document).
2. open the solver give the input(tgt. cell, deci. var. etc.)
3.hit the solver button.
4. The solver displays solution.
5.Click 'OK' (don't open the answer,sensitivity or limit report).
6.close the solver dialog box.
7.Open the solver dialog box and hit 'solve' button.
8.Then try to open the answer,sensitivity and limit report. It works 5n.
Don S wrote:
Excel 2007 Solver Internal Error When Generating Answer Report
06-Jul-07
TIA
Don S.
Previous Posts In This Thread:
On Friday, July 06, 2007 5:24 PM
Don S wrote:
Excel 2007 Solver Internal Error When Generating Answer Report
TIA
Don S.
On Sunday, August 26, 2007 11:52 PM
MS wrote:
Hi Don,I am having the exact same problem???have you found a solution for it?
Hi Don,
I am having the exact same problem???have you found a solution for it?
Thanks for your help,
MSM
'Don S.' wrote:
Excel Solver Sensitivity Report Missing
On Monday, August 27, 2007 12:36 PM
Don wrote:
MSM<No. I still have the problem.
MSM<
No. I still have the problem. I am not sure where else to look for the
answer. I will be nedding this capability for a course I teach that is coming
up very soon now.
If you find an answer independent of this thread, I would really appreciate
a note here. I will do the same.
I can't believe we are the only two that are being affected by this!?
Don S.
'MSM' wrote:
On Monday, August 27, 2007 2:08 PM
Dana DeLouis wrote:
Just throwing this out...
Just throwing this out...
If you have a space in the workbook name, experiment by renaming your
workbook without any spaces.
Also, don't call your subroutine 'Main' if it applies.
Again...just some ideas.
--
Dana DeLouis
Windows XP & Excel 2007
'Don S.' <Do...@discussions.microsoft.com> wrote in message
news:131C2C3E-5659-42BF-B06B-6513F197CBE5@microsoft.com...
On Monday, August 27, 2007 2:44 PM
Don wrote:
Dana,I thought I had tried that, but I will try it again. Thanks.Don S.
Dana,
I thought I had tried that, but I will try it again. Thanks.
Don S.
'Dana DeLouis' wrote:
On Monday, August 27, 2007 3:21 PM
Dana DeLouis wrote:
On Monday, August 27, 2007 4:54 PM
Don wrote:
Hi Dana,That is strange and I would really like to adopt that as a workaround,
Hi Dana,
That is strange and I would really like to adopt that as a workaround, but I
know absolutely nothing about recording, writing or using vba macros. Could
you walk me throught it or point me to a reference that I could use?
I would realy appreciate any help beyonfd he great help you have been with
this post.
Don S.
'Dana DeLouis' wrote:
On Monday, August 27, 2007 5:09 PM
Dana DeLouis wrote:
Hi. Ok.1. From Solver's worksheet, Hit Alt + F11 to bring up vba editor.2.
Hi. Ok.
1. From Solver's worksheet, Hit Alt + F11 to bring up vba editor.
2. Vba Editor Menu...Insert | Module
3. Paste a copy of Code into this module.
4. Vba Editor Menu... Tools | References... and select 'Solver'
(This allows Solver to run)
5. Select anywhere in the code, and Hit F5 (Runs the Macro)
Save workbook.
This may not work, but... who knows. :>~
There are certain things in Solver that require no spaces in the workbook
name, that's why I suggested it earlier.
Hopefully, this will spark an interest in learning Vba.
--
HTH :>)
Dana DeLouis
Windows XP & Excel 2007
'Don S.' <Do...@discussions.microsoft.com> wrote in message
news:21819DE7-3138-442F-A1CB-95382D3E757C@microsoft.com...
On Tuesday, August 28, 2007 5:22 PM
Don wrote:
First, thaank you for your help.
First, thaank you for your help. I loaded your first subroutine and it worked
as you described. After generating the reports, I saved the spreadsheet,
brought it back in and then was able to resolve the problem and re-generate
the reports.
Reading Sensitivity Report Solver
I brought in a new spreadsheet, ran Solver and the error was back as I
expected. So I loaded/ran your first subroutine and it fixed up that
spreadsheet.
So as of right now, I see how to fix the problem, one spreadsheet at a time,
which way ahead of where I was.
I am not sure what or why your other subroutines are doing. I did not try
them. Ideally, it would be nice to run a subroutine once per session and then
at least for that session of Excel all of the spreadsheets used would run
properly. Is that what your other subroutines are doing?
BTW I did hacve to lower the security level in order to run the subroutine
on the second spreadsheet.
Don S.
'Dana DeLouis' wrote:
On Tuesday, August 28, 2007 6:19 PM
Dana DeLouis wrote:
Hi. Glad it worked. I am not sure why the corruption.
Hi. Glad it worked. I am not sure why the corruption.
I have been working a little on trying to figure out why my subroutine that
loads the Solver Add-Inn no longer works. I cannot figure it out. Again,
it's a Excel 2007 issue.
If you are interested in Macros, you may be interested in the following:
You can have a 'Digital Signature' that allows you to put the security level
back to high.
Go to
C:Program FilesMicrosoft OfficeOffice12
And run.
SELFCERT.EXE
Type your name in the box.
When working on a workbook with Macros,
go to the vba editor and select:
Tools | Digital Signatures
and choose your name.
Save & close your workbook.
You should now be able to re-open your workbook without the security
message.
--
HTH :>)
Dana DeLouis
Windows XP & Excel 2007
'Don S.' <Do...@discussions.microsoft.com> wrote in message
news:1688B891-D301-4E1E-BC75-4A1B68579130@microsoft.com...
On Wednesday, August 29, 2007 7:54 PM
Don wrote:
Dana,Sorry to bother you again.
Dana,
Sorry to bother you again. Everything worked ok with your 1st S/R yesterday,
but today, trying it on a new spreedsheet, things aren't working.
When I do your Step 4, there is no Solver in the list.
I have tried it several times. I am doing something wrong, but I don't know
what.
TIA
Don S.
'Dana DeLouis' wrote:
On Wednesday, August 29, 2007 9:37 PM
Dana DeLouis wrote:
Re: Excel 2007 Solver Internal Error When Generating Answer Report
Ref: >> 4. Vba Editor Menu... Tools | References... and select 'Solver'
Hi. When one starts a new session of Excel, and you want to write Solver
macros, here's what you do first.
From the worksheet, select the Solver Analysis Tookpak. This loads Solver,
and makes it visible for the vba editor.
Now... go to vba, Menu, and do Tools | Reference, and select 'Solver.'
Solver should now show up in the list.
I've have a problem setting this up automatically via vba with 2007, so I'm
sure there's a issue here I am not familiar with yet.
Anyway, hope this helps.
--
Dana DeLouis
<snip>
On Saturday, September 01, 2007 10:46 AM
Don wrote:
Dana,Again thanks a lot.
Dana,
Again thanks a lot. Sorry for being slow to respond but I have had internet
problems the last two days. I have not tried your latest suggestion, but will
shortly.
Take care,
Don
'Dana DeLouis' wrote:
On Sunday, September 02, 2007 6:04 PM
farac wrote:
On Thursday, October 11, 2007 5:46 AM
Chri wrote:
On Saturday, February 07, 2009 12:42 PM
Kunal wrote:
Excel Solver Internal Error
You have to create a macro in the personal workbook and reference it back to the Solver add-in for it to work.
Directions:-
1) Open a blank Excel Workbook
2) Un-install solver add in (Go to excel options, add-ins, at the bottom you'll Manage: with a drop down list, select 'Excel Add-ins' in that list and click on the 'Go...' button. From there you can uncheck the solver add in and click ok
3) Get back to your worksheet and press Alt+F11 to get into Visual Basic.
4) If project explorer on the right side is not displayed, press Ctrl+R to display it.
5) Find 'VBAProject (PERSONAL.XLSB) and insert a new module under the 'Modules' Folder
6) Enter the following code into the module:-
Sub SolverFix()
Application.Run 'Solver.xlam!Auto_Open'
End Sub
7) Hit F5 and to ensure that there are no bugs in the code.
8) Once the code runs without any issues,click anywhere on the code and go to the Tools --> References menu
9) In the references window, click on 'Browse' on the right side.
10) In the drop down list for 'Files of type' select - 'Microsoft Office Excel Files'. Then navigate yourself to the folder where the solver add-in is kept (Typically it'll be Program Files --> Microsoft Office --> Office12 --> Solver) and select the 'SOLVER.xlam' file
11) Once you have returned to the References window, and you see SOLVER in the list of 'Available References' and you have made sure it is checked, click 'OK'
12) Save the VBA project, save the workbook and exit excel.
13) Restart excel and when you run solver, reports should run with no errors.
On Saturday, September 12, 2009 8:00 PM
Patrick Paschall wrote:
Solver: an unexpected....
You all Rock! Was having the same issue as Don. I joined the egghead cafe after this post helped me. I know some high level coding but no VB. Entered the scrept in the module that Dana provided, ref
EggHeadCafe - Software Developer Portal of Choice
Custom Sorting With IComparable and IComparer
http://www.eggheadcafe.com/tutorials/aspnet/d5a8c475-2395-41e7-9c19-aa2edb23422e/custom-sorting-with-icomp.aspx