Complex Index Match

thedeadzeds

Active Member
Joined
Aug 16, 2011
Messages
314
HI GUYS

I HAVE 2 TABS. ONE TAB CALLED SUMMARY AND ONE CALLED DATA

IS THERE A WAY TO DO THE FOLLOWING:

IF THERE IS A NAME IN B1 IN THE SUMMARY TAB THEN LOOK AT COLUMN A IN THE DATA TAB, LOOK AT THE DATE IN ROW 2 IN THE SUMMARY TAB AND BRING BACK THE VALUE IN THE RELEVANT ROW IN THE DATA TAB. SO IF FOR EXAMPLE I SELECTED CRAIG IN THE SUMMARY TAB ROW 3 WOULD SHOW AS PER THE SUMMARY TAB EXAMPLE BELOW


SUMMARY TAB
A BCDEFG
1 Craig
2Date01/01/201702/01/201703/01/201704/01/201705/01/201706/01/2017
3ResultS H B

<colgroup><col><col><col span="6"></colgroup><tbody>
</tbody>


DATA TAB
A BCDEFG
1 SunMonTueWedThuFri
2Date01/01/201702/01/201703/01/201704/01/201705/01/201706/01/2017
3CraigS H B
4Ang HHS
5DonnaH S B

<colgroup><col><col><col span="6"></colgroup><tbody>
</tbody>
 

Some videos you may like

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.

BarryL

Well-known Member
Joined
Jan 20, 2014
Messages
1,421
untested:

=IFERROR(INDEX($A$2:$G$5,MATCH($B$1,$A$2:$A$5,0),MATCH(B$2,$A$2:$G$2,0)),"")
 

thedeadzeds

Active Member
Joined
Aug 16, 2011
Messages
314
Thanks Barry, the tables are in separate tabs so the Summary is in one tab and the data tab is in another tab
 

BarryL

Well-known Member
Joined
Jan 20, 2014
Messages
1,421
Thanks Barry, the tables are in separate tabs so the Summary is in one tab and the data tab is in another tab

=IFERROR(INDEX(Data!$A$2:$G$5,MATCH(Summary!$B$1,Data!$A$2:$A$5,0),MATCH(Summary!B$2,Data!$A$2:$G$2,0)),"")
 

Watch MrExcel Video

Forum statistics

Threads
1,122,657
Messages
5,597,391
Members
414,142
Latest member
Banyangt

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
Top