Excel Formula with Dates Help Needed

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")))

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")))
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Is this what you are looking for -

Book2
ABCDEFGHIJ
1Expected PGI DatePGI DatePlanned GR DateGR DatePlanned Release DateLate PGId?Days PGI LateLate GR?Days GR LateOverdue
39451704516945171045170Expedited-3Expedited8Overdue
40451704516945171045170Expedited-3Expedited8Overdue
41451704516945174045173Expedited-3Expedited7Overdue
42451704516945174045173Expedited-3Expedited7Overdue
43451704516945174045173Expedited-3Expedited7Overdue
44451704516945174045173Expedited-3Expedited7Overdue
45451704516945174045173Expedited-3Expedited7Overdue
46451704516945174045173Expedited-3Expedited7Overdue
47451704516945175045174Expedited-3Expedited6Overdue
48451704516945175045174Expedited-3Expedited6Overdue
49451704516945175045174Expedited-3Expedited6Overdue
50451704516945175045174Expedited-3Expedited6Overdue
51451704516945175045174Expedited-3Expedited6Overdue
52451704516945175045174Expedited-3Expedited6Overdue
5345170045172045170Late9Expedited8Overdue
5445170045175045173Late9Expedited6Overdue
5545170045175045173Late9Expedited6Overdue
5645170045175045173Late9Expedited6Overdue
5745170045175045173Late9Expedited6Overdue
5845170045175045173Late9Expedited6Overdue
5945170045176045174Late9Expedited5Overdue
6045170045176045174Late9Expedited5Overdue
6145170451704517600On Time0Expedited5Overdue
62451734517345176045173On Time0Expedited5Overdue
63451734517345176045173On Time0Expedited5Overdue
64451734517345176045173On Time0Expedited5Overdue
65451734517345176045173On Time0Expedited5Overdue
66451734517345176045173On Time0Expedited5Overdue
67451734517345176045173On Time0Expedited5Overdue
68451734517345176045173On Time0Expedited5Overdue
69451734517345176045173On Time0Expedited5Overdue
70451734517345176045173On Time0Expedited5Overdue
71451734517345176045173On Time0Expedited5Overdue
72451734517345176045173On Time0Expedited5Overdue
73451734517345176045173On Time0Expedited5Overdue
74451734517445175045173Late1Expedited6Overdue
75451734517445175045173Late1Expedited6Overdue
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=IFS(C39>=TODAY(),"No Action Required",OR(D39="",D39>TODAY()),"Check",AND(D39<>0,C39>=D39),"Not Due",TRUE,"Overdue")
 
Upvote 0
Is this what you are looking for -

Book2
ABCDEFGHIJ
1Expected PGI DatePGI DatePlanned GR DateGR DatePlanned Release DateLate PGId?Days PGI LateLate GR?Days GR LateOverdue
39451704516945171045170Expedited-3Expedited8Overdue
40451704516945171045170Expedited-3Expedited8Overdue
41451704516945174045173Expedited-3Expedited7Overdue
42451704516945174045173Expedited-3Expedited7Overdue
43451704516945174045173Expedited-3Expedited7Overdue
44451704516945174045173Expedited-3Expedited7Overdue
45451704516945174045173Expedited-3Expedited7Overdue
46451704516945174045173Expedited-3Expedited7Overdue
47451704516945175045174Expedited-3Expedited6Overdue
48451704516945175045174Expedited-3Expedited6Overdue
49451704516945175045174Expedited-3Expedited6Overdue
50451704516945175045174Expedited-3Expedited6Overdue
51451704516945175045174Expedited-3Expedited6Overdue
52451704516945175045174Expedited-3Expedited6Overdue
5345170045172045170Late9Expedited8Overdue
5445170045175045173Late9Expedited6Overdue
5545170045175045173Late9Expedited6Overdue
5645170045175045173Late9Expedited6Overdue
5745170045175045173Late9Expedited6Overdue
5845170045175045173Late9Expedited6Overdue
5945170045176045174Late9Expedited5Overdue
6045170045176045174Late9Expedited5Overdue
6145170451704517600On Time0Expedited5Overdue
62451734517345176045173On Time0Expedited5Overdue
63451734517345176045173On Time0Expedited5Overdue
64451734517345176045173On Time0Expedited5Overdue
65451734517345176045173On Time0Expedited5Overdue
66451734517345176045173On Time0Expedited5Overdue
67451734517345176045173On Time0Expedited5Overdue
68451734517345176045173On Time0Expedited5Overdue
69451734517345176045173On Time0Expedited5Overdue
70451734517345176045173On Time0Expedited5Overdue
71451734517345176045173On Time0Expedited5Overdue
72451734517345176045173On Time0Expedited5Overdue
73451734517345176045173On Time0Expedited5Overdue
74451734517445175045173Late1Expedited6Overdue
75451734517445175045173Late1Expedited6Overdue
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=IFS(C39>=TODAY(),"No Action Required",OR(D39="",D39>TODAY()),"Check",AND(D39<>0,C39>=D39),"Not Due",TRUE,"Overdue")
 
