+ Reply to Thread
Results 1 to 6 of 6

Function for validating multiple text values -- Conditional formatting rule with Formula

  1. #1
    Registered User
    Join Date
    02-08-2019
    Location
    Los Angeles
    MS-Off Ver
    MAC 16.21.1
    Posts
    7

    Function for validating multiple text values -- Conditional formatting rule with Formula

    Hi folks,

    I'm trying to create a conditional formatting rule with a custom formula.

    An IF OR function or ISNUMBER-SUMPRODUCT function might work but having troubles getting the function to work.

    Here's the breakdown:
    Lets say there's a value is in A1 and three potential values in Column B that relate to the value in A1. I'm trying to have a function that says:
    IF value A1="Pop Music" and B2="Justin Bieber" or B2="Taylor Swift" or B2="Bruno Mars" -- if no match highlight row red

    One thing to note is that A1 can be many genres of music -- Rap, Rock, etc. so the function will have many qualifiers. Column B values to validate will change per different genres.

    IF value A1="Rap" and B2="YG" or B2="Travis Scott" or B2="Jay Z" -- if no match highlight row red
    IF value A1="Rock" and B2="Nirvana" or B2="Rolling Stones" or B2="The Who" -- if no match highlight row red

    Thank you for your help in advance!

    Best,
    V

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: Function for validating multiple text values -- Conditional formatting rule with Formu

    you could make a list of those details
    column A = genera
    Column B the names
    and then use
    COUNTIFS()
    see example
    Attached Files Attached Files
    Last edited by etaf; 02-08-2019 at 04:51 PM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    02-08-2019
    Location
    Los Angeles
    MS-Off Ver
    MAC 16.21.1
    Posts
    7

    Re: Function for validating multiple text values -- Conditional formatting rule with Formu

    Hi Etaf,

    This worked great, thank you !

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: Function for validating multiple text values -- Conditional formatting rule with Formu

    you are welcome

  5. #5
    Registered User
    Join Date
    02-08-2019
    Location
    Los Angeles
    MS-Off Ver
    MAC 16.21.1
    Posts
    7

    Re: Function for validating multiple text values -- Conditional formatting rule with Formu

    Hi Etaf,

    Quick question, how could I use similar excel logic above to include conditional formatting for a value that does not equal the above condtions?

    IF value A1="Rap" and DOES NOT EQUAL B2="Brittney Spears" or B2="Bono" or B2="Boys to Men" -- if no match highlight row red.

    Thanks in Advance,

    Vince

  6. #6
    Registered User
    Join Date
    02-08-2019
    Location
    Los Angeles
    MS-Off Ver
    MAC 16.21.1
    Posts
    7

    Re: Function for validating multiple text values -- Conditional formatting rule with Formu

    Nevermind, figured it out.

    Easy as:
    =COUNTIFS($U:$U,"<>"&$G12,$V:$V,"<>"&$H12)

    Ty!

+ 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. Multiple Rule Conditional Formatting
    By clm11115 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-31-2017, 12:28 AM
  2. [SOLVED] Conditional formatting rule - based on values in a table
    By John Steel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-08-2017, 01:48 PM
  3. Conditional Formatting Rule with Formula Applied to Multiple Cells
    By Fabi1963 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-31-2015, 06:54 AM
  4. [SOLVED] Conditional formatting to highlight multiple values with single rule?
    By chapzboy in forum Excel General
    Replies: 13
    Last Post: 05-28-2015, 03:02 AM
  5. [SOLVED] Multiple conditions in One rule of Conditional Formatting
    By tanmayjajoo in forum Excel General
    Replies: 10
    Last Post: 08-13-2014, 12:53 PM
  6. [SOLVED] Multiple Rule Conditional Formatting
    By jbenkov in forum Excel General
    Replies: 8
    Last Post: 11-30-2012, 12:21 PM
  7. Changing Text Format with Formula or Conditional Formatting with multiple values
    By gerodr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-22-2011, 08:54 AM

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