IF Statement help

Treynic

New Member
Joined
Sep 7, 2022
Messages
6
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
Hello, new guy here!
Its a little "bug" if you will or I dont know how to properly write the formula.

Basically, I want that status cell to read "On Schedule" if the delivery date is blank. But its giving me early, because technically the value of it being blank is less than the due date.
=IF([@[Delivery Date]]=[@[Due Date]],"On Time",IF([@[Delivery Date]]<[@[Due Date]],"Early",IF([@[Delivery Date]]>[@[Due Date]],"Late",IF(C2="","On Schedule",""))))

Hoping someone can point out where I went wrong or where to correct.
1662574528371.png

Thanks!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF([@[Delivery Date]]="","On Schedule",IF([@[Delivery Date]]=[@[Due Date]],"On Time",IF([@[Delivery Date]]<[@[Due Date]],"Early","Late")))
 
Upvote 0
Solution
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF([@[Delivery Date]]="","On Schedule",IF([@[Delivery Date]]=[@[Due Date]],"On Time",IF([@[Delivery Date]]<[@[Due Date]],"Early","Late")))
Thanks Fluff! I over thought it, I forgot about about the truth false statement as a whole at the end of Delivery<Due.
Thank you!
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,094
Latest member
teemeren

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