Index, Indirect and Match question

AlanStrobel

New Member
Joined
Aug 22, 2013
Messages
10
Why does the 1st formula work but he 2nd give me the REF error.

The '2024' is the sheet name which will increase each year but want to keep previous years.

=INDEX('2024'!$U$4:$BU$7,MATCH(Main!$C3,'2024'!$T$4:$T$7,0),MATCH(Main!$D$2,'2024'!$U$3:$BU$3,0))

=INDEX(INDIRECT("'" & A1 & "'!$U$4:$BU$7"),MATCH(C3,INDIRECT("'" & A1 & "'!$T$4:$T$7",0),MATCH(D2,INDIRECT("'" & A1 & "'!$U$3:$BU$3",0))))

#REF!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Make sure all brackets are in right places.
so you had
some_address
now uou need
INDIRECT(text_of_that_address)

so MATCH(Main!$C3,'2024'!$T$4:$T$7,0)
shall be MATCH(Main!$C3,INDIRECT("textof'2024'!$T$4:$T$7"),0) and so on.

probably something like:
Excel Formula:
=INDEX(INDIRECT("'" & A1 & "'!$U$4:$BU$7"),MATCH(C3,INDIRECT("'" & A1 & "'!$T$4:$T$7"),0),MATCH(D2,INDIRECT("'" & A1 & "'!$U$3:$BU$3"),0))
 
Upvote 0
Glad to hear that and thanks for (y) reaction.
As it (I assume) solved the problem, marking my post as a solution: Mark as Solution would be lovely.
 
Upvote 0

Forum statistics

Threads
1,223,841
Messages
6,174,972
Members
452,594
Latest member
dgparryuk

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