INDEX(MATCH()) - Index a specific worksheet based on cell value

VegaOne16

New Member
Joined
Sep 6, 2009
Messages
28
Office Version
  1. 365
Platform
  1. Windows
Hello,

Say I have two worksheets in a workbook.

One sheet called TIE OUT, and the other DTSE.

I have the following formula in cell L4:

=IFERROR(INDEX(DTSE!$A$1:$Q$307,MATCH((EOMONTH(D4,-2)+1),DTSE!$A$1:$A$307,0),L$1),"")

What I'm trying to accomplish is have DTSE! be referenced to a cell (say M4) in TIE OUT, verses hard coded. I have 250 worksheets with different names, and changing each manually would take a lot of time, so I'm trying to save time :)

Thank you for your knowledge sharing.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
You need the INDIRECT function try
Code:
=IFERROR(INDEX(INDIRECT("'"&M4&"'!$A$1:$Q$307"),MATCH((EOMONTH(D4,-2)+1),INDIRECT("'"&M4&"'!$A$1:$A$307"),0),L$1),"")
 
Upvote 0
Solution
This is magic, I'll have to learn about the INDIRECT function, thank you very much!!!!!!!
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,586
Messages
6,125,683
Members
449,249
Latest member
ExcelMA

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