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
 
@SanjayGMusafir you are very clever...my formula skills is outdated I need some good classes to revamp all I lost along these years....I'm not good to study by myself... do you also master dashboard/power bi? I am looking for someone (will pay for some classes).

Thank you VERY much for clarifying the concept ....I get IFS inf ull now.

In this case when I mentioned to amend the "late" status I was thinking if we could somehow replace "today() with PGI Date to identify that if PGI is bigger than Expected PGI = Late... I tried but is not giving back the expected result as late :(
 
Upvote 0

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
@SanjayGMusafir - I tried to add the below yellow condition but it seems the formula simply ignores the fact that if PGI date is bigger than expected PGI date = late. Damned!

1688457479375.png
 
Upvote 0
In this case when I mentioned to amend the "late" status I was thinking if we could somehow replace "today() with PGI Date to identify that if PGI is bigger than Expected PGI = Late... I tried but is not giving back the expected result as late
Now it's getting complicated than what you required earlier.

Please tell all criteria clearly in typing so that I can reset the formula accordingly.
 
Upvote 0
@SanjayGMusafir The formula you provided is awesome and it's capturing correctly for all conditions - except when PGI Date is bigger than Expected PGI Date which in this case we need to tag as "Late" (yellow highlighted below). Below is the picture including the formula you shared.

1688514868624.png
 

Attachments

  • Mr Excel PGI v1 PNG.PNG
    Mr Excel PGI v1 PNG.PNG
    22.7 KB · Views: 4
Upvote 0
except when PGI Date is bigger than Expected PGI Date which in this case we need to tag as "Late"
Try this, this shall work as needed -

Excel Formula:
=IFS(And(U2=0,T2<Today()),"Late",T2>U2,"Expedited",T2=U2,"On Time",True,"Late")
 
Upvote 0
OMG you nailed! I am re-reading your IFS explanation with more time today...yesterday I scanned to be honest, also checked online more details and ONLY today I got the concept. Silly me!
The IF statement replaces that multiple nestled condition that sometimes get stuck and give us errors....or say " too many arguments"....
I liked the below concept explained through link -> IFS function - Microsoft Support

=IFS([Something is True1, Value if True1,Something is True2,Value if True2,Something is True3,Value if True3)

@SanjayGMusafir THANK YOUUUUUUUUUUUUUUUUUUUUUUUUUU for SO MUCH patience with me!!!! It seems sometimes I get stuck....and blind!
 
Upvote 0
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
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.
sure will do I even saved this one on Notes...I'll never forget! Thank you very very much!!!
 
Upvote 0

Forum statistics

Threads
1,215,671
Messages
6,126,131
Members
449,293
Latest member
yallaire64

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