Using IF Function with multiple dates

MedInformatTiff

New Member
Joined
Aug 9, 2017
Messages
1
Hello,

I have two worksheets in my workbook. The first sheet has a list of patients (all patients have unique identifiers i.e 123456 as their patient number) with all of their office visits listed. The second sheet is the same group of patients with all of their hospital discharge dates listed. I'm trying to compare IF any of the unique patients' hospital discharge date/s are within 30 days of any of their office visit dates then I want it to display TRUE.

Please help! :)
 

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.
Maybe this will help you on your way.

Excel Workbook
ABCDEFGH
1nrvisite 1visite 2nrdischarge30 days
254-2-20174-1-201754-2-20171
3101-1-20174-2-2017107-1-20172
tables visits/discharges
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,030
Messages
6,128,407
Members
449,448
Latest member
Andrew Slatter

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