Upvote 0
AHHH so good hear back from you. I changed the sign < (before was >) prior check (tested the "check" was not picking in the prior formula) below ... and wish to understand better the concept of "D <>0".
 
Upvote 0
@SanjayGMusafir I actually revised again....I'm confused with the condition.... below example I typed 25/09/2023 in column D shouldn't this be a check if is >Today?

Formula Validation DIFOT.xlsx
ABCDEFGHIJ
1Expected PGI DatePGI DatePlanned GR DateGR DatePlanned Release DateLate PGId?Days PGI LateLate GR?Days GR LateOverdue
213/09/202313/09/202314/09/202315/09/202313/09/2023On Time0Late1Overdue
313/09/202313/09/202314/09/202314/09/202313/09/2023On Time0On Time0Not Due
413/09/202313/09/202315/09/20230/01/190013/09/2023On Time0Expedited0No Action Required
513/09/202313/09/202311/09/20230/01/190013/09/2023On Time0Expedited4Overdue
613/09/202313/09/202315/09/20230/01/190013/09/2023On Time0Expedited0No Action Required
713/09/202313/09/202311/09/202314/09/202313/09/2023On Time0Late3Overdue
813/09/202313/09/202315/09/20230/01/190013/09/2023On Time0Expedited0No Action Required
914/09/202314/09/202312/09/202315/09/202314/09/2023On Time0Late3Overdue
1014/09/202314/09/202312/09/202315/09/202314/09/2023On Time0Late3Overdue
1114/09/202314/09/202315/09/20230/01/190014/09/2023On Time0Expedited0No Action Required
1214/09/202314/09/202315/09/20230/01/190014/09/2023On Time0Expedited0No Action Required
1314/09/202314/09/202315/09/202325/09/202314/09/2023On Time0Late6No Action Required
1414/09/202314/09/202315/09/20230/01/190014/09/2023On Time0Expedited0No Action Required
1514/09/202314/09/202321/09/20230/01/190014/09/2023On Time0Expedited-6No Action Required
1614/09/202314/09/202325/09/20230/01/190014/09/2023On Time0Expedited-8No Action Required
1714/09/202314/09/202315/09/20230/01/19000/01/1900On Time0Expedited0No Action Required
Sheet1
Cell Formulas
RangeFormula
F2:F17F2=IFS(AND(B2=0,A2<TODAY()),"Late",A2>B2,"Expedited",A2=B2,"On Time",TRUE,"Late")
G2:G17,I2:I17G2=NETWORKDAYS(A2,IF(B2=0,TODAY(),B2))-1
H2:H17H2=IFS(D2>C2,"Late",D2=C2,"On Time",D2<C2,"Expedited",TRUE,"")
J2:J17J2=IFS(C2>=TODAY(),"No Action Required",OR(D2="",D2>TODAY()),"Check",AND(D2<>0,C2>=D2),"Not Due",TRUE,"Overdue")
 
Upvote 0
I'm confused with the condition.... below example I typed 25/09/2023 in column D shouldn't this be a check if is >Today?
Excel checks in order of sequence

Since c13>Today() it stops there and returns "No Action Required"
 
Upvote 0
Excel checks in order of sequence

Since c13>Today() it stops there and returns "No Action Required"
@SanjayGMusafir is correct to state that in this case the "check" will basically not happen? Because if column C is below today = overdue straight away and if bigger than today would return "no actin required"
 
Upvote 0
is correct to state that in this case the "check" will basically not happen?
I would suggest to TEST for various conditions by changing different values as per your requirements and see if it is working or not...
 
Upvote 1

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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