Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 187
Default INDEX("a"&COLUMNS(INDIRECT(A1):INDIRECT(A2)):A30,4 )

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 733
Default INDEX("a"&COLUMNS(INDIRECT(A1):INDIRECT(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

....

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 187
Default INDEX("a"&COLUMNS(INDIRECT(A1):INDIRECT(A2)):A30,4 )

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,081
Default INDEX("a"&COLUMNS(INDIRECT(A1):INDIRECT(A2)):A30,4 )

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
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
To have this formula work with numbers & Text ='T(INDIRECT("'"& Fin Fang Foom Excel Worksheet Functions 17 February 12th 07 03:04 PM
indirect.ext - "can't find project or library" error DDawson Excel Worksheet Functions 0 December 5th 06 09:52 PM
Linking to other workbooks using "Indirect" Jonathan Excel Discussion (Misc queries) 4 August 2nd 06 03:22 PM
Indirect address inside "" Khoshravan Setting up and Configuration of Excel 2 June 26th 06 12:31 AM
"Indirect" refs to other workbooks JRoberts Excel Worksheet Functions 1 January 17th 06 11:50 PM


All times are GMT +1. The time now is 10:43 PM.

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"