Task Tracking: Scheduled against actual completion date with IF/AND/IFBLANK and TODAY functions
Hello,
I am trying to set up colour codes to track actual completion status against scheduled completion.
- Blank: Not due yet
- Blue: Due today or tomorrow
- Green: Completed, On time
- Red: Overdue, Not completed
- Yellow: Completed, Late
I found a formula on this forum (Thank you!) and tweaked it just a little to fit my needs. It works fine, with the exception that tasks that are due on the day show as "Complete" even though the "Actual Input Date" is empty.
=IF(AND(ISBLANK([Actual Input Date]@row), [Inputs Due]@row > TODAY(2)), " ", IF(AND(ISBLANK([Actual Input Date]@row), [Inputs Due]@row >= TODAY(1)), "Blue", IF(AND(ISBLANK([Actual Input Date]@row), [Inputs Due]@row < TODAY()), "Red", IF([Actual Input Date]@row < [Inputs Due]@row, "Green", IF([Actual Input Date]@row > [Inputs Due]@row, "Yellow")))))
Any suggestions or guidance what is wrong with the formula and what I need to change so I get the desired result?
Thank you!
Felicia
Answers
-
Thankfully one of my colleagues was able to figure out the issue with my formula:
=IF(AND(ISBLANK([Actual Input Date]@row), [Inputs Due]@row > TODAY(1)), " ", IF(AND(ISBLANK([Actual Input Date]@row), [Inputs Due]@row >= TODAY()), "Blue", IF(AND(ISBLANK([Actual Input Date]@row), [Inputs Due]@row < TODAY()), "Red", IF([Actual Input Date]@row < [Inputs Due]@row, "Green", IF([Actual Input Date]@row > [Inputs Due]@row, "Yellow")))))
Maybe this will come in useful to someone else :)
-
This is a bit of a monologue, but maybe someone needs a similar solution as I did. When I tested the function, I got "blank" when the due and actual date were identical.
I was able to fix that by adding an = in the "Green" sequence. Just in case some stumbles across the same issue.
=IF(AND(ISBLANK([Actual Input Date]@row), [Inputs Due]@row > TODAY(1)), " ", IF(AND(ISBLANK([Actual Input Date]@row), [Inputs Due]@row >= TODAY()), "Blue", IF(AND(ISBLANK([Actual Input Date]@row), [Inputs Due]@row < TODAY()), "Red", IF([Actual Input Date]@row <= [Inputs Due]@row, "Green", IF([Actual Input Date]@row > [Inputs Due]@row, "Yellow")))))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!