Complex Index Match

thedeadzeds

Active Member
Joined
Aug 16, 2011
Messages
442
Office Version
  1. 365
Platform
  1. Windows
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>
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
untested:

=IFERROR(INDEX($A$2:$G$5,MATCH($B$1,$A$2:$A$5,0),MATCH(B$2,$A$2:$G$2,0)),"")
 
Upvote 0
Thanks Barry, the tables are in separate tabs so the Summary is in one tab and the data tab is in another tab
 
Upvote 0
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)),"")
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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