Using cell references with INDEX MATCH LOOKUP

sparky2205

Well-known Member
Joined
Feb 6, 2013
Messages
507
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi folks,
I have the following lookup:
Code:
=INDEX('[Form-0439 Vendor Performance Assessment 2016.xlsx]Revised'!$AU:$AU,MATCH(A:A,'[Form-0439 Vendor Performance Assessment 2016.xlsx]Revised'!$B:$B,0))

What I want is to change the lookup each year to reflect the year in the form name. I was thinking:
Code:
INDEX("'[Form-0439 Vendor Performance Assessment " & A1 & ".xlsx]Revised'!$AU:$AU",MATCH(A:A,"'[Form-0439 Vendor Performance Assessment " & A1 & ".xlsx]Revised'!$B:$B",0))
Where A1 is the year.
I then change the value in A1 and the lookup updates accordingly.

It doesn't work though. Does it need a tweak or am I asking for something silly?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi folks,
I got this working. I had to use INDIRECT.
Code:
=INDEX(INDIRECT("'[Form-0439 Vendor Performance Assessment " & A1 & ".xlsx]Revised'!$AU:$AU",MATCH(A:A, INDIRECT("'[Form-0439 Vendor Performance Assessment " & A1 & ".xlsx]Revised'!$B$B",0))

Without INDIRECT I presume it was taking the form reference as a string rather than a reference.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
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