Forum

Notifications
Clear all

Can the Index function return a named Array to use in another Index function?

7 Posts
3 Users
0 Reactions
51 Views
(@dmdavala)
Posts: 28
Eminent Member
Topic starter
 

I want the attached spreadsheet to do the following.

A selection is made in cell B2 of the "assumptions" tab.  Each of the available selections has a named Array.

In the tab "Q's etc", column B, starting at row 5, should look up the value from the selected Named Array.

The value from the Named Array should be the value in column B that matches Column A.

Cell H14 on "Q's etc" is my attempt.  It is returning "REF!"

I hope I explained this well enough.

 
Posted : 22/10/2020 9:40 am
(@purfleet)
Posts: 412
Reputable Member
 

Nothing attached mate - you need to press upload

 
Posted : 22/10/2020 12:08 pm
(@dmdavala)
Posts: 28
Eminent Member
Topic starter
 

I hope this upload worked.

 
Posted : 22/10/2020 9:36 pm
(@debaser)
Posts: 836
Member Moderator
 

It's not clear to me what result you want. INDEX takes three arguments (at most): a range, a row number and a column number. Since your named ranges are only one column, you can't use 25+A10 as a column number - only 1 would be valid.

 
Posted : 23/10/2020 4:45 am
(@dmdavala)
Posts: 28
Eminent Member
Topic starter
 

I want to populate cells B5 through B125 on tab "Q's etc"  The values should come from the named array selected in cell B2 on the "assumptions" tab.  The named arrays in the selection options are 2 column arrays.

 
Posted : 23/10/2020 7:18 am
(@purfleet)
Posts: 412
Reputable Member
 

Do you mean like this?

=INDEX(OFFSET(INDIRECT($H$10),,1),MATCH(TEXT($A10,"@"),INDIRECT($H$10),0))

Only tested on Excel 365

Also appears to work in Excel 2013

 
Posted : 23/10/2020 10:11 am
(@dmdavala)
Posts: 28
Eminent Member
Topic starter
 

Thank you Purfleet.  This works!

 
Posted : 24/10/2020 8:55 am
Share: