+ Reply to Thread
Results 1 to 11 of 11

Applying Conditional formatting with 3 criterias

  1. #1
    Forum Contributor
    Join Date
    10-16-2010
    Location
    bangalore
    MS-Off Ver
    Excel 2019
    Posts
    288

    Applying Conditional formatting with 3 criterias

    Hi,

    I have a calendar which consist the dates from 1st Jul to 31st July. Here in in this i need to highlight the dates from 20th Jul to 31st July with the below 3 conditions by using conditional format

    1. All working days comes from 20th to 31st Jul to be highlighted with Blue color except last working day.
    2. Last working day to be highlighted with Green
    3. Weekend dates to be highlighted with RED.

    it would be helpful if you could please help me with the formula. THanks in advance.....

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,321

    Re: Applying Conditional formatting with 3 criterias

    Please see yellow banner at top of page on how to attach a sample workbook.

  3. #3
    Forum Contributor
    Join Date
    10-16-2010
    Location
    bangalore
    MS-Off Ver
    Excel 2019
    Posts
    288

    Re: Applying Conditional formatting with 3 criterias

    i am not able to attach the samples as its restricted from my official system.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,321

    Re: Applying Conditional formatting with 3 criterias

    With dates in A1 to AE

    T1=20/7/2021

    =T1=EOMONTH(T1,0) Green

    =WEEKDAY(T1,2)<6 Blue

    =WEEKDAY(T1,2)>=6 Red

  5. #5
    Forum Contributor
    Join Date
    10-16-2010
    Location
    bangalore
    MS-Off Ver
    Excel 2019
    Posts
    288

    Re: Applying Conditional formatting with 3 criterias

    Its perfectly works as per my requirement. Thanks a lot...

  6. #6
    Forum Contributor
    Join Date
    10-16-2010
    Location
    bangalore
    MS-Off Ver
    Excel 2019
    Posts
    288

    Re: Applying Conditional formatting with 3 criterias

    Hi,

    Sorry for troubling you again, i have done some alteration in this formula, out of 3 conditions last condition is not working

    I have the below 3 formulas in my conditional formatting. Can you please check and suggest why the last one is not giving result.

    1.=AND(D$4>=WORKDAY($AY$19,1)+1,WEEKDAY(D$4,2)<6) - Blue Color - This is working fine.
    2.=IF(D$4>$AX$11+1,OR(WEEKDAY(D$4)=7,WEEKDAY(D$4)=1)) Red Color - This is working fine
    3 =T1=WORKDAY(EOMONTH(T1,0)+1,-1) Green - But this is the only formula not working....

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2508 (Windows 11 Home 24H2 64-bit)
    Posts
    91,940

    Re: Applying Conditional formatting with 3 criterias

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,321

    Re: Applying Conditional formatting with 3 criterias

    New rule for GRREN

    =T1=WORKDAY(EOMONTH(T1,0)+1,-1)
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    10-16-2010
    Location
    bangalore
    MS-Off Ver
    Excel 2019
    Posts
    288

    Re: Applying Conditional formatting with 3 criterias

    Thanks for sharing this....But this formula is directly applied from the date 20th....instead can we apply this from the first date of the month and result can highlight from 20th onwards??

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,321

    Re: Applying Conditional formatting with 3 criterias

    Use

    =AND(A1>=DATE(2021,7,20),WEEKDAY(A1,2)>=6) Red

    Similar for Blue

    And change CF range to be A!:AE

  11. #11
    Forum Contributor
    Join Date
    10-16-2010
    Location
    bangalore
    MS-Off Ver
    Excel 2019
    Posts
    288

    Re: Applying Conditional formatting with 3 criterias

    Done...Now its fine....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 applying to the row above
    By Kryan1 in forum Excel General
    Replies: 6
    Last Post: 07-15-2019, 06:55 AM
  2. Need Help With Excel Conditional Formatting Not Applying
    By lcp03o in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-16-2018, 06:39 AM
  3. [SOLVED] Applying Conditional Formatting
    By James__S in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-27-2015, 07:55 PM
  4. [SOLVED] Conditional Formatting not applying
    By Lovelylou79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2013, 11:01 PM
  5. Conditional formatting on non-empty cells - VBA
    By kotonikak in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-18-2013, 02:57 PM
  6. conditional formatting, duplicates with 3 criterias
    By hyperion007 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-22-2010, 08:22 AM
  7. [SOLVED] conditional formatting with more than three criterias
    By katamy in forum Excel General
    Replies: 2
    Last Post: 10-24-2005, 02:05 PM

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