referencing

ben_sorensen

New Member
Joined
Jun 11, 2015
Messages
44
Hello I have been banging my head on the table for days now.

So I have this equation in my excel worksheet:

=INDEX(FY2014_Table,MATCH($D11,FY_2014_[[#All],[StrNbr]],0),MATCH($G$6,FY_2014_[#Headers],0))

okay so what I need is for anything that is FY_2014_ to be able to be changed to FY_2015_ or FY_2016_ or FY_2013_.........

So I have a drop down list on my page that have all of those names there exactly, but everytime I take out the FY_XXXX_ and replace it with the cell reference it throws back an error, I know that I am trying to cut of part of the reference and rplace it with a reference but I have tried a million things and can't get it to work.

Any Help would be appreciated.

Thanks
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi,

Look up the INDIRECT function. That allows you to convert variables into constant expressions.

For instance, try replacing Fy2014_Table in your equation with:
INDIRECT(A1 & "Table")
Then if cell A1 contained: FY2015_ your formula would point to FY2015_Table.

Change the other references appropriately.
 
Upvote 0
I slapped myself in the forehead, I didn't even think about using the indirect function. Thanks that did the trick!
 
Upvote 0

Forum statistics

Threads
1,215,065
Messages
6,122,944
Members
449,095
Latest member
nmaske

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