Issues with INDIRECT

Cruzo23

New Member
Joined
Oct 30, 2018
Messages
2
Hi,

I am currently working on making a formula to have a dynamic ranges. The original (formula seen below) works fine

=IFERROR(INDEX(INDIRECT("'"&E40&"'!"&"A1"&":"&"NY35"),SMALL(INDEX(NOT(ISBLANK(Holidays2018!A$3:NY$35))*ROW(Holidays2018!A$3:NY$35),0,C1),COUNTBLANK(INDIRECT("'"&E40&"'!"&D1&"3"&":"&D1&"35"))+ROW(A1)),0),"")

When trying to covert the ranges using INDIRECT, the result returns the data from CELL A1 from the 'Holidays2018!' sheet.

=IFERROR(INDEX(INDIRECT("'"&E40&"'!"&"A1"&":"&"NY35"),SMALL(INDEX(NOT(ISBLANK(INDIRECT("'"&E40&"'!"&"A1"&":"&"NY35")))*ROW(INDIRECT("'"&E40&"'!"&"A1"&":"&"NY35")),0,C1),COUNTBLANK(INDIRECT("'"&E40&"'!"&D1&"3"&":"&D1&"35"))+ROW(A1)),0),"")

I'm new to advanced excel and finding my way through the formulas.

Thanks in advance.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,215,276
Messages
6,124,006
Members
449,137
Latest member
abdahsankhan

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