Index Match / lookup formula using column names

MrSamExcel

Board Regular
Joined
Apr 6, 2016
Messages
50
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Is there a way I can modify this Index Match formula, or use a different formula, so that I can reference by column/field names instead of clicking on specific column references?:
=INDEX(source!E:E,MATCH(A2,source!D:D,0))
Instead of source!E:E I'd like to find "DESCRIPTION" in row1 of the 'source' tab; instead of source!D:D I'd like to find "FUNDCODE" in row1 of 'source' tab.

Excel 2013 64 bit
A
B
1
FUND_CODEFUND_NAME
2
AA=INDEX(source!E:E,MATCH(A2,source!D:D,0))
3
GA
4
CO
5
CT

<tbody>
</tbody>
Sheet: formula

<tbody>
</tbody>


A
B
C
D
E
F
1
FEEDNAMEFEEDIDFEEDDATEFUNDCODEDESCRIPTIONCLASS
2
Mutual Funds SetupMFDP080212/31/2016AAAmericanA
3
Mutual Funds SetupMFDP080212/31/2016COColoradoC2
4
Mutual Funds SetupMFDP080212/31/2016CTConnecticutI
5
Mutual Funds SetupMFDP080212/31/2016GAGeorgiaC

<tbody>
</tbody>
Sheet: source

<tbody>
</tbody>

Thanks.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
This should work:

=INDEX(source!$A$1:$F$5,MATCH(A2,INDEX(source!$A$1:$F$5,,MATCH("FUNDCODE",source!$A$1:$F$1,0)),0),MATCH("DESCRIPTION",source!$A$1:$F$1,0))
 
Upvote 0
Solution
Four and half years later and I'm still using this solution, thanks! I think the question below is an extension of the original question, but if moderator disagrees I will start new thread.
Is there a way I could expand this approach to account for 2 criteria? In the orig example above, the formula returns DESCRIPTION if it finds a match for A2 in the FUNDCODE field of 'source' tab. Is there a non-array formula that returns DESCRIPTION if FUNDCODE = A2 and FEEDID <> A2? I found a non-array INDEX/MATCH with multiple criteria formula using specified columns, but could not adapt it to reference field names just like the original post.
 
Upvote 0
You would be far better off starting a new thread, especially as it's a different question.
 
Upvote 0

Forum statistics

Threads
1,215,061
Messages
6,122,921
Members
449,094
Latest member
teemeren

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