How to use INDIRECT with a dynamic array?

alexcr

Board Regular
Joined
Oct 15, 2018
Messages
61
Office Version
  1. 365
Platform
  1. Windows
Let's say "A1#" is a dynamic array that returns cell addresses from multiple worksheets. For example, it might return something like this...

Sheet1!Z9
Sheet8!Z9
Sheet14!Z9
Sheet26!Z9

Again, this is a dynamic array, so these addresses could vary at any given time.

I'm attempting to use the INDIRECT function with this array, i.e. "=INDIRECT(A1#)".

But when I attempt this, the function is returning an array of "#VALUE" errors, as opposed to returning the values from the cells being referenced.

What am I messing up here? Any help would be greatly appreciated.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I don't believe INDIRECT can take an array. Try:
Excel Formula:
=BYROW(A1#,LAMBDA(br,INDIRECT(br)))

If your array spills from left to right then change to BYCOL.
 
Upvote 1
Thanks so much, @Cubist and @StephenCrump! I went with the CELL solution, as I'm a little more familiar with the function, and it seems to be working so far. This was a huge help, I appreciate it.
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

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