LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
g-boy
 
Posts: n/a
Default Error Embedding Row() within Indirect()

I have a set of values in a range of cells on a worksheet, Patterns!B2:B375

There are also values in the corresponding cells in nearby columns,
such as Patterns!C2:C375, Patterns!D2:D375, Patterns!E2:E375, etc.

I want to calculate the correlations between the values in the first range,
and the values in each of the other columns. And I want these correlation
values to appear on different rows (for example, in place of the ### below):

Corrleation
ColC ###
ColD ###
ColE ###

And so, I thought I could use this function:

=CORREL(INDIRECT("Patterns!R2C"&(ROW()+1)&":R375C" &(ROW()+1),FALSE),Patterns!B$2:B$375)

in each of the cells, and it would automatically have each row calculate the
correlation with a different column of values.

But... it doesn't work. It gives me #N/A.

The TRULY STRANGE thing about this, is if I simply substitute the actual row
number in place of the ROW() function, it works:

=CORREL(INDIRECT("Patterns!R2C"&(2+1)&":R375C"&(2+ 1),FALSE),Patterns!B$2:B$375)

This actually produces the correct numerical result. And all I did, was
replace the embedded row() function call with an actual number.

Why should I not be able to embed row() within indirect()?

---G
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
Sum Indirect function through multiple sheets Andre Croteau Excel Discussion (Misc queries) 2 May 6th 05 10:44 AM
Pivot ranges and INDIRECT daveydave60 Excel Worksheet Functions 1 April 22nd 05 12:15 PM
indirect formula Manos Excel Worksheet Functions 0 February 16th 05 01:17 PM
is there a NON-volatile version of INDIRECT ?? spiderman Excel Discussion (Misc queries) 1 February 4th 05 04:54 PM


All times are GMT +1. The time now is 03:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"