Excel formula - Overdue orders with dates

Status
Not open for further replies.

RD1982

New Member
Joined
Nov 10, 2022
Messages
39
Office Version
  1. 365
Platform
  1. Windows
Hi Mr. Excels,

Could you please help me to build formula which will inform as "overdue" if an order passed through "Planned GR Date and GR Date" as exemplified below?
I tried to attached file to facilitate the check but it seems not available so I copied/past table. Thanks in advance.

The below informed Days GR late as 4,5 and 6 days = this is overdue but column J is not showing that.... I guess a new condition on column C is required?
Formulas I'm using in each column:

Late PGI Date => =IFS(AND(B39=0,A39<TODAY()),"Late",A39>B39,"Expedited",A39=B39,"On Time",TRUE,"Late")
Days PGI Late => =NETWORKDAYS(A39,IF(B39=0,TODAY(),B39))-1
Late GR => =IFS(D39>C39,"Late",D39=C39,"On Time",D39<C39,"Expedited",TRUE,"")
Days GR Late => =NETWORKDAYS(C39,IF(D39=0,TODAY(),D39))-1
Overdue => =IF(C39>=TODAY(),"No Action Required",IF(OR(D39="",D39>TODAY()),"Check",IF(C39>=D39,"Not Due","Overdue")))


1694500031124.png


Expected PGI DatePGI DatePlanned GR DateGR DatePlanned Release DateLate PGId?Days PGI LateLate GR?Days GR LateOverdue
1/09/202331/08/20232/09/20230/01/19001/09/2023Expedited-3Expedited6Not Due
1/09/202331/08/20232/09/20230/01/19001/09/2023Expedited-3Expedited6Not Due
1/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited5Not Due
1/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited5Not Due
1/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited5Not Due
1/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited5Not Due
1/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited5Not Due
1/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited5Not Due
1/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited4Not Due
1/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited4Not Due
1/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited4Not Due
1/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited4Not Due
1/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited4Not Due
1/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited4Not Due
1/09/20230/01/19003/09/20230/01/19001/09/2023Late7Expedited6Not Due
1/09/20230/01/19006/09/20230/01/19004/09/2023Late7Expedited4Not Due
1/09/20230/01/19006/09/20230/01/19004/09/2023Late7Expedited4Not Due
1/09/20230/01/19006/09/20230/01/19004/09/2023Late7Expedited4Not Due
1/09/20230/01/19006/09/20230/01/19004/09/2023Late7Expedited4Not Due
1/09/20230/01/19006/09/20230/01/19004/09/2023Late7Expedited4Not Due
1/09/20230/01/19007/09/20230/01/19005/09/2023Late7Expedited3Not Due
1/09/20230/01/19007/09/20230/01/19005/09/2023Late7Expedited3Not Due
1/09/20231/09/20237/09/20230/01/19000/01/1900On Time0Expedited3Not Due
4/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited3Not Due
4/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited3Not Due
4/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited3Not Due
 

Attachments

  • 1694499732184.png
    1694499732184.png
    61.3 KB · Views: 7

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi Mr. Excels,

Could you please help me to build formula which will inform as "overdue" if an order passed through "Planned GR Date and GR Date" as exemplified below?
I tried to attached file to facilitate the check but it seems not available so I copied/past table. Thanks in advance.

The below informed Days GR late as 4,5 and 6 days = this is overdue but column J is not showing that.... I guess a new condition on column C is required?
Formulas I'm using in each column:

