Due dates conundrum

John.F

New Member
Joined
Sep 26, 2011
Messages
7
I have a spreadsheet with a date field in column D,
If the date value in column D is equal to TODAY(), I need to display "Due Today" in Column F and leave column G blank or display "0"
If the date value in column D is before TODAY(). I need to display "Overdue" in Column F and VAL(number of days overdue) in column G
If the date value in column D is after TODAY(), I need to display "Due In" in column F and VAL(number of days until due date) in Column G.

I can do the number of days overdue, but I get #name errors for a value of TODAY() or future date.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Try the below formula:

Formula for F Column:
=IF(D2=TODAY(),"Due Today",IF(D2<TODAY(),"Overdue","Due In"))


Formula for G Column:
=IF(F2="Overdue","Overdue by "&TODAY()-D2&" days",IF(F2="Due In","Due in by "&D2-TODAY()&" days",""))
 
Upvote 0
Thanks for your help. the formula for Column F seems incomplete - or were you giving me more respect than I'm due by assuming I could figure the rest out ? :laugh:

John
 
Upvote 0
Try the below formula:

Formula for F Column:
=IF(D2=TODAY(),"Due Today",IF(D2<TODAY(),"Overdue","Due In"))


Formula for G Column:
=IF(F2="Overdue","Overdue by "&TODAY()-D2&" days",IF(F2="Due In","Due in by "&D2-TODAY()&" days",""))
 
Upvote 0
Hi

Formula in F2:
=LOOKUP(G2,{-9.99E+307,0,1},{"Due In","Due Today","Overdue"})

Formula in G2:
=TODAY()-D2

Format G2 as:
0;0;""
 
Upvote 0
Please ignore the previous thread. here is the complete formula
Try the below formula:

Formula for F Column:
=IF(D2=TODAY(),"Due Today",IF(D2<TODAY(),"Overdue","Due In"))



Formula for G Column:
=IF(F2="Overdue","Overdue by "&TODAY()-D2&" days",IF(F2="Due In","Due in by "&D2-TODAY()&" days",""))
<!-- / message -->
 
Upvote 0
Please ignore the previous thread. here is the complete formula
Try the below formula:

Formula for F Column:
=IF(D2=TODAY(),"Due Today",IF(D2<TODAY(),"Overdue","Due In"))



Formula for G Column:
=IF(F2="Overdue","Overdue by "&TODAY()-D2&" days",IF(F2="Due In","Due in by "&D2-TODAY()&" days",""))
<!-- / message -->

Try using a space before and after greater than / less than characters.
 
Upvote 0
I guess i have some problem in pasting the formula:

Formula for F column
=if(D2=today(),"Due Today",if(d2<today(),"Overdue","Due In"))
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,487
Members
452,917
Latest member
MrsMSalt

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