Compare two date columns and record entry in third column

Bullflip

New Member
Joined
Jun 2, 2020
Messages
19
Office Version
  1. 365
Platform
  1. Windows
Hi,

I know there is a way to record an entry in excel after comparing two date columns. Unfortunately, it's a Monday and my brain is not functioning at the moment. Can anyone please assist? In the screenshot below, I want to compare column L to column J and find out whether or not the work order was closed the same day. The logic I'm looking for is: If L2 > J2, then M2 = "No" else "Yes". Any help would be greatly appreciated. Thanks!

1610985341617.png
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi Bullflip,

The thing to be careful of is that formatting isn't hiding a time of day which would fail the comparison.

This works if no times are held or both hold times.

Bullflip.xlsx
JKLM
1WO CreatedWO ClosedClosed same day?
21/10/202001/10/20Yes
31/10/202001/10/20Yes
41/10/202001/10/20Yes
51/10/202001/12/20No
61/10/202001/10/20Yes
71/11/202001/10/20Yes
81/12/202001/13/20No
91/12/202001/12/20Yes
Sheet1
Cell Formulas
RangeFormula
M2:M9M2=IF(L2>J2,"No","Yes")
 
Upvote 0

Forum statistics

Threads
1,224,557
Messages
6,179,504
Members
452,917
Latest member
MrsMSalt

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