+ Reply to Thread
Results 1 to 5 of 5

AND/OR Conditional Formatting with Multiple Criteria

  1. #1
    Registered User
    Join Date
    11-22-2019
    Location
    MI
    MS-Off Ver
    2016
    Posts
    30

    Question AND/OR Conditional Formatting with Multiple Criteria

    Hey guys,

    I have a run into a road block on a particular formula that I am trying to figure out. I believe what I am trying to do would best be suited to use AND/OR functions but I'm not entirely sure how it would work or if that's even the right function to use.

    So I am trying to use a conditional formatting formula to highlight cells that compare two different cells text input. This is a little hard to explain but I will give it a try and I will add an example file to hopefully help.

    Essentially there a 4 different sets of criteria and each criteria has multiple text options. So if Table 1 shows one of the text options from one of the criteria but Table 2 either shows one of the other criteria's options or is empty it will highlight the cell in Table 1.

    There a 4 criteria sets listed below and also on the example file.

    Criteria 1: -SHRA, SHRA, +SHRA, -RA, RA, +RA, DZ, VCSH
    Criteria 2: -TSRA, TSRA, +TSRA, TSRAGR, VCTS
    Criteria 3: FG, BR, HZ
    Criteria 4: NSW

    So as an example if any of the items from Criteria 1 are in the 1st cell of Table 1 but Table 2 shows one of the items from Criteria 2 then it would highlight Table 1. This would also have to work if Table 1 had anything from Criteria 1, 2, or 3 and Table 2 was empty and vice versa. Criteria 4 should only be correct if both tables show NSW or are empty. Another example would be Table 1 showing NSW and Table 2 shows FG, Table 1 should be highlighted.

    I hope that makes sense and if it doesn't please feel free to ask for more clarification.

    Thanks for any help!

    -Chris
    Attached Files Attached Files
    Last edited by Kirbstomp1287; 04-23-2020 at 12:10 PM. Reason: Title

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux - O365
    Posts
    12,694

    Re: Noob trying to use AND/OR

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

  3. #3
    Registered User
    Join Date
    11-22-2019
    Location
    MI
    MS-Off Ver
    2016
    Posts
    30

    Re: Noob trying to use AND/OR

    Sorry about that! I have updated the title.
    Last edited by Pepe Le Mokko; 04-25-2020 at 04:41 AM.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    14,297

    Re: AND/OR Conditional Formatting with Multiple Criteria

    Thank You for changing the title.
    This proposal employs two helper columns (E:F) which may be moved and/or hidden for aesthetic purposes.
    The helper columns are populated using: =IF(B3="","",INDEX(N$2:Q$2,AGGREGATE(15,6,(COLUMN(N$2:Q$2)-COLUMN(M$2))/(N$3:Q$10=B3),1)))
    The conditional formatting (yellow fill) formula is: =OR(E3<>F3,AND(E3="Criteria 4",F3="Criteria 4"),AND(E3="",F3=""))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux - O365
    Posts
    12,694

    Re: AND/OR Conditional Formatting with Multiple Criteria

    FYI you can use the "Quick reply" window to avoid quoting posts unnecessarily

+ 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. Hello everybody from a noob
    By Marcorex in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 04-14-2020, 03:05 AM
  2. hello all i am a noob at everything
    By Beattle Juice in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-17-2016, 07:21 PM
  3. Another Noob In....
    By alex_00c in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 06-16-2015, 04:50 AM
  4. Noob
    By JillieBean in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 06-12-2015, 05:21 PM
  5. Hi from a Noob
    By Johndinho in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-13-2012, 12:28 PM
  6. Noob here
    By writeguy37 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-28-2008, 09:20 AM
  7. VBA Noob ,please !
    By kamiland in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-17-2007, 02:53 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