Say I've got a function name in cell A1
, like SUM
, and some data in B1
and C1
. Is there any way to define a formula in one cell such that it calls the formula that is defined in A1
and have it work on B1
and C1
as data?
So something like:
=A1(B1:C1)
should be equal to =SUM(B1:C1)
since A1
contains the word SUM
in it.
Essentially, something like preprocessor macros in C, or function pointers maybe.