taking parts of equation to reference other sheets

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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi Ben,

I guess this is what would help, taking a simple example from a workbook here:

=MATCH("NOCODE";TblNewWBS[wbs];0) -> works like a charm, normal formula
=MATCH("NOCODE";"TblNewWBS[wbs]";0) -> does not work, reference to table fails, as it is just text
=MATCH("NOCODE";INDIRECT("TblNewWBS[wbs]");0) -> works, Excel interprets the referred range perfectly

So I guess your formula should be, assuming your year is in cell A1:

=INDEX(FY2014_Table,MATCH($D11,INDIRECT("FY_"&A1&"_[[#All],[StrNbr]]",0),MATCH($G$6,INDIRECT("FY_"&A1&"_[#Headers]"),0))

Cheers,

Koen
 
Upvote 0

Forum statistics

Threads
1,214,884
Messages
6,122,082
Members
449,064
Latest member
MattDRT

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