Dynamic Function Reference Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know of a way to do this:

Cell 1: STDEV
Cell 2: =SUM(SomeRange)

where instead of retyping "STDEV" in Cell2 to change the function name, u
reference to Cell1 as the function name? so basically a dynamic way of
changing function name as a form of reference from another cell...

seems simple.. but never heard its been done.. hope for solution without vba
help.
 
Hi

It simply doesn't work this way.
The nearest to what you want, and functional, is something like this
=CHOOSE(MATCH(Cell1;{"Count";"CountA";"Sum";"Average"};0);COUNT(YourRange);C
OUNTA(YourRange);SUM(YourRange);AVERAGE(YourRange))

When combining the formula above with dynamic range(s) as YourRange (and
maybe determining the range YourRange through INDIRECT), you can make this
flexible enough for some easier tasks.



Arvi Laanemets
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top