# Complex Index Match

##### Active Member
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 B C D E F G 1 Craig 2 Date 01/01/2017 02/01/2017 03/01/2017 04/01/2017 05/01/2017 06/01/2017 3 Result S H B

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

DATA TAB
 A B C D E F G 1 Sun Mon Tue Wed Thu Fri 2 Date 01/01/2017 02/01/2017 03/01/2017 04/01/2017 05/01/2017 06/01/2017 3 Craig S H B 4 Ang H HS 5 Donna H 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
untested:

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

##### Active Member
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
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)),"")

##### Active Member
Perfect thank you very much

#### BarryL

##### Well-known Member
You're welcome

Replies
6
Views
106
Replies
7
Views
423
Replies
4
Views
154
Replies
13
Views
490
Replies
6
Views
204

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.

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.

### Which adblocker are you using?

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

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