+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting with multiple criteria

  1. #1
    Registered User
    Join Date
    11-25-2016
    Location
    Warrington
    MS-Off Ver
    2010
    Posts
    60

    Conditional Formatting with multiple criteria

    Hello!

    I hope this is in the correct section.

    I am hoping you can help me with some conditional formatting on some cells of mine.

    Below is my spread sheet, the formatting needs to be on the sheets named with a month, on each month at the bottom of the sheet there is a table with the title "Pause Data For Yesterday".

    Within this table I have "Pause Type" and "Time in Pause".

    I want my conditional formatting to highlight the "Time in pause" box read with bold white writing when the word "30 Minute Lunch" in the column named "pause Type" is present and when the column "Time in pause" is greater than 00:30:30

    I have tried using the =AND function and the =SEARCH function in the conditional formatting but I cant get it to work.

    Can anyone help?
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,852

    Re: Conditional Formatting with multiple criteria

    The correct formula is

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    applied to the range Y162:Y413.

    If you still can't get it to work, attach your attempt along with some sample data populated. I tested this formula by typing in values to the appropriate cells, but didn't take the time to reverse engineer your formulas.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    11-25-2016
    Location
    Warrington
    MS-Off Ver
    2010
    Posts
    60

    Re: Conditional Formatting with multiple criteria

    Excellent! that worked perfectly

    Thank you very much!

  4. #4
    Registered User
    Join Date
    11-25-2016
    Location
    Warrington
    MS-Off Ver
    2010
    Posts
    60

    Re: Conditional Formatting with multiple criteria

    Sorry I spoke to soon!

    it appears to just be highlighting the box when it has a time and the words in, it's not doing it when it's greater than the specified time.

    I have put some sample data in and I only want it to highlight the following criteria:
    30 minute lunch - Greater than 0:30:30 (30 mins and 30 seconds)
    1st Break - Greater than 0:15:30
    2nd break - Greater than 0:15:30

    is this do-able?
    Attached Files Attached Files

  5. #5
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,625

    Re: Conditional Formatting with multiple criteria

    Change your CF formulae to this pattern:

    =AND(W162="1st Break",Y162>TEXT(TIME(0,15,30),"h:mm:ss"))
    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.

  6. #6
    Registered User
    Join Date
    11-25-2016
    Location
    Warrington
    MS-Off Ver
    2010
    Posts
    60

    Re: Conditional Formatting with multiple criteria

    Thank you!

    perfect!

    your both very helpful

  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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,625

    Re: Conditional Formatting with multiple criteria

    You're welcome!

+ 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. [SOLVED] Conditional Formatting over multiple cells with multiple criteria validator
    By effendrew in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-31-2015, 05:05 PM
  2. Replies: 5
    Last Post: 12-28-2012, 02:06 PM
  3. [SOLVED] Conditional Formatting with multiple criteria
    By RLSaSSy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-14-2012, 10:52 AM
  4. Conditional Formatting with multiple AND/OR criteria
    By camdameron in forum Excel General
    Replies: 7
    Last Post: 11-02-2010, 02:03 PM
  5. conditional formatting, multiple criteria
    By Lara in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2006, 02:20 PM
  6. [SOLVED] conditional formatting, multiple criteria
    By Lara in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2006, 01:45 PM
  7. [SOLVED] Multiple Criteria for Conditional Formatting
    By Dave Y in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-21-2006, 02:45 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