Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Folks,
I ran into an odd behavior when trying to use an indirect reference to a range used as an argument in a statistical function. A: 1: Data 2: 1 3: 2 4: 3 5: 4 6: 5 B2: =ADDRESS(ROW(),COLUMN($A$1)) produces €œ$A$2€ C2: =FORECAST($A$2,OFFSET(INDIRECT($B$2),1,0,4,1),OFFS ET(INDIRECT($B$2),1,0,4,1))produces a value of 1. All good so far. D2: =FORECAST($A$2,OFFSET(INDIRECT(ADDRESS(ROW(),COLUM N($A$1))),1,0,4,1),OFFSET(INDIRECT(ADDRESS(ROW(),C OLUMN($A$1))),1,0,4,1)) produces an error #NUM! This is unexpected, since the formula in C2 works fine. Interestingly enough, if you use the same INDIRECT references in cell D2 as arguments for functions like SUM(), PRODUCT(), MIN(), MAX(), etc. it works fine. Try putting the formula below on E2. However, functions like CORREL(), COVAR(), etc. do not work. E2: =SUM(OFFSET(INDIRECT(ADDRESS(ROW(),COLUMN($A$1))), 1,0,4,1),OFFSET(INDIRECT(ADDRESS(ROW(),COLUMN($A$1 ))),1,0,4,1)) produces a value of 28 as expected Is this odd or what? Any body knows why using the OFFSET(INDIRECT(ADDRESS())€¦) combination does not work for some statistical functions? Hopefully we can all learn something new. Thanks in advance |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
INDIRECT function to reference values in another worksheet | Excel Worksheet Functions | |||
Cell reference OR INDIRECT function | Excel Worksheet Functions | |||
indirect function to reference cell on different sheet | Excel Worksheet Functions | |||
Use INDIRECT function to reference a value in closed file | Excel Worksheet Functions | |||
How do I throw in an ISERROR function on a complicated VVLOOKUP? | Excel Discussion (Misc queries) |