+ Reply to Thread
Results 1 to 2 of 2

How can I change the color of a cell if its value equals another at a different xl file?

  1. #1
    Registered User
    Join Date
    10-18-2013
    Location
    Miami
    MS-Off Ver
    Excel 2003
    Posts
    1

    How can I change the color of a cell if its value equals another at a different xl file?

    How can I change the color of a A1 to yellow, when its value equals another value at a different excel file using vlookup?

    I'm trying to apply a formula because I don't know VB.

    The logic goes something like this:

    If A1 = a value or text located anywhere in column B of another excel file, then turn color yellow. If not then stay white.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: How can I change the color of a cell if its value equals another at a different xl fil

    Hi and welcome to the forum

    You can do this with Conditional Formatting.

    However, CF has enough of a problem just referencing another worksheet, let alone another workbook, so I would suggestthat you put your vlookup somewhere in a cell onthe sheet you want the color to change, and then use that as a reference to trigger the color change.

    Your profile says 2003, so I *think* this is right (havnt used CF in 2003 for a while now)
    select Format/Conditional Format, select "use formula" and then use (something like) =A1=B1 where B1 is where you putthe vlookup()
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] If Cell equals certain text, color entire row orange
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-18-2013, 09:15 AM
  2. if cell equals then image file
    By davemojo82 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 02-14-2013, 06:54 PM
  3. File equals cell value problem
    By Dean81 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-11-2012, 06:07 AM
  4. Change cell color if date equals to Friday
    By Kinna in forum Excel General
    Replies: 4
    Last Post: 03-18-2009, 01:58 PM
  5. Format cell color on change, how to change the color in other columns as well?
    By s80NL in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-28-2007, 09:24 PM

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