lookup value if there are multiple matches

annielise

New Member
Joined
Sep 9, 2018
Messages
2
Hi there,

I have data that when i vlookup it only picks up the first value. What is the best way of being able to find the corresponding value in a different column if the criteria matches?

For example, i want to be able to find what all the Type 2 bookings are for the individuals. What formula would be best for this? Thanks!

Data Set

[TABLE="width: 500"]
<tbody>[TR]
[TD]Name
[/TD]
[TD]Type
[/TD]
[TD]Booking Date
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Joe
[/TD]
[TD]Type 1
[/TD]
[TD]01/01/2018
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Joe
[/TD]
[TD]Type 2
[/TD]
[TD]06/08/2018
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Karen
[/TD]
[TD]Type 1
[/TD]
[TD]01/02/2018
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Ann
[/TD]
[TD]Type 2
[/TD]
[TD]03/02/2018
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]James
[/TD]
[TD]Type 1
[/TD]
[TD]20/08/2018
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Ann
[/TD]
[TD]Type 1
[/TD]
[TD]31/08/2018
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Helen
[/TD]
[TD]Type 1
[/TD]
[TD]01/01/2018
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Helen
[/TD]
[TD]Type 2
[/TD]
[TD]09/01/2019
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Helen
[/TD]
[TD]Type 3
[/TD]
[TD]02/03/2019
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


List of all Type 2 Booking Dates:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Name
[/TD]
[TD]Booking Date
[/TD]
[/TR]
[TR]
[TD]Joe
[/TD]
[TD]06/08/2018
[/TD]
[/TR]
[TR]
[TD]Karen
[/TD]
[TD]-
[/TD]
[/TR]
[TR]
[TD]Ann
[/TD]
[TD]03/02/2018
[/TD]
[/TR]
[TR]
[TD]James
[/TD]
[TD]20/08/2018
[/TD]
[/TR]
[TR]
[TD]Helen
[/TD]
[TD]09/01/2019
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Try one of these.
If you have Excel 2010 or later you can use the formulas in cells D15 and E15 below.
Other wise you can use the formulas in A15 and B15. The formulas in A15 & B15 must be entered with CTRL-SHIFT-ENTER. Then drag down as needed.
Excel Workbook
ABCDE
1NameTypeBooking Date
2JoeType 11/1/2018
3JoeType 28/6/2018
4KarenType 12/1/2018
5AnnType 22/3/2018
6JamesType 18/20/2018
7AnnType 18/31/2018
8HelenType 11/1/2018
9HelenType 21/9/2019
10HelenType 33/2/2019
11
12
13Find:Type 2Find:Type 2
14NameDateNameDate
15Joe8/6/2018Joe8/6/2018
16Ann2/3/2018Ann2/3/2018
17Helen1/9/2019Helen1/9/2019
Sheet
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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