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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,224,814
Messages
6,181,124
Members
453,021
Latest member
Justyna P

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