Function Problems

Highlight Excel Columns Every 14 Days with Conditional Formatting

Huma Ashraf ChHuma Ashraf Ch Nov 14, 2026 869 views

Question details

Highlight columns at recurring 14-day intervals using dates in a header row.

Highlight Excel Columns Every 14 Days with Conditional Formatting
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the data range

Select B2:AF100, or select your own range starting in the column beneath the first date header.

2
Create a formula rule

Go to Home > Conditional Formatting > New Rule, then choose the option to use a formula to determine which cells to format.

3
Enter the formula

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.

4
Choose the highlight

Select Format, choose a fill color, and confirm the dialogs to apply the rule.

Highlight columns every 14 days relative to today
How the dates are matched: The rule highlights individual columns whose dates are 14-day multiples from today; it does not color alternating two-week bands.
WPS Spreadsheet

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. 1. Open the worksheet: Open your workbook in WPS Spreadsheet and check that the date headers are stored as dates.
  2. 2. Select the data range: Select the cells below the headers, such as B2:AF100 when the dates start in B1.
  3. 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. 4. Set the format: Choose a fill color in the formatting options and confirm the rule.
Highlight columns at recurring 14-day intervals.Open and edit Microsoft Excel XLSX and XLS files.Choose a fill color that makes matching dates easy to spot.
microsoft office alternative - wps office

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.