Function Problems

Highlight Biweekly Payroll Dates in an Excel Calendar

John WilsonJohn Wilson Nov 14, 2026 869 views

Question details

Highlight dates that fall on a biweekly payroll schedule in an Excel shift work calendar.

Highlight Biweekly Payroll Dates in an Excel Calendar
Product
Microsoft Excel
Device & OS
not provided
Scenario
A shift work calendar changes its displayed year and needs payroll dates highlighted automatically.
Observed behavior
Payroll dates should appear in a distinct color every 14 days as the calendar dates change.
Before you start

Confirm that the calendar cells contain full Excel dates, not just day numbers or text. Choose an unused cell for a known payroll date on or before the calendar dates you want to highlight.

Solution 1Recommended

Highlight payroll dates with a 14-day conditional formatting rule

Use a known payroll date as an anchor to highlight every subsequent payday, including when the calendar year changes.

The formula below assumes the anchor date is in B1 and C7 is the first cell in the selected calendar range. Replace those references if your layout differs.

Keep the anchor as a fixed, actual payroll date rather than resetting it to January 10 every year. The 14-day cycle continues across year boundaries.

1
Enter a known payday

In an unused cell such as B1, enter a full payroll date, including its year. For example, enter January 10, 2025 if that is a confirmed payday.

2
Select the calendar dates

Select the date cells to format, such as C7:AM7. Make sure C7 is the active cell when creating the rule.

3
Create a formula rule

Go to Home > Conditional Formatting > New Rule, choose Use a formula to determine which cells to format, and enter =AND(ISNUMBER(C7),C7>=$B$1,MOD(C7-$B$1,14)=0).

4
Choose the highlight color

Click Format, choose a fill color, and click OK to save the rule.

5
Apply it to other months

Use Format Painter to copy the formatting to other calendar ranges, or create a corresponding rule for each range. Check Home > Conditional Formatting > Manage Rules and adjust the relative date-cell reference and Applies to range if needed.

Highlight payroll dates with a 14-day conditional formatting rule
Check the calendar year: Dates before the anchor are excluded. If you display an earlier year, use a confirmed payday on or before that calendar period as the anchor.
Highlight payroll dates in WPS

Track Biweekly Payroll Dates in WPS Spreadsheets

Use a formula-based conditional formatting rule in WPS Spreadsheets to color calendar dates that fall every 14 days after a known payday.

  1. 1. Open the calendar: Open the Excel calendar in WPS Spreadsheets and confirm that its date cells contain full dates.
  2. 2. Enter the anchor date: Enter a confirmed payroll date, including the year, in an unused cell such as B1.
  3. 3. Add the rule: Select the calendar range, such as C7:AM7, and open Home > Conditional Formatting > New Rule. Choose the formula-based rule option and enter =AND(ISNUMBER(C7),C7>=$B$1,MOD(C7-$B$1,14)=0).
  4. 4. Set the color: Choose a fill color in the rule's formatting options, save the rule, and apply equivalent formatting to the remaining calendar ranges.
Highlight biweekly paydays as calendar dates changeOpen and edit Microsoft Excel XLSX and XLS filesUse familiar spreadsheet formulas and formatting toolsWork with a free, easy-to-use office suite
microsoft office alternative - wps office

Frequently Asked Questions

Will the payroll highlights update when I change the calendar year?

Yes, if the calendar cells recalculate as full dates and the conditional formatting rule remains applied. Keep the anchor as a confirmed payroll date so the 14-day cycle continues across years.

Why are the wrong cells highlighted?

Check that the formula's C7 reference matches the first cell of the selected range and that $B$1 points to the anchor date. In Excel, review the rule under Home > Conditional Formatting > Manage Rules.

What if my calendar displays only day numbers?

Check the formula bar after selecting a calendar cell. If it contains a full date formatted to show only the day, the rule works; if it contains only a number such as 10, use full dates or adapt the rule to your calendar's date calculation.

Can I use a separate list of payroll dates instead?

Yes. Put full payroll dates on another worksheet, name the list Paydates, and apply a conditional formatting formula such as =COUNTIF(Paydates,C7)>0 to a range starting at C7. Update the list when new payroll dates are added.