- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 04, 2022 08:58 AM
Is it possible to color code a record based on a due date, but just the ones that are in the current week?
Example: Today is Thursday, so all the records with a today or tomorrow (Friday) due date would be colored red.
I know that color based on “within the next week” or “within X number of days” exists, but I need the records for the current week only.
Thanks!
Solved! Go to Solution.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 04, 2022 09:07 AM
I would create a formula field that compares this week to the week of the due date like this:
IF(
WEEKNUM(TODAY()) = WEEKNUM({Due Date}),
"This Week"
)
Then, you can color code based on the result of that formula.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 04, 2022 09:07 AM
I would create a formula field that compares this week to the week of the due date like this:
IF(
WEEKNUM(TODAY()) = WEEKNUM({Due Date}),
"This Week"
)
Then, you can color code based on the result of that formula.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 04, 2022 09:12 AM
This will work, though minor correction: WeekNum() is the formula to use. The following method also exists to get the week #, though is longer: DateTime_Format({Due Date}, “w”).

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 04, 2022 09:39 AM
Oops, thanks for catching my mistake! :grinning: I just fixed it above!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 04, 2022 10:23 AM
Thank you Scott, the formula works.
It’s a bummer that it’s not an option in the Color code dialogue though.
I’ll just hide the formula column and pretend it doesn’t exist. :slightly_smiling_face:
