Using Solver & VLOOKUP together

BTBarrett

New Member
Joined
Apr 18, 2002
Messages
1
Hi there:

When using the solver function, is it possible to get the VLOOKUP function to run as part of the solver routine?, i.e. some cells influenced by the solver contain the Vlookup command and when I try to run solver it can't seem to handle it. Then, after a minute or so it comes back with a message to say solution has been found but none of the cells have changed!

Any thoughts/possible-solutions gratefully accepted!!

Brendan Barrett
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
I had a similar problem when I had vlookup formulas pulling stock prices from another sheet and the solver solving for the best weighted option with a given set of stocks.

As I recall, you cannot have the vlookup formula in the "influenced" section. You will need to save the vlookup formulas as values, run the solver, and given that the numbers do not change, replace the vlookup formulas. (Hopefully there are not too many of them)

You may also want to wait for a more informed opinion to be posted.

Throwing in my 2 cents.
-Dave
 
Upvote 0
Use of the VLOOKUP function in a Solver model is problematic. Take a look at http://www.solver.com/tutorial6.htm. Especially, note the paragraphs on... "Mathematical Relationships" and "Nonsmooth optimization problems". In fact, you may want to review this entire Solver tutorial (See http://www.solver.com/tutorial.htm). These are the folks who created Solver!
This message was edited by Mark W. on 2002-04-19 07:14
 
Upvote 0

Forum statistics

Threads
1,213,526
Messages
6,114,136
Members
448,551
Latest member
Sienna de Souza

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