Return content if date/time matches specified conditions.

Jayjayjayccc

New Member
Joined
Apr 18, 2022
Messages
1
Platform
  1. Windows
Hi, I am trying to get a return value of GOAL MET vs NOT MET depending on a set of conditions. Here's the formula that I have typed up, but it seems to have problems with it:

=IF(D2<=(-- 15:00) AND I2=DATE(D2) OR D2>=(-- 15:00) AND I2<=(DATE(D2)+1),"Met","NOT Met")

Colume D and I both have date/time: 4/18/2022 03:00 AM

Basically, here are my conditions typed up in plain english:

If Column D has a time on or before 3pm, AND column I has the same date as column D, GOAL MET.
If Column D has a time after 3pm, AND column I has the same date or the day after column D, NOT MET.

Thank you for helping me!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,214,920
Messages
6,122,276
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