if we had 3 stock in column a to c . write a vba to calculate optimum weight for every…
- User
if we had 3 stock in column a to c . write a vba to calculate optimum weight for every stock
- Assistant
To calculate the optimum weight for every stock, we'll use the Excel Solver add-in through VBA. Assuming your data is in Sheet1 and starts at Row 2, Column A, here's the VBA Code:
- First, enable the Excel Solver add-in:
- Go to File > Options > Add-Ins
- In the "Excel Add-ins" section, click "Solver Add-in" and then click "Go."
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.