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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

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