Conditional Formatting for Dates within 7 Days in Google Sheets

Table of Contents

Table of Contents

Need to track upcoming deadlines, events, or tasks in your spreadsheet? Google Sheets lets you use conditional formatting to highlight dates that fall within the next 7 days automatically. This is especially useful for project timelines, to-do lists, or event schedules.

In this article, weโ€™ll show you multiple ways to apply conditional formatting rules that highlight dates falling within the next 7 days, using functions like TODAY, ISDATE, AND, and logical operators.

Key Takeaways

Steps to highlight dates within the next 7 days in Google Sheets using the TODAY and AND functions in conditional formatting:
โžค Use the dataset in a cell range, such as C2:C8, where the Due Dates are listed.
โžค Select the range C2:C8 and go to Format >> Conditional formatting.
โžค Under Format rules, choose Custom formula is, and enter this formula:
=AND(C2 >= TODAY(), C2 <= TODAY() + 7)
โžค Choose a formatting style to highlight cells that meet the criteria.
โžค Click Done to apply the rule and highlight upcoming dates automatically.

Due dates within the next 7 days highlighted in Google Sheets


1

Highlight Dates Within the Next 7 Days

This method uses a custom formula in Google Sheetsโ€™ conditional formatting to automatically highlight dates that fall within the next 7 days from today. By combining the TODAY function with the AND function, it checks whether each date is not in the past and occurs within a week ahead. This dynamic approach helps you quickly spot upcoming deadlines or events without manual date tracking.

This is the dataset we will be using for the article:

Task list with due dates in column C

The output will highlight all cells in your selected date range that contain a date between today and the next 7 days, making upcoming deadlines or events stand out visually.

Steps:

โžค Select the range of Due Dates in your sheet: C2:C8.
โžค Go to Format >> Conditional formatting.

Format menu with Conditional formatting for the due date range

โžค Under Format rules, choose Custom formula is.
โžค Enter this formula:

=AND(C2>=TODAY(), C2<=TODAY()+7)

Custom formula with TODAY and AND for the next 7 days

โžค Choose a formatting style (like a background color or text color) to highlight matching cells.
โžค Click Done.

Explanation
โžง C2>=TODAY() ensures the date is today or later (not past dates).
โžง C2<=TODAY()+7 checks if the date is within 7 days from today.
โžง TODAY()+7 is the date one week from today. Google Sheets stores dates as day numbers, so adding 7 to any date moves it one week later. The rule includes both today and that date, so up to 8 dates can match. For a different window, such as 14 or 30 days, change the 7.
โžง The AND() function combines these conditions so only dates that satisfy both get highlighted.
โžง Applying this rule to the Due Date column will highlight all tasks due within the next week.

Due dates in the next 7 days highlighted


2

Automatically Highlight Recent Dates from the Past 7 Days

This method uses a custom formula with the AND, TODAY, and ISDATE functions in Google Sheets’ conditional formatting to highlight cells containing dates that fall within the past 7 days (excluding today). It gives you precise control, unlike preset options, and is perfect for tracking recent activity such as submissions, updates, or events that occurred within the last week.

This is the updated dataset that we will be using for this method:

Updated dataset with recent and future dates

Steps:

โžค Select the range C2:C8 in your sheet.
โžค Go to Format >> Conditional formatting.

Conditional formatting opened for C2:C8

โžค Under Format cells if, choose Custom formula is.
โžค Enter this formula:

=AND(C2<TODAY(), C2>=TODAY()-7, ISDATE(C2))

Custom formula with TODAY, AND and ISDATE for the past 7 days

Explanation
โžง C2<TODAY() filters out today's and future dates.
โžง C2>=TODAY()-7 ensures the date is no more than 7 days old.
โžง ISDATE(C2) confirms the cell contains a valid date.

โžค Pick a formatting style (like a red fill or bold text) to make the highlighted cells stand out.
โžค Click Done.

Dates from the past 7 days highlighted

This method will highlight cells with dates that fall within the past 7 days.


3

Apply Conditional Formatting Using a Helper Column in Google Sheets

If you want more control or need to apply multiple complex conditions, using a helper column is a clean and flexible approach. In this method, you’ll calculate whether each date falls within the next 7 days in a separate column, and then apply conditional formatting based on that column’s value. This keeps formulas simple inside the formatting rule and makes debugging easier.

Steps:

