conditional date comparison columns a or b

frustrated_macro

New Member
Joined
Sep 4, 2019
Messages
49
Office Version
  1. 365
Platform
  1. Windows
So i have to compare a list of dates to see if the delivery of materials is late
Lets say:
in column A i have the Regions estimated delivery
in column B i have the expected delivery
in column C i have a formula that tells me if X date is before today, making it late

The report recently changed. Right now, in C i have the following formula =IF(A7<=TODAY(),"YES.","NO.")

So now i need to be able to tell excel
  • If there is a date in A, but nothing in B =IF(A7<=TODAY(),"YES.","NO.")
  • If there is a date in A and a date in B =IF(B7<=TODAY(),"YES.","NO.")
  • If there no date in A and yes a date in B =IF(B7<=TODAY(),"YES.","NO.")

Im not sure if thats a macro thing, or just a complex formula
Also, this formula is currently a step in a macro to fill in and format a certain way so it would be great if i could just alter the formula to match the new conditions
 
Last edited:

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
This this long formula work?


Excel 2010
ABC
6Est. DeliveryExpected Delivery
79/1/20199/25/2019NO
89/2/2019YES
99/2/2019YES
109/1/20199/2/2019YES
119/25/2019NO
129/20/2019NO
Sheet23
Cell Formulas
RangeFormula
C7=IF(AND(NOT(ISBLANK(A7)),NOT(ISBLANK(B7)),B7<=TODAY()),"YES",IF(AND(NOT(ISBLANK(A7)),ISBLANK(B7),A7<=TODAY()),"YES",IF(AND(ISBLANK(A7),NOT(ISBLANK(B7)),B7<=TODAY()),"YES","NO")))
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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