Hi mrexcel forum community,
I'm a newcomer what comes to VBA and would greatly appreciate your tips and help on how to solve my problem. If I've understood correctly, goal seek with input from multiple values and worksheets require VBA code.
The parameters:
Cell C39 in Sheet 1 (value)
Cell C39 in Sheet 2 (value)
Cell D68 in Sheet 3 (formula linked to values C39 in Sheets 1 and 2)
The problem:
Set cell D68 in Sheet 3 to 0 by changing cells C39 in Sheet 1 and C39 in Sheet 2. As the combinations that satisfy this criteria can be
many, as a result, the code would need to generate a table of possile combinations of the values in Sheet 1 and Sheet 2 that sets cell D68 in Sheet 3 to 0. This table could for example be generated into a new Sheet. Further, it would also be very hepful if it is possible to write a code that does the same function, but I can choose the cell's manually instead of them being 'fixed' to a certain cell?
To put this into context if it helps visualize my problem:
Cell C39 in Sheet 1 is the price for one product
Cell C39 in Sheet 2 is the price for another product
Cell D68 in Sheet 3 is the consolidated profit and loss account.
I'm interested in finding out what is the minimum price combinations for my products that I need to set in order to make break-even (set cell D68 in Sheet 3 = 0).
Thank you for your help or comments already in advance!
Best Regards, MrVBA_v1
I'm a newcomer what comes to VBA and would greatly appreciate your tips and help on how to solve my problem. If I've understood correctly, goal seek with input from multiple values and worksheets require VBA code.
The parameters:
Cell C39 in Sheet 1 (value)
Cell C39 in Sheet 2 (value)
Cell D68 in Sheet 3 (formula linked to values C39 in Sheets 1 and 2)
The problem:
Set cell D68 in Sheet 3 to 0 by changing cells C39 in Sheet 1 and C39 in Sheet 2. As the combinations that satisfy this criteria can be
many, as a result, the code would need to generate a table of possile combinations of the values in Sheet 1 and Sheet 2 that sets cell D68 in Sheet 3 to 0. This table could for example be generated into a new Sheet. Further, it would also be very hepful if it is possible to write a code that does the same function, but I can choose the cell's manually instead of them being 'fixed' to a certain cell?
To put this into context if it helps visualize my problem:
Cell C39 in Sheet 1 is the price for one product
Cell C39 in Sheet 2 is the price for another product
Cell D68 in Sheet 3 is the consolidated profit and loss account.
I'm interested in finding out what is the minimum price combinations for my products that I need to set in order to make break-even (set cell D68 in Sheet 3 = 0).
Thank you for your help or comments already in advance!
Best Regards, MrVBA_v1