+ Reply to Thread
Results 1 to 4 of 4

multiple conditions conditional formatting

  1. #1
    Registered User
    Join Date
    07-09-2011
    Location
    Ohio, United States
    MS-Off Ver
    Excel 2003
    Posts
    2

    multiple conditions conditional formatting

    I would like to take a worksheet and on every row where the (columns) "LVL", "ODATE", and "FROM" are the same, have that row of data fill with red. I would prefer the fill to change, I could not demonstrate that in the example below.

    Example: What I have

    MEMBER LVL ODATE FROM UNTIL
    NATUNLDT 01 151105 00:01 03:00
    NEWHIRE 01 151105 06:05 06:59
    WEO3DWVI 01 151105 07:05 07:55
    WEO3CASH 01 151105 09:30 03:00
    WEO3PERB 01 151105 09:55 17:00
    FTPSCKUG 01 151105 12:05 04:57
    WEO2JP5C 01 151105 12:05 04:55
    FTPSOASG 01 151105 12:30 16:57
    WEODCNTS 01 151105 17:00 04:45
    WEO3PW13 01 151105 17:00 02:45
    WEO5MS33 01 151105 17:00 04:30
    WEO5R35T 01 151105 17:00 03:55
    FTPSCKRG 01 151105 18:30 04:57
    DYN2STA2 01 151105

    Example: What I want

    MEMBER LVL ODATE FROM UNTIL
    NATUNLDT 01 151105 00:01 03:00
    NEWHIRE 01 151105 06:05 06:59
    WEO3DWVI 01 151105 07:05 07:55
    WEO3CASH 01 151105 09:30 03:00
    WEO3PERB 01 151105 09:55 17:00
    FTPSCKUG 01 151105 12:05 04:57
    WEO2JP5C 01 151105 12:05 04:55

    FTPSOASG 01 151105 12:30 16:57
    WEODCNTS 01 151105 17:00 04:45
    WEO3PW13 01 151105 17:00 02:45
    WEO5MS33 01 151105 17:00 04:30
    WEO5R35T 01 151105 17:00 03:55

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: multiple conditions conditional formatting

    See attached example.

    I used this formula, authored while A1 was selected, applied to columns A:E

    Please Login or Register  to view this content.

    That defines a single rule - if you want multiple colors, you would need multiple rules. Does this make sense?
    Attached Files Attached Files
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: multiple conditions conditional formatting

    Selecting your range (i.e. A2:E15) Conditional Formatting >New Rule>Use Formula

    =COUNTIFS($B$2:$B$15,$B2, $C$2:$C$15,$C2, $D$2:$D$15,$D2)>1

    Not sure what you mean by "I would prefer the fill to change"
    Do you mean that you want sets of matching values to change to a different color (i.e. set 1 is green, set 2 is blue, set 3 is red)? I think that would require VBA.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: multiple conditions conditional formatting

    Okay, decided to work through it with formula's. You will, as the General said, need to set up a color format for each set of duplicates, triplicates, etc but, is possible with a few helper columns that you can hide.

    In G2 copied down

    =COUNTIFS($C$2:$C$15,$C2, $D$2:$D$15,$D2, $E$2:$E$15,$E2)

    Created a concatenated string of the columns you need to match in Column A

    A2= C2&D2&E2

    In H2 copied down

    =IF(G2>1, IF(COUNTIFS($C$2:C2,C2,$D$2:D2,D2,$E$2:E2,E2)>1, INDEX($H$1:H1, MATCH(C2&D2&E2,$A$1:$A1,0)), MAX($H$1:H1)+1),"")

    Then with conditional formatting >New Rule>Use Formula

    = $H2=1 Format as red bold
    then
    =$H2=2 Format as Blue bold
    and so on for as many duplicates as you think you will have
    Attached Files Attached Files

+ 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 with multiple conditions
    By wburbage in forum Excel General
    Replies: 2
    Last Post: 06-24-2014, 02:10 PM
  2. [SOLVED] conditional formatting -multiple conditions
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-31-2013, 05:51 PM
  3. Conditional Formatting with multiple conditions
    By naaz in forum Excel General
    Replies: 5
    Last Post: 06-05-2012, 03:21 AM
  4. Conditional Formatting using VBA for multiple conditions
    By stephboucher in forum Excel General
    Replies: 0
    Last Post: 01-18-2011, 10:13 AM
  5. Conditional formatting using multiple conditions
    By jfarlow in forum Excel General
    Replies: 3
    Last Post: 03-20-2009, 08:54 AM
  6. Multiple Conditions for Conditional Formatting
    By horton in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-03-2008, 02:58 AM
  7. Multiple conditions in Conditional Formatting
    By guilbj2 in forum Excel General
    Replies: 0
    Last Post: 06-28-2006, 04:09 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