Late PGI Date => =IFS(AND(B39=0,A39<TODAY()),"Late",A39>B39,"Expedited",A39=B39,"On Time",TRUE,"Late")
Days PGI Late => =NETWORKDAYS(A39,IF(B39=0,TODAY(),B39))-1
Late GR => =IFS(D39>C39,"Late",D39=C39,"On Time",D39<C39,"Expedited",TRUE,"")
Days GR Late => =NETWORKDAYS(C39,IF(D39=0,TODAY(),D39))-1
Overdue => =IF(C39>=TODAY(),"No Action Required",IF(OR(D39="",D39>TODAY()),"Check",IF(C39>=D39,"Not Due","Overdue")))
Formula Validation DIFOT.xlsx
ABCDEFGHIJ
1Expected PGI DatePGI DatePlanned GR DateGR DatePlanned Release DateLate PGId?Days PGI LateLate GR?Days GR LateOverdue
391/09/202331/08/20232/09/20230/01/19001/09/2023Expedited-3Expedited8Not Due
401/09/202331/08/20232/09/20230/01/19001/09/2023Expedited-3Expedited8Not Due
411/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited7Not Due
421/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited7Not Due
431/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited7Not Due
441/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited7Not Due
451/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited7Not Due
461/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited7Not Due
471/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited6Not Due
481/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited6Not Due
491/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited6Not Due
501/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited6Not Due
511/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited6Not Due
521/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited6Not Due
531/09/20230/01/19003/09/20230/01/19001/09/2023Late9Expedited8Not Due
541/09/20230/01/19006/09/20230/01/19004/09/2023Late9Expedited6Not Due
551/09/20230/01/19006/09/20230/01/19004/09/2023Late9Expedited6Not Due
561/09/20230/01/19006/09/20230/01/19004/09/2023Late9Expedited6Not Due
571/09/20230/01/19006/09/20230/01/19004/09/2023Late9Expedited6Not Due
581/09/20230/01/19006/09/20230/01/19004/09/2023Late9Expedited6Not Due
591/09/20230/01/19007/09/20230/01/19005/09/2023Late9Expedited5Not Due
601/09/20230/01/19007/09/20230/01/19005/09/2023Late9Expedited5Not Due
611/09/20231/09/20237/09/20230/01/19000/01/1900On Time0Expedited5Not Due
624/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited5Not Due
634/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited5Not Due
644/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited5Not Due
654/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited5Not Due
664/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited5Not Due
674/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited5Not Due
684/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited5Not Due
694/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited5Not Due
704/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited5Not Due
714/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited5Not Due
724/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited5Not Due
734/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited5Not Due
744/09/20235/09/20236/09/20230/01/19004/09/2023Late1Expedited6Not Due
754/09/20235/09/20236/09/20230/01/19004/09/2023Late1Expedited6Not Due
Sheet1
Cell Formulas
RangeFormula
F39:F75F39=IFS(AND(B39=0,A39<TODAY()),"Late",A39>B39,"Expedited",A39=B39,"On Time",TRUE,"Late")
G39:G75,I39:I75G39=NETWORKDAYS(A39,IF(B39=0,TODAY(),B39))-1
H39:H75H39=IFS(D39>C39,"Late",D39=C39,"On Time",D39<C39,"Expedited",TRUE,"")
J39:J75J39=IF(C39>=TODAY(),"No Action Required",IF(OR(D39="",D39>TODAY()),"Check",IF(C39>=D39,"Not Due","Overdue")))


View attachment 98586

Expected PGI DatePGI DatePlanned GR DateGR DatePlanned Release DateLate PGId?Days PGI LateLate GR?Days GR LateOverdue
1/09/202331/08/20232/09/20230/01/19001/09/2023Expedited-3Expedited6Not Due
1/09/202331/08/20232/09/20230/01/19001/09/2023Expedited-3Expedited6Not Due
1/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited5Not Due
1/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited5Not Due
1/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited5Not Due
1/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited5Not Due
1/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited5Not Due
1/09/202331/08/20235/09/20230/01/19004/09/2023Expedited-3Expedited5Not Due
1/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited4Not Due
1/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited4Not Due
1/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited4Not Due
1/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited4Not Due
1/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited4Not Due
1/09/202331/08/20236/09/20230/01/19005/09/2023Expedited-3Expedited4Not Due
1/09/20230/01/19003/09/20230/01/19001/09/2023Late7Expedited6Not Due
1/09/20230/01/19006/09/20230/01/19004/09/2023Late7Expedited4Not Due
1/09/20230/01/19006/09/20230/01/19004/09/2023Late7Expedited4Not Due
1/09/20230/01/19006/09/20230/01/19004/09/2023Late7Expedited4Not Due
1/09/20230/01/19006/09/20230/01/19004/09/2023Late7Expedited4Not Due
1/09/20230/01/19006/09/20230/01/19004/09/2023Late7Expedited4Not Due
1/09/20230/01/19007/09/20230/01/19005/09/2023Late7Expedited3Not Due
1/09/20230/01/19007/09/20230/01/19005/09/2023Late7Expedited3Not Due
1/09/20231/09/20237/09/20230/01/19000/01/1900On Time0Expedited3Not Due
4/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited3Not Due
4/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited3Not Due
4/09/20234/09/20237/09/20230/01/19004/09/2023On Time0Expedited3Not Due
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

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