Excel - Use Solver with VBA - Episode 1830

  Рет қаралды 48,118

MrExcel.com

MrExcel.com

Күн бұрын

Пікірлер: 32
@nimamohebian8930
@nimamohebian8930 2 жыл бұрын
I found the answer of my problem Id been searching for it a long time, thank u so much sir.
@JoaoGuilherme-nx8yk
@JoaoGuilherme-nx8yk 3 жыл бұрын
Amazing!! Thank you!!
@giusepearturo
@giusepearturo 4 жыл бұрын
thansk from Colombia
@anuradhasoni5721
@anuradhasoni5721 5 жыл бұрын
best explanation ....hats off your effort.. Thankyou
@XMelomanoX
@XMelomanoX 10 жыл бұрын
Just what i needed, good job!
@talkohavy
@talkohavy 6 жыл бұрын
Amazing video. Thank you so much.
@michaelconnors7668
@michaelconnors7668 2 жыл бұрын
Solver uses the Broyden-Fletcher-Goldfarb-Shanno algorithm which is a non-linear optimization. Quattro Pro also uses the Broyden-Fletcher-Goldfarb-Shanno algorithm for its Optimizer tool. Solver looks a "black box" tool, but when you know what it is based on you can kind of understand what the solver does.
@asierbernardomugarraflores678
@asierbernardomugarraflores678 3 жыл бұрын
bro !! this video is amazing .. I love you !!! you didn't miss anything
@justcuz9181
@justcuz9181 9 жыл бұрын
Bill Jelen for President!!
@mancalledhero
@mancalledhero 10 жыл бұрын
Seems like a formula to solve for the optimal solution would be unreasonably complex. For this problem, you could use the simplex method for faster calculations.
@joangustavobritomaldonado4623
@joangustavobritomaldonado4623 7 жыл бұрын
THANKS.. that was really helpfull...
@Lifesigns37
@Lifesigns37 10 жыл бұрын
Good video lots to think about. I've found many times the VBA method coupled with a few formulas in a loop can solve complex tables like this. Still always think there must be a formula way to achieve this, most likely an array formula. @ExcelisFun could perhaps give it a go.
@duffry
@duffry 10 жыл бұрын
I'm guessing there would be a way to start a formula by looking at filling the largest vehicle as many times as possible until the remainder reaches a certain threshold. Then scale down. That makes some assumptions about the relative costs per passenger of the vehicles ofc. Might have to play with this one...
@kaiser6242
@kaiser6242 5 жыл бұрын
Thank you.
@MrXL
@MrXL 5 жыл бұрын
+Kaiser you are welcome!
@kadenzxc
@kadenzxc 9 жыл бұрын
I also feel like there should be an algebraic method of solving this problem. The issue is that classical methods of algebraic solution for this kind of problem will yield a fractional result, which is obviously not satisfactory. If it were me, I'd look for a correlation between the fractional solutions and the integer solutions. If there is a relationship as easy as rounding, it would not be too difficult to derive an equation for the fractional solution and then convert it into an integer solution. I'd love to do it myself, but it's almost 3am and if I open excel I probably won't sleep until tomorrow night.
@RomuloGDO
@RomuloGDO 10 жыл бұрын
Thanks for the video!, when I specify solver parameters there is a way to put in" the value off" a cell and not a number? I have a cell that is gonna be changing and dont wanna have to use solver every single time to refresh the values
@janezklun
@janezklun 7 жыл бұрын
Just great, thanks Bill
@oberghaus
@oberghaus 10 жыл бұрын
This could have been/ be a great Dueling Excel Gurus episode. I wonder, if Mike Girvin could whip together an array formula to solve this. True is, that there is the monetary and integer constraint, which an array formula may not be able to address.
@hobirumahan85
@hobirumahan85 Жыл бұрын
I have many target in every cell and need to calculate from a column with random number
@tryller007
@tryller007 10 жыл бұрын
Hi Bill, great video. Do you have a solution for "the solver" problem for mac users?
@amitbinwal6362
@amitbinwal6362 2 жыл бұрын
Sir when a solver method applied to a specific sheet and if we are on another sheet of the same workbook then it not solved the problem and paste zero values to the range of present sheet where we are. Please solve my problem. Hope you understand what I want to convey
@MrXL
@MrXL 2 жыл бұрын
The Solver in Excel was written by Frontline. Reach out to them using the e-mail address shown at this page: www.solver.com/solver-technical-support-information-support-and-upgrades I am far from an expert on Solver. But one thought: when you initially set up the model on Sheet1, did you specify ranges in the format of A1, A2, or did you say Sheet1!A1? Try to add the worksheet name to the ranges in the Solver dialog. Of course, if you use spaces or other punctuation in your sheet names, you would need to use apostrophers: ='My-Sheet With Bad-Chars'!A2
@theapexpredator157
@theapexpredator157 3 жыл бұрын
I need Solver to accept formulas in the Variable Cells Line so that it can select only certain cells within a range. Is this possible? If not, is there an alternate method to achieve my goal?
@MrXL
@MrXL 3 жыл бұрын
As far as I know, the input cells can't be formulas. But check out Solver.com - they wrote Solver in Excel and are pretty responsive to questions sent in.
@theapexpredator157
@theapexpredator157 3 жыл бұрын
@@MrXL Thanks for getting back to me MrExcel. I sent an email to support@solver.com and am now waiting for a response. My thinking is that if/since Solver doesn't accept formulas in the Variables Cell Line, that there must be some kind of other way to make it work. If not in Excel, maybe there is another way with another Solver application or something... Not sure, but I'm hopeful. Thanks again!
@michellerahmoeller191
@michellerahmoeller191 5 жыл бұрын
My tools tab doesn't have "references" listed below it.. :(
@jk501111
@jk501111 5 жыл бұрын
I had the same, had to click stop (the box) and then click Tools and References should activated now
@charlesbyrneShowComments4all
@charlesbyrneShowComments4all 2 жыл бұрын
Application.Screenupdating = false before you start. Before it exits Application.Screenupdating = True
Excel Solver & Goal Seek Tutorial
23:34
Kevin Stratvert
Рет қаралды 163 М.
Automate Solver in Excel on Windows or Mac with VBA
16:16
SyntaxByte
Рет қаралды 18 М.
Magic or …? 😱 reveal video on profile 🫢
00:14
Andrey Grechka
Рет қаралды 67 МЛН
Dad gives best memory keeper
01:00
Justin Flom
Рет қаралды 21 МЛН
Excel Sudoku Solver VBA Macro Explained
13:41
Excel Macro Mania
Рет қаралды 9 М.
How to Create Multiple Solvers with VBA Loop Function
9:52
Caripros HR Analytics
Рет қаралды 31 М.
How to Create & Use Excel Macros (Real world example)
10:09
Leila Gharani
Рет қаралды 1,7 МЛН
5 Excel Secrets You'll Be Embarrassed You Didn't Know
17:32
Excel Campus - Jon
Рет қаралды 190 М.
Excel Time-Savers - 5 Hidden Features for Busy People
14:24
Leila Gharani
Рет қаралды 376 М.
Automating Solver with VBA
41:07
Gove Allen
Рет қаралды 444
Excel Solver - Example and Step-By-Step Explanation
9:57
Leila Gharani
Рет қаралды 1 МЛН
Recording and Refining the Solver macro and attaching to button
11:54
Pamela LaBorde
Рет қаралды 10 М.
3 Tips for Writing Formulas with VBA Macros in Excel
8:09
Excel Campus - Jon
Рет қаралды 210 М.
Microsoft Excel Solver for Engineering Optimization
8:07
APMonitor.com
Рет қаралды 39 М.