Complex Index Match

thedeadzeds

Active Member
Joined
Aug 16, 2011
Messages
386
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

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"

BarryL

Well-known Member
Joined
Jan 20, 2014
Messages
1,436
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
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
386
Office Version
  1. 365
Platform
  1. Windows
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,436
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
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)),"")
 

BarryL

Well-known Member
Joined
Jan 20, 2014
Messages
1,436
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
You're welcome
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,866
Messages
5,834,073
Members
430,260
Latest member
MANICX100

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