+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting, does not contain text from a range.

  1. #1
    Registered User
    Join Date
    03-10-2015
    Location
    Banjaluka
    MS-Off Ver
    2007
    Posts
    11

    Conditional Formatting, does not contain text from a range.

    Greeting fellow members. I'm in need of a helping hand when it comes to Conditional Formatting combined with Data Validation.

    I have a column with drop list Data Validation based on an array of cells. I'm looking for a way of conditional formatting for that column so that it applies if the cell does not contain a valid input. Basically I want to replace the little data validation "wrong input triangle" with conditional.

    In other words, i have a sheet specified for the data validation, called "DataValidation", and I want the conditional formatting on another sheet to apply if the cell does not match it.

    This column to be formated

    Column A
    Input1
    Input9
    Input3
    Input7
    Input5

    if it doesn't contain any of these entries (this column is on another sheet)

    Column A
    Input1
    Input2
    Input3
    Input4
    Input5


    There is over 70 entries in the data validation array.

    Hope I explained it well enough. Is this doable?

    Thanks up front.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Conditional Formatting, does not contain text from a range.

    Are you really using XL2003 as your profile states, or have you forgotten to update it? The approach is slightly different with versions before XL2007.

    Pete

  3. #3
    Registered User
    Join Date
    03-10-2015
    Location
    Banjaluka
    MS-Off Ver
    2007
    Posts
    11

    Re: Conditional Formatting, does not contain text from a range.

    Quote Originally Posted by Pete_UK View Post
    Are you really using XL2003 as your profile states, or have you forgotten to update it? The approach is slightly different with versions before XL2007.

    Pete
    Changed it, I'm using XL2007, and the thing I need to get done is in GoogleSheets, so my conditional formatting options are pretty limited. Although not sure if asking for GoogleSheets related help is forbidden here.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Conditional Formatting, does not contain text from a range.

    Okay, you need to set up a named range for the 70 words/phrases on Sheet2 using Formulas | Define Range - assume this is called keywords.

    Then you should select all the cells in column A on Sheet1 (assuming this starts with cell A1) and click on Conditional Formatting | New Rule | Use a formula... , then enter this formula in the dialogue box:

    =ISNA(MATCH(A1,keywords,0))

    Click on the Format button then if you want a red foreground click the Color drop-down on the Font tab and choose red, and click on Bold as well. Click OK twice to exit the dialogue box, and Excel will adjust the cell references to suit all the selected cells.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    03-10-2015
    Location
    Banjaluka
    MS-Off Ver
    2007
    Posts
    11

    Re: Conditional Formatting, does not contain text from a range.

    Quote Originally Posted by Pete_UK View Post
    =ISNA(MATCH(A1,keywords,0))
    Took a bit of modification since GoogleSheets requires use of INDIRECT for defined ranges to work, but worked like a charm. Came up with another way to do it in the meantime via ISERROR VLOOKUP.

    One more question. How would I make the formula you use skip blank cells?

    Thanks a bunch!

    EDIT: Nevermind, adding AND(A1<>"") did it. Gave You rep, mod can lock the thread.
    Last edited by vetrox; 05-24-2016 at 07:30 PM.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Conditional Formatting, does not contain text from a range.

    Thanks for the rep - glad you got it to work.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Pete

+ 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. Formatting Cells with Date or Text Values in a Conditional Formatting Formula
    By Phil Hageman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 09:36 AM
  2. Conditional Formatting, Excel 2010, based on number of a certain text value in a range
    By trueimperfection in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-02-2014, 06:55 AM
  3. [SOLVED] Conditional formatting one range containing text from another range
    By thedeakster in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-01-2013, 05:00 PM
  4. Replies: 1
    Last Post: 06-02-2013, 04:00 PM
  5. [SOLVED] conditional formatting high numbers within text/numerical range
    By Mike Brewer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-24-2013, 11:53 AM
  6. Conditional Formatting via VBA: Change formatting in range based on value of each cell
    By ralphjmedia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 10:37 AM
  7. Replies: 2
    Last Post: 04-12-2013, 09:30 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