IF Statement with Today() for Action Log

Tashat

Board Regular
Joined
Jan 12, 2005
Messages
135
Office Version
  1. 365
Platform
  1. Windows
Hello everyone,

I'm hoping someone can help me here. I'm trying to produce a basic action log spreadsheet and I want to add due dates. In the cell alongside due date I want the status to automatically appear with the following logic:
if today's date is less than the due date but not within a week of the due date, then I want it to read "Coming Due"
if today is within a week of the due date I want it to read "Due"
and if today is past the due date, then "Overdue"

So far I have this:

Where A1 is the due date:

<bb>=IF(A1="","",IF(TODAY()<=A1,"Coming Due",IF(TODAY()>A13,"Overdue",)))</bb>

I'm having trouble allowing for the due within a week part of the formula. Any help would be much appreciated.

Natasha
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Try:
Code:
=IF(ISBLANK(A1),"",IF(TODAY()+7<=A1,"Coming due",IF(AND(TODAY()>=A1-7,TODAY()<A1+1),"Due","Overdue")
 
Upvote 0
Brilliant - thank you very much. I will look closely at the formula to understand the logic, but it appears to work. Thanks again. :)
 
Upvote 0
<bb></bb>
Excel Workbook
AB
101/05/2010 
202/05/2010
303/05/2010
404/05/2010
505/05/2010
606/05/2010
707/05/2010
808/05/2010
909/05/2010
1010/05/2010
1111/05/2010coming due
1212/05/2010coming due
1313/05/2010coming due
1414/05/2010coming due
1515/05/2010coming due
1616/05/2010coming due
1717/05/2010coming due
1818/05/2010coming due
1919/05/2010past Due
2020/05/2010past Due
2121/05/2010past Due
Sheet1
 
Upvote 0
You're welcome - to help you:

1 Check if the cell's blank
2 If not
3 Check if today's date + 7 days is less than the due date (i.e. more than a week away)
4 If it is then it's before the due date and thus "coming due"
5 If not then
6 If today's date is greater than the due date - 7 days AND less than the due date + 1, then "due" (i.e. within 1 week after the due date)
else the last possible value is it's "overdue" (i.e. if it's more than a week after the due date)
 
Upvote 0
With a mention when the day is due also
Excel Workbook
AB
101/05/2010 
202/05/2010
3
404/05/2010
505/05/2010
606/05/2010
7
808/05/2010
909/05/2010
1010/05/2010
1111/05/2010coming due
1212/05/2010coming due
1313/05/2010coming due
1414/05/2010coming due
1515/05/2010coming due
1616/05/2010coming due
1717/05/2010coming due
1818/05/2010Due Today
1919/05/2010past Due
2020/05/2010past Due
2121/05/2010past Due
Sheet1
 
Upvote 0
Thank you JackDanIce and ScottyLad - your help is much appreciated. I can normally work these things out, but for some reason this got the better of me - and it's actually very basic stuff, which is frustrating. I guess I'm quite rusty. Thanks again. Natasha
 
Upvote 0
Thread is old but still relevant!

I've taken the formula here and have tried to add a condition to show whether or not an invoice is current:

=IF(E2<TODAY(),"past Due",IF(E2>=TODAY()-7,"coming due",IF(E2>TODAY(),"current")))

The "current" section isn't working - where am I going wrong?

Thank you very much!
 
Upvote 0
Thread is old but still relevant!

I've taken the formula here and have tried to add a condition to show whether or not an invoice is current:

=IF(E2<today(),"past Due?,IF(E2="">=TODAY()-7,"coming due",IF(E2>TODAY(),"current")))

The "current" section isn't working - where am I going wrong?

Thank you very much!

You seem to be missing the False portion of the second IF statement.

IF( logic, True, IF( logic, True , ... missing false outcome ... )))</today(),"past>
 
Upvote 0
Roger that. Thanks.

Here's where I landed:

=IF(A25=TODAY()+7,"coming due",IF(A25>=TODAY(),"current",IF(A25<TODAY(),"past due","-")))

It's working like I want except for the first logical test. Only invoices with due dates exactly 7 days from today are showing up as "coming due." Invoices with due dates 1 to 6 days in the future are showing as "current."

Is it possible to add a parameter to the first argument that will show all invoices due 1-7 days from now as "coming due,", or do I need to do a separate if statement for each additional day 1 through 6?
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,272
Members
449,075
Latest member
staticfluids

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