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

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
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,224,808
Messages
6,181,073
Members
453,020
Latest member
mattg2448

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