Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How would I make this formula work:
INDEX("a"&COLUMNS(INDIRECT(A1):INDIRECT(A2)):A30,4 ) A1 has F2 in it A2 has Z8 in it Thanks. Is this even possible? COLUMNS(INDIRECT(A1):INDIRECT(A2)) resolves to 21; my thought was then that I could create the range A21:A30 I get a #VALUE! error when I try the above. Thoughts? Dave |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Dave F wrote...
How would I make this formula work: INDEX("a"&COLUMNS(INDIRECT(A1):INDIRECT(A2)):A30, 4) A1 has F2 in it A2 has Z8 in it .... You need another level of INDIRECT calls, but you could eliminate one of the existing INDIRECT calls. Try =INDEX(INDIRECT("A"&COLUMNS(INDIRECT(A1&":"&A2))): A30,4) However, this would just pull the value of the cell 3 rows below the topmost cell in the resulting range. Given your sample values for A1 and A2, the COLUMNS call would return 21, making your formula equivalent to =INDEX(A21:A30,4) and the result would be the value of cell A24. You could achieve the same result with either =OFFSET(A1,COLUMNS(INDIRECT(A1&":"&A2))+2,0) or =INDIRECT("A"&COLUMNS(INDIRECT(A1&":"&A2))+3) |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Perfect, thanks.
On Sep 20, 3:28 pm, Harlan Grove wrote: Dave F wrote... How would I make this formula work: INDEX("a"&COLUMNS(INDIRECT(A1):INDIRECT(A2)):A30, 4) A1 has F2 in it A2 has Z8 in it ... You need another level of INDIRECT calls, but you could eliminate one of the existing INDIRECT calls. Try =INDEX(INDIRECT("A"&COLUMNS(INDIRECT(A1&":"&A2))): A30,4) However, this would just pull the value of the cell 3 rows below the topmost cell in the resulting range. Given your sample values for A1 and A2, the COLUMNS call would return 21, making your formula equivalent to =INDEX(A21:A30,4) and the result would be the value of cell A24. You could achieve the same result with either =OFFSET(A1,COLUMNS(INDIRECT(A1&":"&A2))+2,0) or =INDIRECT("A"&COLUMNS(INDIRECT(A1&":"&A2))+3) |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
maybe
=INDEX(INDIRECT("a"&COLUMNS(INDIRECT(A1&":"&A2))&" :A30"),4) "Dave F" wrote: How would I make this formula work: INDEX("a"&COLUMNS(INDIRECT(A1):INDIRECT(A2)):A30,4 ) A1 has F2 in it A2 has Z8 in it Thanks. Is this even possible? COLUMNS(INDIRECT(A1):INDIRECT(A2)) resolves to 21; my thought was then that I could create the range A21:A30 I get a #VALUE! error when I try the above. Thoughts? Dave |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
To have this formula work with numbers & Text ='T(INDIRECT("'"& | Excel Worksheet Functions | |||
indirect.ext - "can't find project or library" error | Excel Worksheet Functions | |||
Linking to other workbooks using "Indirect" | Excel Discussion (Misc queries) | |||
Indirect address inside "" | Setting up and Configuration of Excel | |||
"Indirect" refs to other workbooks | Excel Worksheet Functions |