โžค Suppose your dates are in column C (C2:C8). In column F, label cell F1 as โ€œWithin 7 Daysโ€.โžค In cell F2, enter the following formula:

=AND(C2 >= TODAY(), C2 <= TODAY() + 7)

Helper column formula returning TRUE or FALSE in column F

โžค Drag the formula down to fill for all rows with data. TRUE indicates the date is within the next 7 days.

Helper column filled down for every row

โžค Now, select the range A2:E8 (or your full data range).
โžค Go to Format >> Conditional formatting.

Conditional formatting opened for the task table

โžค Under โ€œFormat rulesโ€, choose Custom formula is and enter:

=$F2=TRUE

Custom formula =$F2=TRUE reading the helper column

โžค Set your desired formatting style and click Done.

Rows highlighted where the helper column is TRUE

Explanation
โžง The helper column evaluates if the date is between today and 7 days from now.
โžง Conditional formatting reads this column to decide which rows to highlight.

โžค This method is especially useful when combining multiple conditions or debugging formula logic.


4

Combine ISDATE and AND Functions in Conditional Formatting

When working with mixed data or user-input cells, it’s common to encounter invalid or blank entries. Using the ISDATE function along with AND helps ensure that conditional formatting only applies to valid date values that fall within your desired range, like the next 7 days. This approach avoids errors and misformatting, especially in collaborative or form-fed sheets.

Steps:

โžค Assume your dates are in column C, from cells C2 to C8.
โžค Select the range A2:C8 (or your complete data rows).
โžค Go to Format >> Conditional formatting.

Conditional formatting opened for A2:C8

โžค Under โ€œFormat rules,โ€ choose Custom formula is and enter:

=AND(ISDATE($C2), $C2 >= TODAY(), $C2 <= TODAY() + 7)

Custom formula combining ISDATE with the 7-day test

โžค Choose your preferred formatting style (e.g., background color) and click Done.

Explanation
โžง ISDATE(C2) checks whether the cell contains a valid date.
โžง C2 >= TODAY() and C2 <= TODAY() + 7 ensure the date falls within the next 7 days.

โžคThis method prevents conditional formatting from applying to invalid entries or blank rows, improving accuracy in real-world datasets.

Rows with valid dates in the next 7 days highlighted


Practice Resources

Get our practice workbook or necessary files that we have worked with to prepare this article.

Conditional Formatting for Dates within 7 Days in Google Sheets [Make a Copy]


Frequently Asked Questions

What does the TODAY() function do in Google Sheets?

The TODAY() function returns the current date and updates automatically each day, making it ideal for dynamic conditional formatting or time-based formulas.

Why isnโ€™t my conditional formatting working with dates?

Your column might be formatted as text. Ensure cells are properly set to “Date” format. Also, check that your formula references the top-left cell in the selected range.

Can I highlight weekends separately from weekdays within the next 7 days?

Yes. Use =WEEKDAY(C2, 2) > 5 in conditional formatting to highlight weekends (Saturday and Sunday), even within a 7-day date range. This highlights every weekend date in the range, not only those in the next 7 days. To limit it to the coming week, add the WEEKDAY test as a third condition inside the AND formula from method 1.

Will this method update automatically each day?

Yes. Since the formula uses TODAY, it recalculates daily. Dates that newly fall within the 7-day range will automatically be highlighted, and expired ones will be cleared.


Wrapping Up

Highlighting dates within the next 7 days using conditional formatting in Google Sheets is a powerful way to track upcoming tasks, deadlines, or events with dynamic formulas, such as TODAY and AND, ensuring your spreadsheet always reflects real-time urgency with no manual updates required. Whether you’re managing projects or reminders, this method keeps your timeline visually clear and actionable.

To combine more conditions in one rule, see conditional formatting with multiple conditions in Google Sheets. For how a rule reads another cell, see conditional formatting based on another cell.

Facebook
X
LinkedIn
WhatsApp
Picture of Mohammed Shafin Arshad

Mohammed Shafin Arshad

Mohammed Shafin Arshad is a Computer Science student and cybersecurity enthusiast in Malaysia with 6 years of Excel and Google Sheets experience. He specializes in VBA, macro automation, and SaaS-focused workflow guides. His background includes university data science projects, and he enjoys using macros to solve complex spreadsheet problems.
We will be happy to hear your thoughts

      Leave a reply


      Excel Insider
      Logo