Dispatch Formula Between Dates

RD1982

New Member
Joined
Nov 10, 2022
Messages
39
Office Version
  1. 365
Platform
  1. Windows
Hi Mr Excels Gurus - Could you please help with the below? This will cover the above message template which I think was a bit confused. Thanks.

1688106293662.png

Expected PGI DatePGI DatePGI Status
27/06/202327/06/2023On Time
27/06/202327/06/2023On Time
27/06/20230/01/1900Late
27/06/202327/06/2023On Time
27/06/202327/06/2023On Time
27/06/202327/06/2023On Time
27/06/202327/06/2023On Time
27/06/202327/06/2023On Time
27/06/202327/06/2023On Time
27/06/202327/06/2023On Time
27/06/202327/06/2023On Time
27/06/202328/06/2023Late
27/06/202328/06/2023Late
27/06/202326/06/2023Expedited
27/06/202326/06/2023Expedited
27/06/202326/06/2023Expedited
27/06/202326/06/2023Expedited
3/07/20230/01/1900On Time
1688106414347.png
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Glad to help you. Thanks for your patience and persistence.

It can happen with anyone of us on a day that things are just before us and we might tend to ignore. Best part is that you got the essence/concept behind IFS function, it shall help you in more than many ways in future.
 
Upvote 1
Solution
@RD1982 May I further recommend you to mark the solution thread as it helps others to reach the solution in a much faster way.
 
Upvote 1
Assuming columns are A, B and C

Try this in C2 and below -

Excel Formula:
=IFS(B2=0,"Late",B2>A2,"Expedited",True,"On Time")
 
Upvote 0
@SanjayGMusafir Thank you for your feedback. I haven't used IFS before great to know this one....But it seems not capturing the correct results when PGI date occurred 1D after expected PGI Date as this should be "Late". Also, when PGI Date is = 0 but Expected PGI Date = future (not past due) this should be tagged as "On Time".

What do you recommend to adjust the below?


1688438319092.png
1688438463490.png
 

Attachments

  • 1688438442894.png
    1688438442894.png
    14.7 KB · Views: 2
Upvote 0
But it seems not capturing the correct results when PGI date occurred 1D after expected PGI Date as this should be "Late". Also, when PGI Date is = 0 but Expected PGI Date = future (not past due) this should be tagged as "On Time".
Try this and revert...
Excel Formula:
=IFS(And(U2="0/01/1900",T2<Today()),"Late",T2>U2,"Expedited",True,"On Time")
 
Upvote 0
@SanjayGMusafir - Apologies I cannot find the reason of below is still not capturing the correct result. The dates are all formatted as date so why is not picking the 1st condition of formula you shared?

1688441437288.png
 
Upvote 0
The dates are all formatted as date so why is not picking the 1st condition of formula you shared?
Ideally it should work with this too... Try again and update...

Excel Formula:
=IFS(And(U2=0,T2<Today()),"Late",T2>U2,"Expedited",True,"On Time")
 
Upvote 0
@SanjayGMusafir I don't know what else I can try and I thank you for trying to help but something is not working I cannot find where the problem is...


1688451865628.png
 
Upvote 0
I cannot find where the problem is...
At times it can some effort as there can be some ambiguity in understanding the need or the formats...

Try this and revert...

Excel Formula:
=IFS(And(U2=0,T2<Today()),"Late",T2>U2,"Expedited",T2=U2,"On Time",True,"")
 
Upvote 0

Forum statistics

Threads
1,216,126
Messages
6,129,020
Members
449,480
Latest member
yesitisasport

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