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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
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,224,825
Messages
6,181,190
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