Problems with Named Ranges and Indirect fundtion

govuser

New Member
Joined
Jun 26, 2014
Messages
1
Hello

Just to start off I used an indirect function to create a named range.
https://dc2.safesync.com/DzVrPJm/NamedRanges.xlsx?a=SqhACDyeGNo

I am having problems with named ranges where I am referencing a cell with the name of a named range via the indirect function but it is not picking it up. I think the reason is because of the way I referenced the range.

I would be grateful if someone could help with this query.

Test is name of array
G6 and G7 contain name of array 'Test'

=INDEX(Test,1,2) WORKS
=INDEX(G6,1,2) DOES NOT WORK
=INDEX(INDIRECT(G7),1,2) DOES NOT WORK

I feel the problem may be in the way I named the range

I used the name range function but used
=INDIRECT(Sheet1!$G$3)

Cell G3 contains the reference to the array A3:B6

The reason i did this is because I have 18 much larger datasets which I have used to create named ranges via this way. Grateful for any kind of help!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Why not skip the named range then

If you're putting the Text string A3:B6 in G3, then just reference that with indirect..

=INDEX(INDIRECT(G3),1,2)


I think the trouble may be with the double indirect reference..
Indirect referencing another range that was created with Indirect..
 
Upvote 0
Here's the bottom line..
It's not so much that the named range was created with Indirect...

Indirect can't reference a dynamic named range.

It would only work if the Named Range (Test) was a straight A1 style reference.
=Sheet1!$A$3:$B$6
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,839
Members
449,193
Latest member
MikeVol

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