I have a complex cell function of the form:
=if(iserr(complex_thing), error_message, complex_thing)
Is there a way to avoid the function performing the "complex_thing" twice?
Is Excel's internal processing smart enough to pick up on this?
Ideally, I would like to use a temp variable such as
=if(iserr(tmpv=complex_thing), error_message, tmpv)
or some such syntax as
=let(tmpv,complex_thing)&if(iserr(tmpv), error_message, tmpv)
This is just an example. I've run across a number of situations where I'm using a check for validity before using the results where being able to store the results temporarily and only within the context of the cell's function calculation would be beneficial (at least performance wise).
Anyone also need this? Anyone have a workaround?
Can we lobby Microsoft to add such a feature?
Mason
=if(iserr(complex_thing), error_message, complex_thing)
Is there a way to avoid the function performing the "complex_thing" twice?
Is Excel's internal processing smart enough to pick up on this?
Ideally, I would like to use a temp variable such as
=if(iserr(tmpv=complex_thing), error_message, tmpv)
or some such syntax as
=let(tmpv,complex_thing)&if(iserr(tmpv), error_message, tmpv)
This is just an example. I've run across a number of situations where I'm using a check for validity before using the results where being able to store the results temporarily and only within the context of the cell's function calculation would be beneficial (at least performance wise).
Anyone also need this? Anyone have a workaround?
Can we lobby Microsoft to add such a feature?
Mason