Index Match help required?

Celticshadow

Active Member
Joined
Aug 16, 2010
Messages
414
Office Version
  1. 365
Platform
  1. Windows
Hi Forum

I have two workbooks one named Entries and the other named Trainers and I want to lookup the horse A Decent Excuse in the Entries workbook and find the Trainer for Decent Excuse from the Trainers workbook.

I have been using VLOOKUP but it only gives a partial match which results in incorrect results (due to my workbooks extending to some 14k rows with similar names), however I have been searching online and it appears that Index and Match would give me the exact result/match I require.

Thus may I ask forum if they would be kind enough to help me with an index match formula to provide the result I require. I have attached a couple of tables that will hopefully paint a picture of what is required although this a very short cutdown. Thanks in advance.

Regards

ENTRIES

HORSEDATECOURSETIMETrainer
A Decent Excuse01 June 2015LIS4:00
A Few Dollars More04 June 2015TIP6:00
A Great View06 June 2015LIM5:45
Abarta03 June 2015PUN7:00

<tbody>
</tbody>

TRAINERS

HorseTrainer
A Decent ExcuseE M O'Sullivan
A Few Dollars MoreA Slattery
A Great ViewD Cullen
AbartaV T O'Brien

<tbody>
</tbody>
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
i want to lookup the horse a decent excuse in the entries workbook and find the trainer for decent excuse from the trainers workbook.

Entries

horsedatecoursetimetrainer
a decent excuse01 june 2015lis4:00
a few dollars more04 june 2015tip6:00
a great view06 june 2015lim5:45
abarta03 june 2015pun7:00

<tbody>
</tbody>

trainers

horsetrainer
a decent excusee m o'sullivan
a few dollars morea slattery
a great viewd cullen
abartav t o'brien

<tbody>
</tbody>


=index(trainers!b:b,match(a2,trainers!a:a,0))
 
Upvote 0


A
B
C
D
E
1
Horse
Date
Course
Time
Trainer
2
A Decent Excuse
01 June 2015

<colgroup><col width="92"></colgroup><tbody>
</tbody>
Lis
4.00
3
A Few Dollars More
04 June 2015
Tip
6.00
4
A Great View
06 June 2015
Lim
5.45
5
Abarta
03 June 2015
Pun
7.00

<tbody>
</tbody>


Trainers
A
B
1
Horse
Trainer
2
A Decent Excuse
E M O'Sullivan

<colgroup><col width="92"></colgroup><tbody>
</tbody>
3
A Few Dollars More
A Slattery
4
A Great View
D Cullen
5
Abarta
V T O'Brien

<tbody>
</tbody>

Result Required

A
B
C
D
E
1
Horse
Date
Course
Time
Trainer
2
A Decent Excuse
01 June 2015

<colgroup><col width="92"></colgroup><tbody>
</tbody>
Lis
4.00
E M O'Sullivan
3
A Few Dollars More
04 June 2015
Tip
6.00
A Slattery
4
A Great View
06 June 2015
Lim
5.45
D Cullen
5
Abarta
03 June 2015
Pun
7.00
V T O'Brien

<tbody>
</tbody>

Hopefully that may help with regard to my above query.

Regards
 
Upvote 0
=index(trainers!b:b,match(a2,trainers!a:a,0))

Hi svendiamond

Many thanks for replying.

Unfortunately that does your formula does not seem to work for me as I wish to look up the horse in the entries workbook and find the trainer associated with it from the trainers workbook. I maybe wrong but your solution appears to be looking at just the trainers workbook. Apologies if I have assumed incorrectly.

Regards
 
Upvote 0
Sorry, I thought they were two different sheets - not two different workbooks. What is the sheet name on the "TRAINERS" workbook? If it were named "Sheet1" this formula should work:

=INDEX('[TRAINERS.xlsx]Sheet1'!$B:$B,MATCH(A2,'[TRAINERS.xlsx]Sheet1'!$A:$A,0))

It is looking at both workbooks... this should be entered into your "ENTRIES" workbook in cell E2.
 
Upvote 0
Sorry, I thought they were two different sheets - not two different workbooks. What is the sheet name on the "TRAINERS" workbook? If it were named "Sheet1" this formula should work:

=INDEX('[TRAINERS.xlsx]Sheet1'!$B:$B,MATCH(A2,'[TRAINERS.xlsx]Sheet1'!$A:$A,0))

It is looking at both workbooks... this should be entered into your "ENTRIES" workbook in cell E2.

Hi svendiamond

Sincere apologies for lateness in replying, I am very grateful for your help and am happy to say that your solution worked perfectly. Top class as usual form forum members.

Regards
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,755
Members
448,989
Latest member
mariah3

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