Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Nested functions using array/range names

Is it possible to write a nested formula such that the result of the first
calculation is an array that is used in the 2nd formula?

I have a formula:
VLOOKUP(lookup_value,table_array,col_index_num,ran ge_lookup)

that is nested in an index formula, INDEX(array,row_num,column_num), to
result in:

INDEX(VLOOKUP(lookup_value,table_array,col_index_n um,range_lookup),row_num,column_num)

I want the result of the Vlookup to be a range name or an array that the
Index formula will accept. How do I do this?

I am using Excel 2003.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Nested functions using array/range names

Think you could try using INDIRECT, indicatively:
=INDEX(INDIRECT(vlookup(..)), ...)
where the vlookup returns the named range
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"bearspa" wrote:
Is it possible to write a nested formula such that the result of the first
calculation is an array that is used in the 2nd formula?

I have a formula:
VLOOKUP(lookup_value,table_array,col_index_num,ran ge_lookup)

that is nested in an index formula, INDEX(array,row_num,column_num), to
result in:

INDEX(VLOOKUP(lookup_value,table_array,col_index_n um,range_lookup),row_num,column_num)

I want the result of the Vlookup to be a range name or an array that the
Index formula will accept. How do I do this?

I am using Excel 2003.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Nested functions using array/range names


Seems so:
=INDEX(INDIRECT(VLOOKUP(M12,RangeNamesList,2,FALSE )),3,2)

RangeNamesList is a 2-column named range with the names of other named
ranges in the second column.
M12 contains the value to be looked up in the 1st column of
RangeNamesList.

Worked here.

bearspa;438747 Wrote:
Is it possible to write a nested formula such that the result of the
first
calculation is an array that is used in the 2nd formula?

I have a formula:
VLOOKUP(lookup_value,table_array,col_index_num,ran ge_lookup)

that is nested in an index formula, INDEX(array,row_num,column_num),
to
result in:

INDEX(VLOOKUP(lookup_value,table_array,col_index_n um,range_lookup),row_num,column_num)

I want the result of the Vlookup to be a range name or an array that
the
Index formula will accept. How do I do this?

I am using Excel 2003.



--
p45cal

*p45cal*
------------------------------------------------------------------------
p45cal's Profile: http://www.thecodecage.com/forumz/member.php?userid=558
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=121745

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Nested functions using array/range names

Thanks to both Max In Singapore, and p45cal for your responses. Your
approach worked for me---plus I learned about the "indirect" function.

I have marked both your responses as "the answer", and I hope the system
accepts it.

"p45cal" wrote:


Seems so:
=INDEX(INDIRECT(VLOOKUP(M12,RangeNamesList,2,FALSE )),3,2)

RangeNamesList is a 2-column named range with the names of other named
ranges in the second column.
M12 contains the value to be looked up in the 1st column of
RangeNamesList.

Worked here.

bearspa;438747 Wrote:
Is it possible to write a nested formula such that the result of the
first
calculation is an array that is used in the 2nd formula?

I have a formula:
VLOOKUP(lookup_value,table_array,col_index_num,ran ge_lookup)

that is nested in an index formula, INDEX(array,row_num,column_num),
to
result in:

INDEX(VLOOKUP(lookup_value,table_array,col_index_n um,range_lookup),row_num,column_num)

I want the result of the Vlookup to be a range name or an array that
the
Index formula will accept. How do I do this?

I am using Excel 2003.



--
p45cal

*p45cal*
------------------------------------------------------------------------
p45cal's Profile: http://www.thecodecage.com/forumz/member.php?userid=558
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=121745


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Nested functions using array/range names

Welcome, glad you got it going over there
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"bearspa" wrote in message
...
Thanks to both Max In Singapore, and p45cal for your responses. Your
approach worked for me---plus I learned about the "indirect" function.

I have marked both your responses as "the answer", and I hope the system
accepts it.





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
Using range names in functions JDC Excel Worksheet Functions 1 May 11th 09 04:53 PM
Nested if using range names DianeG Excel Worksheet Functions 1 July 22nd 08 06:06 PM
Nested functions inc. dynamic range Graham Excel Worksheet Functions 10 August 18th 07 06:19 AM
Nested array functions? John Beyer Excel Worksheet Functions 2 September 15th 06 05:35 AM
are variable table-array names in functions possible? JimH Excel Discussion (Misc queries) 2 April 7th 05 09:51 PM


All times are GMT +1. The time now is 02:59 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"