Dynamic Range in Lookup formula not returning expected result

KirnonBhale

New Member
Joined
Jul 25, 2019
Messages
11
Hi all,

I hope that this is an easy one for you folks.

I'm trying to return a result with an index formula.

EG. =index(Dynamic_Named_Range,1)

Works fine. However the Dynamic_Named_Range is referenced through a Static_Named_Cell.

I thought a formula like =index(indirect(Static_Named_Cell,1) Where the named cell contains the name of the dynamic range would return an answer but currently I keep getting an error.

[TABLE="width: 500"]
<tbody>[TR]
[TD]Static Named Cell[/TD]
[TD]Dynamic Named Range 1 - Fruit
[/TD]
[TD]Dynamic Named Range 2 - Veg[/TD]
[TD]Formula[/TD]
[TD]Result
[/TD]
[/TR]
[TR]
[TD]Fruit
[/TD]
[TD]Apples
[/TD]
[TD]Lettuce
[/TD]
[TD]=index(Static_Named_Cell,1)
[/TD]
[TD]Apples
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Oranges
[/TD]
[TD]Cucumber
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Pears
[/TD]
[TD]Potatoes
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Try

=INDEX(INDIRECT(Static_Named_Cell),1)

Thanks for the response. However that works great as long as the Static_Named_Cell reference is to a Static_Named_List. If it references a Dynamic_Named_List it returns an error. So eg. Fruits List uses =OFFSET(Tables!$b$2,0,0,COUNTIF(Tables!$b$2:$b$100,"<>")).
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top