Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Excel

Cell Value as Named Range Reference

 
Jump to:  
 
Guest
PostPosted: Mon Jul 28, 2008 3:34 pm    Post subject: Cell Value as Named Range Reference
       
Little bit of a quirky question...

Trying to use a cell value as a reference in a formula, where that
cell value is the name of a named range.

So, assume A1:A3 is a named range: Rng1. And, B1:B3 is Rng2.

I want to get the correlation vale for A1:A3 and B1:B3

So, cell D1 contains "Rng1" and D2 has "Rng2"; and cell D3 has the
formula: =correl(D1,D2). But I get an error. Have also tried using
Indirect to no avail.

Any help would be hugely appreciated. Thank you.
 

 
Guest
PostPosted: Mon Jul 28, 2008 3:37 pm    Post subject: Re: Cell Value as Named Range Reference
       
nevermind...Indirect did work.

=correl(indirect(d1),indirect(d2))


On Jul 28, 11:34 am, stephen.h....@gmail.com wrote:
Quote:
Little bit of a quirky question...

Trying to use a cell value as a reference in a formula, where that
cell value is the name of a named range.

So, assume A1:A3 is a named range: Rng1. And, B1:B3 is Rng2.

I want to get the correlation vale for A1:A3 and B1:B3

So, cell D1 contains "Rng1" and D2 has "Rng2"; and cell D3 has the
formula: =correl(D1,D2). But I get an error. Have also tried using
Indirect to no avail.

Any help would be hugely appreciated. Thank you.
 

 
Wigi
PostPosted: Mon Jul 28, 2008 3:58 pm    Post subject: RE: Cell Value as Named Range Reference
       
=CORREL(INDIRECT(D1),INDIRECT(D2))

--
Wigi
LINK = Excel/VBA, soccer and music


"stephen.h.dow@gmail.com" wrote:

Quote:
Little bit of a quirky question...

Trying to use a cell value as a reference in a formula, where that
cell value is the name of a named range.

So, assume A1:A3 is a named range: Rng1. And, B1:B3 is Rng2.

I want to get the correlation vale for A1:A3 and B1:B3

So, cell D1 contains "Rng1" and D2 has "Rng2"; and cell D3 has the
formula: =correl(D1,D2). But I get an error. Have also tried using
Indirect to no avail.

Any help would be hugely appreciated. Thank you.
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

działki budowlane Warszawa sztućce Kochanowski Jan wiersze Rapidshare odzież dla dzieci