Complex Vlookup

STIRRELL

Board Regular
Joined
Dec 30, 2010
Messages
62
Office Version
  1. 365
Hi all ,
I have 2 datasets. One tab( Trip Length) is the Mileage report that has the employee ID in Column A and Date of Expense in Column C,
I need a lookup to look at the employee ID and the date of expense against another report that has the employee ID and Hotel check in and check out dates( Hotel Data Pivot).

I do not know how to write a formula to first review the employee ID then check to see if the expense date is within the date range of an hotel stay and return the data.


Can this be done? Help Please
 

Attachments

  • Mileage.JPG
    Mileage.JPG
    77.4 KB · Views: 21

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi all ,
I have 2 datasets. One tab( Trip Length) is the Mileage report that has the employee ID in Column A and Date of Expense in Column C,
I need a lookup to look at the employee ID and the date of expense against another report that has the employee ID and Hotel check in and check out dates( Hotel Data Pivot).

I do not know how to write a formula to first review the employee ID then check to see if the expense date is within the date range of an hotel stay and return the data.


Can this be done? Help Please
If you understand linking data using Power Pivot then it's achievable.

Else, you have create helper column(s) to pull data from another table and another helper column to verify that the date falls as required.
 
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,381
Members
448,888
Latest member
Arle8907

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