+ Reply to Thread
Results 1 to 6 of 6

Conditional Format based on VLookUp success

  1. #1
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    583

    Conditional Format based on VLookUp success

    I'm going in circles.

    Two sheets. The second has something of a directory organized into a table ("tblDirectory") with vendor names in a Column.

    On the first sheet, in a column, the user (me) types in the name of the vendor.

    I want the cell to show up with a changed background color if the name of the vendor is not found in the second sheet.

    The formula I used is
    Please Login or Register  to view this content.
    I thought that if it evaluated to "True" then the search term was not found and the cell would be conditionally formatted, but so far nothing.

    The extract from the same formula of strictly the VLookUp statement works perfectly in the next column adjacent to the column I wish to run the conditional format, in that it finds the target (the name of the vendor) when it is found (If the vendor name is not found, an IFERROR shows "Not Found", but I wish to eliminate this extra column in favor of conditional formatting).

    Thoughts?

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

    Re: Conditional Format based on VLookUp success

    that should work in principle
    with out the "" around the formula

    Not sure what your names refer to in actual cells

    and what range you have applied the conditional formatting to

    In Range terms - this works
    =ISERROR(VLOOKUP(G1,A2:B10,1,FALSE))

    If the value in G1 is not found in column A then its true

    you probably use a countif()

    =COUNTIF(A2:A10,G1)=0

    as you are only looking to see if the Value in Column A matches G1
    And so if it does not match the count will be zero
    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
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    583

    Re: Conditional Format based on VLookUp success

    THose quotation marks get placed around the formula by Excel!

    I will do some tinkering and be back with the results, I appreciate the input.

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

    Re: Conditional Format based on VLookUp success

    THose quotation marks get placed around the formula by Excel!
    not seen that before when using tables

  5. #5
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    583

    Re: Conditional Format based on VLookUp success

    Thanks etaf - apparently Conditional Formatting pukes with table references. I altered [@Vendor] to the cell reference ("AS3") and tblDirectory to tab and column reference (Directory!$A:$A) and all works fine. Ought to be a warning flag "DO NOT use table references!" Thanks for putting me on the right track-

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Conditional Format based on VLookUp success

    Thanks for that

+ 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] Add conclusion about batch success based on the success of its steps
    By abreet in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-15-2015, 05:32 AM
  2. MAJOR UPDATE - Please help!
    By JJFletcher in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-28-2015, 05:49 AM
  3. How to conditional format cells based on vlookup/match formula
    By dougebowl in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-21-2013, 06:50 PM
  4. Replies: 2
    Last Post: 09-26-2012, 04:43 AM
  5. [SOLVED] conditional format based whether VLOOKUP finds a value
    By merlyn45 in forum Excel General
    Replies: 3
    Last Post: 05-14-2012, 02:42 PM
  6. Replies: 0
    Last Post: 05-20-2011, 02:33 PM
  7. Replies: 1
    Last Post: 07-11-2008, 06:38 AM

Tags for this Thread

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