Date after Due Date

ozbeachbum

Board Regular
Joined
Jun 3, 2015
Messages
159
Office Version
  1. 2021
Platform
  1. Windows
Hi,
I am using the following formula to calculate the amount of time left before a due date, showing the number of Years - Months - Days.
=DATEDIF(QO4,Jun!EU129,"Y") & " - " & DATEDIF(QO4,Jun!EU129,"YM") & " - " & DATEDIF(QO4,Jun!EU129,"MD")& " "
(Sheet Check) QO4 being TODAYS DATE and (Sheet Jun) Jun!EU being the DUE DATE, result is located on (Sheet Check).
Once the due date is past the formula returns #NUM!. I would like that once the due date is past if the result showed ZERO Y's - M's - D's.

On another note if you would also include a formula, where once the due date is passed the result will show the number Years - Months -Days overdue, it would be greatly appreciated.

Thanking you in anticipation.
Dave.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Try with 2 opttions:
Option 1: for over due like this : "Over due 1-0-1"
Code:
=IFERROR(DATEDIF(QO4,Jun!EU129,"Y")&" - "&DATEDIF(QO4,Jun!EU129,"ym")&" - "&DATEDIF(QO4,Jun!EU129,"md"),"Over due "& DATEDIF(Jun!EU129,QO4,"Y")&" - "&DATEDIF(Jun!EU129,QO4,"ym")&" - "&DATEDIF(Jun!EU129,QO4,"md"))
Option 1: for over due like this : (1)-(0)-(1)
Code:
=IFERROR(DATEDIF(QO4,Jun!EU129,"Y")&" - "&DATEDIF(QO4,Jun!EU129,"ym")&" - "&DATEDIF(QO4,Jun!EU129,"md"),"("& DATEDIF(Jun!EU129,QO4,"Y")&") - ("&DATEDIF(Jun!EU129,QO4,"ym")&" )- ("&DATEDIF(Jun!EU129,QO4,"md")&")")
 
Upvote 0
Solution
Try with 2 opttions:
Option 1: for over due like this : "Over due 1-0-1"
Code:
=IFERROR(DATEDIF(QO4,Jun!EU129,"Y")&" - "&DATEDIF(QO4,Jun!EU129,"ym")&" - "&DATEDIF(QO4,Jun!EU129,"md"),"Over due "& DATEDIF(Jun!EU129,QO4,"Y")&" - "&DATEDIF(Jun!EU129,QO4,"ym")&" - "&DATEDIF(Jun!EU129,QO4,"md"))
Option 1: for over due like this : (1)-(0)-(1)
Code:
=IFERROR(DATEDIF(QO4,Jun!EU129,"Y")&" - "&DATEDIF(QO4,Jun!EU129,"ym")&" - "&DATEDIF(QO4,Jun!EU129,"md"),"("& DATEDIF(Jun!EU129,QO4,"Y")&") - ("&DATEDIF(Jun!EU129,QO4,"ym")&" )- ("&DATEDIF(Jun!EU129,QO4,"md")&")")
Thanks so much.
Worked fine.
Dave.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,733
Members
448,987
Latest member
marion_davis

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