Index, Indirect and Match question

AlanStrobel

New Member
Joined
Aug 22, 2013
Messages
9
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

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
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

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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