+ Reply to Thread
Results 1 to 9 of 9

problems with conditional formatting with array formula

  1. #1
    Forum Contributor
    Join Date
    12-14-2016
    Location
    UAE
    MS-Off Ver
    MS OFFICE 2016 & 2019
    Posts
    154

    Thumbs up problems with conditional formatting with array formula

    hi,

    I have a leave planning sheet on that if employee plan their leaves by entering the dates it will highlight the color has green on leave calendar and
    holiday will highlight has grey color.

    What I need to get results If employee applying their leaves falls on holidays of their leave schedule the holidays color should to change has purple.

    Please see the sample attached file and pictures.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: problems with conditional formatting with array formula

    instead of returning either 99 for a holiday or 1 or any other number for vacation, try to add those 2 numbers in order to get more information and use it in your conditional formatting.
    For example, for a leave falloing on a holiday, you'll end up with a result of 100 that you can use to trigger your purple color.
    Regards
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Forum Contributor
    Join Date
    12-14-2016
    Location
    UAE
    MS-Off Ver
    MS OFFICE 2016 & 2019
    Posts
    154

    Re: problems with conditional formatting with array formula

    hi p24leclerc ,

    thanks for your reply your example is nice if u dont mind can u make it on sample file.

  4. #4
    Forum Contributor
    Join Date
    12-14-2016
    Location
    UAE
    MS-Off Ver
    MS OFFICE 2016 & 2019
    Posts
    154

    Re: problems with conditional formatting with array formula

    can u pls give me the formula to add both values

    i tried to add but i can get it pls help.
    Last edited by Anisusa; 04-26-2017 at 10:52 AM.

  5. #5
    Forum Contributor
    Join Date
    12-14-2016
    Location
    UAE
    MS-Off Ver
    MS OFFICE 2016 & 2019
    Posts
    154

    Re: problems with conditional formatting with array formula

    any body please help....

  6. #6
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: problems with conditional formatting with array formula

    see attached workbook. I modified January month for you.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    12-14-2016
    Location
    UAE
    MS-Off Ver
    MS OFFICE 2016 & 2019
    Posts
    154

    Re: problems with conditional formatting with array formula

    Hi p24leclerc ,

    its perfect working like charm .. thanks a lot for your great help.

    you did any array formula modify or only by conditional formatting can u please explain what your trick did on file pls.

  8. #8
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: problems with conditional formatting with array formula

    First I splitted your formula into 2 parts.
    The first part check if it is a holiday and return 99 if so. If not, the value returned is 0.
    The second part of the formula check what type of leave it is. So it can return 1, 4 or 5.
    If the actual day is not a holiday, the formula return either 0,1,4 or 5 depending if that person is not taking a leave and what type of leave it is.
    If the actual day is a holyday, the formula return 99 that is added to the value returned from the leave part (either 0,1,4 or 5).
    You end up with the following possiblities: 0,1,4,5,99,100,103 or 104 where
    0 means a normal day
    1 or 100 (99+1) means type 1 leave (day being or not a holiday)
    4 or 103 (99+4) means type 4 leave (day being or not a holiday)
    5 or 104 (99+5) means type 5 leave (day being or not a holiday)

    Finally, I created a conditional format for each of these values.
    Hope this is clear enough for you
    Regards

  9. #9
    Forum Contributor
    Join Date
    12-14-2016
    Location
    UAE
    MS-Off Ver
    MS OFFICE 2016 & 2019
    Posts
    154

    Re: problems with conditional formatting with array formula

    wow nice trick really super.. thanks a lot

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Conditional Formatting Text based on array values of adjacent array.
    By Quasar82 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-27-2017, 09:54 AM
  2. Replies: 4
    Last Post: 12-18-2016, 08:57 AM
  3. [SOLVED] Sum by Conditional Formatting based on Array formula
    By ChrisBITGROUP in forum Excel General
    Replies: 4
    Last Post: 06-02-2014, 07:55 PM
  4. Conditional Formatting Problems when using formula
    By notableaudio in forum Excel General
    Replies: 4
    Last Post: 04-02-2014, 10:37 PM
  5. [SOLVED] Conditional Formatting with array formula
    By kadams99 in forum Excel General
    Replies: 5
    Last Post: 07-03-2013, 11:48 AM
  6. Conditional formatting with array formula?
    By tone640 in forum Excel General
    Replies: 9
    Last Post: 08-19-2011, 08:00 AM
  7. Conditional Formatting/Array Formula
    By SJT in forum Excel General
    Replies: 2
    Last Post: 07-24-2006, 05:15 PM

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