Kelvin Stott
Active Member
- Joined
- Oct 26, 2010
- Messages
- 338
Hi, I need a non-invasive custom VBA "what-if" scenario function as follows:
WHATIF(Output_Cell, Cell1, Value1, Cell2, Value2, ...)
This would give the hypothetical value of the output cell if each of the given input Cells 1 to X were changed to the respective scenario values 1 to X, but without actually changing the values in those input or output cells. It should just return the hypothetical output value (i.e., solution) wherever the function is used, for example in another cell.
Is this possible, and does some code exist to do this already?
Many thanks,
Kelvin
WHATIF(Output_Cell, Cell1, Value1, Cell2, Value2, ...)
This would give the hypothetical value of the output cell if each of the given input Cells 1 to X were changed to the respective scenario values 1 to X, but without actually changing the values in those input or output cells. It should just return the hypothetical output value (i.e., solution) wherever the function is used, for example in another cell.
Is this possible, and does some code exist to do this already?
Many thanks,
Kelvin
Last edited: