+ Reply to Thread
Results 1 to 5 of 5

Conditional formatting problem. If a WEEKDAY is a 7 OR a 1

  1. #1
    Registered User
    Join Date
    11-30-2009
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    30

    Conditional formatting problem. If a WEEKDAY is a 7 OR a 1

    Hello,

    I currently have 3 conditioning formats running down the page which highlights a row depending on if its adjacent date is a: 7(sat), 1(sun) or a 2 (mon).

    Seeing as i want 7 and 1 the same colour and i would like the 3rd conditional format to be freed up for another use, i was wondering if there was a way to combine 7 and 1 in my formula so that they could BOTH be the same colour. (Don't know why i didn't do this to begin with actually)

    My current formula is =WEEKDAY($A6)=7 but i would like it if it could be changed into =WEEKDAY($A6)=7,1 or something similar. I'm not too sure how to phrase it though.

    Any help much appreciated

    Thanks guys

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: Conditional formatting problem. If a WEEKDAY is a 7 OR a 1

    Try this: =OR(WEEKDAY($A6)=7, WEEKDAY($A6)=1)

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: Conditional formatting problem. If a WEEKDAY is a 7 OR a 1

    Or this:

    =WEEKDAY(A1,2)>=6

  4. #4
    Registered User
    Join Date
    11-30-2009
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Conditional formatting problem. If a WEEKDAY is a 7 OR a 1

    wow, quick reply. thanks for your help-it works great.


  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Conditional formatting problem. If a WEEKDAY is a 7 OR a 1

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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