Lookup where a single date may fall within a range

FrancisT

New Member
Joined
Mar 1, 2018
Messages
1
Hi folks. I'm new to this board so please forgive any minor transgressions.

I have tried searching for the answer but without success.

I have two datasets: the first contains a large number of records each containing a unique identifier which relates to something happening between a start and end date; the second contains data relating to the records in the first data set but the occurrence is on a single date, the records contain the same unique identifier as the first.

I need to pull information from the second database into the first when the identifier match and the date falls within the range in the first database.

For example a patient is admitted to hospital on day 1 and discharged on day 5. During that time various investigations are carried out but on specific days. The only unique identifier is the patient reference number. It is entirely possible that in any one year the same person with the same number could have been admitted several times so simply matching using the patient number won't help the dates are crucial.

I have no idea how to tackle this and maybe excel isn't the correct tool.

Any help would be much appreciated.

FrancisT
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,224,824
Messages
6,181,187
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