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.
 
Did you try my suggestion?

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

My 'spaces' comment was aimed at ganeshpoojary05. His formula was being truncated because of the inclusion of a greater than symbol. If you post formula with greater than and less than symbols one must make sure it has a space either side otherwise the forum will think it's HTML and it will be truncated.
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,224,557
Messages
6,179,510
Members
452,918
Latest member
Davion615

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