How to Use Excel Conditional Formatting for a 72-Hour Date and Time Range
Question details
The user wants to apply conditional formatting to highlight cells containing dates or exact date-time values that fall within the next 72 hours (3 days).

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking upcoming deadlines or schedules by automatically changing the color of cells that occur within the next 72 hours relative to the current date and time.
- Observed behavior
- The conditional formatting rules fail to trigger or highlight the wrong columns due to mismatched relative references, misaligned 'Applies to' ranges, or incorrectly formatted date and time values.
Ensure that your target cells contain valid Excel serial date and time values rather than plain text, and identify the exact top-left cell of your data range so your formula references align perfectly.
Highlight Whole Dates Within the Next 3 Days (72 Hours)
Use the TODAY() function within an AND statement to conditionally format standard date cells that fall within a 3-day window.
This approach works best when your spreadsheet tracks entire days without specific hour or minute timestamps. It compares the date in the cell against the current calendar day.
Highlight the cells containing the dates you want to format. For example, click and drag to select the range C1:J10. Note that column C is your starting column.
Navigate to the Home tab on the ribbon, click 'Conditional Formatting', and select 'New Rule' from the drop-down menu.
Choose 'Use a formula to determine which cells to format'. In the formula box, enter `=AND(C$1>=TODAY(), C$1<=TODAY()+3)` (replace C$1 with the top-left cell of your actual selection).
Click the 'Format' button, navigate to the Fill tab to choose a highlight color, and click 'OK' twice to apply the rule.

Highlight Exact Date and Time Values Within 72 Hours
Use the NOW() function to track 72-hour deadlines precisely down to the current hour and minute.
Easily Track Approaching Deadlines with WPS Spreadsheet
WPS Spreadsheet fully supports advanced mathematical conditional formatting, allowing you to use TODAY() and NOW() functions to effortlessly highlight your 72-hour schedules. The intuitive rules manager makes adjusting complex cell ranges quick and error-free.
- 1. Highlight the date range: Open your file in WPS Spreadsheet and select the cells containing your dates or times.
- 2. Open Conditional Formatting: Go to the Home tab, click the Conditional Formatting icon, and select 'New Rule'.
- 3. Input the time-tracking formula: Select 'Use a formula to format cells' and type your 72-hour formula, such as `=AND(C1>=NOW(), C1<=NOW()+3)`.
- 4. Format and apply: Click 'Format' to pick a background color, then hit 'OK' to instantly view your highlighted upcoming deadlines.

Frequently Asked Questions
Why is my conditional formatting highlighting the wrong cells entirely?
This almost always occurs when the starting cell in your formula does not match the starting cell of the 'Applies to' range. If your selection starts at C1, but your formula is written as =AND(A1>=TODAY()...), Excel will apply the formatting with a two-column offset.
How do I exclude specific columns from being highlighted?
You can exclude columns by modifying the 'Applies to' range in the Conditional Formatting Rules Manager. Instead of selecting an entire row, define multiple separated ranges using a comma. For example, to exclude column K, set the applies to range to =$C$1:$J$1, $L$1:$Z$1.
What is the difference between TODAY() and NOW() in conditional formatting?
The TODAY() function only tracks the current calendar date starting at midnight, whereas NOW() includes the specific current time (hour and minute). Use NOW() if you need to calculate exactly 72 hours from the current moment.
Why won't cells containing manually typed dates change color?
If a date or time is formatted as plain text, Excel cannot evaluate it mathematically to check if it falls within the next 3 days. Ensure your cells are formatted as Dates or Custom Date-Time values, and re-enter them so the software recognizes them as valid serial numbers.




