Vlookup under condition

goble

New Member
Joined
Oct 7, 2010
Messages
48
Office Version
  1. 2019
Platform
  1. Windows
Hello Excel Gurus,

I have sheet 1:

Date InvoicedNameDate PlannedInclude in reportLocation
01-Aug-23Event 101-Dec-23YesNew York
01-Sep-23Event 212-Dec-23NoLas Vegas

& sheet 2:

Date InvoicedNameDescriptionDate PlannedInclude in reportLocation
15-Aug-23Event 3Fun Day08-Nov-23NoMiami
22-Aug-23Event 4Wedding15-Nov-23YesSeattle

The result I would like, sheet 3 :
Note:
1. So seems I need to combine a VLOOKUP if data is 'Yes' in 'Include in report' column
2. 'Date planned' should appear in the first column

Date PlannedNameLocation
15-Nov-23Event 4Seattle
01-Dec-23Event 1New York
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hello,

Seems like VLOOKUP won't do the job because of several occurrences of 'Yes'. Maybe using the 'MATCH' formula ?
 
Upvote 0
There is probably a formula that can do what you need but would be fairly lengthy. But, have you considered doing this in Power Query.
There are many tutorials on Youtube that descibe taking data from tables/sheets/other workbooks of differing structure and combining.
The Youtube channels of Mr. Excel, ExcelIsFun, Leila Gharani, and MyOnlineTrainingHub all have a video and even playlists on Power Query.
Here is a link to MyOnlineTrainingHub's playlist on Power Query.
 
Upvote 0

Forum statistics

Threads
1,223,880
Messages
6,175,154
Members
452,615
Latest member
bogeys2birdies

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