Connecting Tech Pros Worldwide Forums | Help | Site Map

"range pointers" in MS Excel

Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,652
#1: Sep 21 '09
Hi,

I’m doing some statistics in Excel (ok, simple statistics) and I wonder if there is a possibility to automatically copy the input parameters in the functions

say, A(), B() & C() are statistical functions
Expand|Select|Wrap|Line Numbers
  1. A(A1:A5;B1:B5)
  2. B(A1:A5;B1:B5)
  3. C(A1:A5;B1:B5)
so if I use the next set of values (usually I copy it over) I need to revise and change the used range (e.g. from A1:A5/B1:B5 to A2:A7/B2:B7). with just the 3 functions this would be ok, but usually I have at least 5 such triples, which is always a lot to copy.

so, is there a possibility that I can use a kind of pointer where I only need to change the range once per triple?
Expand|Select|Wrap|Line Numbers
  1. A(pX;pY) // or A(pXY) …
  2. B(pX;pY)
  3. C(pX;pY)
I suspect this could be done via Macro, but I couldn’t find anything useful.

thanks, Dormi

Expert
 
Join Date: May 2007
Posts: 213
#2: Sep 22 '09

re: "range pointers" in MS Excel


Could the Indirect function work? Set up the ranges, then call them using indirect?
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,652
#3: Sep 22 '09

re: "range pointers" in MS Excel


It worked, thank you very much.
Reply