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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

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