Solver problem

roscoe

Well-known Member
Joined
Jun 4, 2002
Messages
1,046
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
OK, I can't figure this out. I'm trying to use Solver to determine an input parameter of the BINOMDIST() formula that provides the exact answer I want. It works for some inputs and outputs but not for all.

For example, I want 4 successes out of 7 trials to yield a 95% answer, meaning I need to itterate on the "P" input in the formula [=BINOMDIST(4,7,"P",TRUE) should result in .95]. Using solver it iterates successfully to .3413.

Now, change 4 to 6, and solver drives "P" to an answer that causes a #NUM result (P= 4.023), however I can manually input 0.6518 and I get the right answer.

I've tried adding constraints that won't let the input go outside the bounds of 0 and 1.0 but it does anyway.

Ideas?
 
I was forced to try this again...and the problem still exists. I'm hoping somebody will have an idea. I have a ton of test data coming up and I really need a reliable way to solve for the BINOMDIST when I know the answer and am looking for one of the inputs.

Neither solver nor goal seek reliably find the answers, and I can't constantly be rewriting macros...

Ideas?
 
Upvote 0

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
I wouldn't know where to start, but that's exactly what I need. Problem is that solver as I've used it uses cells as inputs...no clue how to do that in a custom function
 
Upvote 0
Yes, I got my answer as posted in the other thread.
 
Upvote 0
Yes, I got my answer as posted in the other thread.
I'm happy that you sorted it out, well done.

Please note that duplicate threads - that don't state such - are against forum rules (generally, I haven't checked this particular forum). I could well have taken some time to have written a custom function to answer this thread in ignorance of the solution in the other thread. That is one reason to not have duplicate threads. cheers
 
Upvote 0
The other post was months old...I had forgotten about it.
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top