Excel Formula Multiple Criteria with Moving Header Changing to Different Column

tropics123

Board Regular
Joined
May 11, 2016
Messages
85
Hi, just wondering if this is a possibility with the Index/Match formula. Or is there a better formula when I don't know the column position of the header? The new report we get now, the header name is not always in the same order so the index/match formula isn't cutting it anymore.

Example:
On our main sheet, I need to pull in Bob's date of birth. On the new report I get, the "Name" in Column A always stays the same but the date of birth could be in column b or the next time it's in column c, and so on. Basically the date of birth column could be a moving target.

Main Sheet
NameDate of Birth
BobNeed formula to look at Bob's name to the left and pull in his date of birth here (without knowing the "date of birth" column position on the report I received
Mary
Kristin
Joe

Report I receive
Column AColumn BColumn CColumn D
NameDate of BirthDate of HireRate
Bob1/1/19782/2/2015$15
Mary5/6/198011/20/2001$20
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Seems straightforward enough. Try this:

Book1
ABCD
1NameDate of Birth
2Bob1/1/1978
3Mary5/6/1980
4Kristin#N/A
5Joe#N/A
6
7NameDate of BirthDate of HireRate
8Bob1/1/19782/2/2015$15
9Mary5/6/198011/20/2001$20
Sheet51
Cell Formulas
RangeFormula
B2:B5B2=INDEX($A$8:$D$9,MATCH($A2,$A$8:$A$9,0),MATCH(B$1,$A$7:$D$7,0))
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

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