If the problem has values increasing in the way it is proposed (0.58, 0.64, 1, 05, 1.46), an optimization function to obtain the minimum resolves ...
Excel Solver
To accomplish these tasks without using VBA or a gigantic formula, the solver needs to be used and simple logic is used.
Enable Solver in Excel
The version used is Excel 2010.
Enter the Office or File button.
Click Options .
Click Add-Ins .
Install the Solver Add-in and click Ok.
Enable Add-in
Enable Developer Mode
On the Developer tab, click Add-ins
A window will open and the Solver Add-in should be marked.
Solver
Withthefollowingdataintheplan:
||A|B|C|D|E|F||---|----|------|--------|--------------|----------------------------|-------------------||1|0|0,58|=A2-A1||=SOMARPRODUTO(D1:D4;B1:B4)|=VALOR_QUANTIDADE||2|5|0,64|=A3-A2|||||3|10|1,05|=A4-A3|||||4|15|1,46||||||5||||=SOMA(D1:D4)|||
Thefollowingtargetfunctionandconstraintsareadded:
ThesolverisaddedincellE1
withthefollowingparameters:
Result
For4m³:
For8m³:
For15m³:
Extra:
Tochangetheoptimizationfunction,otherformsofobjectivefunctionormoreconstraintscanbeadded.Ifyouwanttodelveintothesubject,lookforLinearProgramming,SimplexMethodorSolver.OrinEnglishLinearProgramming(LP),SimplexorLinearOptimization.AgoodtoolforExceloptimizationproblemsisthe Solver Studio .