+ Reply to Thread
Results 1 to 10 of 10

Change color on cells if match

  1. #1
    Registered User
    Join Date
    11-24-2018
    Location
    Sweden
    MS-Off Ver
    MS office 360
    Posts
    13

    Change color on cells if match

    Hi,

    I´m looking for a function that look at all the columns in the sheet1 and compare it with a column in sheet2, and if it finds a match (same value) in sheet2 then I want the cell in sheet1 to be filled with color. Any ideas?

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,128

    Re: Change color on cells if match

    You can do that with conditional formatting, use a formula
    =ISNUMBER(MATCH(B2,Sheet2!$A$2:$A$27,0))
    change ranges to suit

  3. #3
    Registered User
    Join Date
    11-24-2018
    Location
    Sweden
    MS-Off Ver
    MS office 360
    Posts
    13

    Re: Change color on cells if match

    Thanks, I changed the range but it didnt work. Can it be because of my values countains letters (A11-41)?

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,128

    Re: Change color on cells if match

    The letters aren't a problem. Can you supply a sample file?

  5. #5
    Registered User
    Join Date
    11-24-2018
    Location
    Sweden
    MS-Off Ver
    MS office 360
    Posts
    13

    Re: Change color on cells if match

    Yes here you go (if the file got attached..)

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,128

    Re: Change color on cells if match

    To upload a workbook, Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  7. #7
    Registered User
    Join Date
    11-24-2018
    Location
    Sweden
    MS-Off Ver
    MS office 360
    Posts
    13

    Re: Change color on cells if match

    I did upload it under manage attachments, but then the button for attachments in relies were empty..
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,128

    Re: Change color on cells if match

    Ok, thanks for the file.
    Select A1:I7 on sheet1 & use this formula
    =ISNUMBER(MATCH(A1,Sheet2!$A$1:$A$11,0))
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    11-24-2018
    Location
    Sweden
    MS-Off Ver
    MS office 360
    Posts
    13

    Re: Change color on cells if match

    It worked! Thank you very much!!

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,128

    Re: Change color on cells if match

    Glad to help & thanks for the feedback

+ 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] Need to change cell color based off of RGB Color being defined in 3 cells
    By Chris McGlothen in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-01-2017, 02:13 PM
  2. [SOLVED] Change a cells fill color. VBA to make another cell the same color and also changes.
    By PeteABC123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2016, 12:34 PM
  3. [SOLVED] Click oval option button to fill/unfill color, also change border color to match fill
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2015, 08:29 PM
  4. [SOLVED] change fill color of a range of cells based on color of a cell?
    By DarMelNel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2014, 04:48 PM
  5. Replies: 2
    Last Post: 02-04-2013, 02:00 PM
  6. Replies: 12
    Last Post: 09-18-2012, 03:13 PM
  7. Replies: 3
    Last Post: 07-08-2010, 06:48 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