Highlight Excel Columns Every 14 Days with Conditional Formatting
Question details
Highlight columns at recurring 14-day intervals using dates in a header row.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet has dates in a header row, and the user wants to highlight matching columns every two weeks.
- Observed behavior
- Columns whose header dates fall at 14-day intervals are highlighted automatically.
Make sure the headers contain actual Excel dates rather than text. Identify the first cell in the range to format and the corresponding date header so you can adjust the formula references.
Highlight columns every 14 days relative to today
Use this rule when highlights should move with the current date.
In this example, dates are in B1:AF1 and the cells to highlight are in B2:AF100. The rule also matches dates before today that are an exact multiple of 14 days away.
Select B2:AF100, or select your own range starting in the column beneath the first date header.
Go to Home > Conditional Formatting > New Rule, then choose the option to use a formula to determine which cells to format.
Enter =IF(ISNUMBER(B$1),MOD(B$1-TODAY(),14)=0,FALSE). Replace B$1 with the header above the first column of your selected range, keeping the dollar sign before the row number.
Select Format, choose a fill color, and confirm the dialogs to apply the rule.

Highlight columns every 14 days from a fixed date
Use a fixed starting date when the highlighted columns should not shift each day.
Highlight 14-day date intervals in WPS Spreadsheet
Use a conditional formatting formula in WPS Spreadsheet to highlight columns according to dates in the header row.
- 1. Open the worksheet: Open your workbook in WPS Spreadsheet and check that the date headers are stored as dates.
- 2. Select the data range: Select the cells below the headers, such as B2:AF100 when the dates start in B1.
- 3. Create the rule: On the Home tab, open Conditional Formatting > New Rule and choose the option to use a formula. Enter =IF(ISNUMBER(B$1),MOD(B$1-TODAY(),14)=0,FALSE), adjusting B$1 to your first date header.
- 4. Set the format: Choose a fill color in the formatting options and confirm the rule.

Frequently Asked Questions
Why are some date columns not highlighted?
Check that the headers are actual dates, not text, and that the formula references the header above the first column in the selected range. In Excel, inspect the rule under Home > Conditional Formatting > Manage Rules.
Will the highlights change each day?
A rule using TODAY() changes as the current date changes when the workbook recalculates. Use a fixed date cell such as $B$1 instead of TODAY() to keep the interval anchored.
How do I include the date headers in the highlight?
Include the header row in the selected range, such as B1:AF100, and use B$1 as the header reference when the range starts in column B.
Does the formula highlight entire two-week bands?
No. MOD(date-start,14)=0 highlights dates at exact 14-day intervals. Alternating two-week bands require a different rule.




