+ Reply to Thread
Results 1 to 5 of 5

Conditional format if not workday

  1. #1
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2013
    Posts
    137

    Conditional format if not workday

    Hi
    Maybe I'm getting a blank, maybe the answer is so easy, but lately I canīt solve this:

    How do I use conditional format to change cell color if cell value (date) is not workday?

    Any help would be nice

    Thank you all
    Last edited by ioncila; 05-26-2009 at 12:42 PM. Reason: SOLVED

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Conditional format if not workday

    Good afternoon ioncila

    Quote Originally Posted by ioncila View Post
    How do I use conditional format to change cell color if cell value (date) is not workday?
    If the target cell is A1, then set the dropdown to Formula Is and use this formula :
    =OR(WEEKDAY(A1)=7,WEEKDAY(A1)=1)

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2013
    Posts
    137

    Re: Conditional format if not workday

    Thanks for the reply but my issue is more deeply (my fault if I didn't say it it cleary).

    What you have suggested I already did but I have also a range of holidays that are not workdays too.

    What I'm trying to avoid is a OR function to large.

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Conditional format if not workday

    Hi ioncila
    Quote Originally Posted by ioncila View Post
    What I'm trying to avoid is a OR function to large.
    In which case, I assume you have a list somewhere of non-working days?
    Still assuming that the day to test is in A1 and your list of non-working days is occupying the range E1 - E10, then something like this should work OK :
    =COUNTIF(E1:E10,A1)>=1

    HTH

    DominicB

  5. #5
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2013
    Posts
    137

    Re: Conditional format if not workday

    That's it.

    Thank you very much

    My regards, Ioncila

+ 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