Link to home
Start Free TrialLog in
Avatar of Conor Newman
Conor NewmanFlag for Ireland

asked on

Index(xxx,Match(xx)) Formula where index range is variable set by a drop down.

Ok, I'm trying to set up a table that pulling out hours values for employees on certain projects by month. I have all the data, now I just need to build a graph depending on which employee is selected in a drop down on a worksheet.  the employee's name is the header of the column the data will need to be indexed from in the data tables.

=INDEX(ResourceLoading[Jane Doe],MATCH('Reports 1'!K2,ResourceLoading[Month]))

Basically I need "Jane Doe" in that formula to be whatever the value of the drop down in Cell: J2 is. I know it has to be simple, but the life of me I can't figure out how to get it to work.

I've tried =INDIRECT("=INDEX(LoadingActual["&J2&"],MATCH('Reports 1'!K2,LoadingActual[Month]))")

To no avail.
It evaluates out to #Ref, but while evaluating it seems to show the correct formula: =INDIRECT("=INDEX(ResourceLoading[Jane Doe],MATCH('Reports 1'!K2,ResourceLoading[Month]))")

I'm guessing the inverted comma's are what's bugging it?
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Conor Newman

ASKER

Thank you!!