Conditional formatting

Anonymous
2025-06-23T09:13:49+00:00

Hello, how can i highlight cells every 7 days and skip another seven days for a year with the starting day a monday, i saw one formula but it starts on Sunday

Microsoft 365 and Office | Excel | For education | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2025-06-23T11:54:59+00:00

    Hi Loomesh Appadoo, 

    Thank you for contacting Microsoft Community. 

    To apply conditional formatting that highlights every 7 days starting from a Monday and then skips the next 7 days (i.e., alternating weeks) for a full year, you can use a formula-based rule in Excel. You may try this: 

    1. Assume your dates are in column A, starting from cell A2.
    2. Select the range you want to format (e.g., A2:A366 for a full year).

     

    1. Go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format.

     

    1. Enter the following formula: =MOD(INT((A2-DATE(2025,1,6))/7),2)=0
    2. Choose Format and adjust according to your needs

     

    1. Result:

     

    Explanation: 

    • DATE(2025,1,6) is a Monday (January 6, 2025). You can adjust this to your actual starting Monday.
    • (A2 - DATE(...))/7 calculates how many weeks have passed since the starting Monday.
    • INT(...)/7 ensures we’re working with whole weeks.
    • MOD(...,2)=0 highlights every other week (i.e., week 0, 2, 4, etc.).

    This will highlight cells that fall within the first week, third week, fifth week, etc., starting from the specified Monday. 

    I hope this solution works well for your scenario. If you need help adjusting the formula for a different start date or layout, feel free to reach out. 

    Best regards, 

    Demi-N | Microsoft Community Support Specialist

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful