+ Reply to Thread
Results 1 to 3 of 3

How to mark cells based on date in other cell using conditional formatting

  1. #1
    Registered User
    Join Date
    11-01-2012
    Location
    Fosen, Norway
    MS-Off Ver
    Excel 2010
    Posts
    1

    How to mark cells based on date in other cell using conditional formatting

    Hei,

    In my spreadsheet i have columns representing one date of the month. When weekend occur, i want that column to be formated automatically. When holiday occur, i want another formatting.

    Best to see in the attachment.

    Example: I know that 5. and 6. og january are a weekend. Then I want Cells F6:G26 to be marked yellow.

    Example 2: I know that the 17. is a Holiday. Then I want cells R6:G26 to be marked red.

    List of holidays in Start! - sheet.

    example for excelforum.xlsx

    Martin

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How to mark cells based on date in other cell using conditional formatting

    For holidays use this

    Select cell January!B6
    Use Conditional Formatting with this formula

    =(DAY(B$5)=DAY(INDEX(Start!$E$5:$E$16,MATCH(TEXT($A$2,"mmmm"),Start!$C$5:$C$16,0),1)))

    and format as Red
    Use Format Painter to copy to other cells.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How to mark cells based on date in other cell using conditional formatting

    For weekdays

    New Condtional Formatting formula

    =(WEEKDAY(B5,2)>5)

    and format as yellow

    Use Format Painter to copy to other cells

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1