+ Reply to Thread
Results 1 to 3 of 3

How to check if input cell matches the values in another column and change colour then

  1. #1
    Registered User
    Join Date
    11-27-2014
    Location
    London
    MS-Off Ver
    2013
    Posts
    2

    How to check if input cell matches the values in another column and change colour then

    I have following in my excel:

    input column: sheet1

    A
    1
    2




    data column: sheet2

    A B
    1 pink [pink color bg]
    2 yellow [yellow color bg]


    I would like a VBA can preform:

    when i input some value in sheet1(A), VBA will check if this value matches one values in sheet2(A), if positive, VBA will get the colour value which besides the matched one and automatic fill back to the cell I just input in sheet1 column A.

    for example:

    i input "pink" in A1, then the A1 will fill background as [Pink]
    I input "black" in A2, as these is not matched value in sheet2, so msgbox popup "no match"


    Thank you.
    Attached Files Attached Files
    Last edited by 2anyone; 11-27-2014 at 02:47 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: How to check if input cell matches the values in another column and change colour then

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    11-27-2014
    Location
    London
    MS-Off Ver
    2013
    Posts
    2

    Re: How to check if input cell matches the values in another column and change colour then

    added sample xlsm file. please check. Thanks.

+ 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] Change colour of every cell in workbook that matches RGB index
    By Bonnister in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2014, 11:39 AM
  2. Cell change colour due to what i input
    By Sheepkin_Coat in forum Excel General
    Replies: 2
    Last Post: 03-31-2013, 08:48 AM
  3. macro needed: change cell colour based on input in another column
    By weesteev in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-23-2012, 02:47 PM
  4. Replies: 3
    Last Post: 11-24-2011, 07:21 AM
  5. Colour change column chart based on cell colour
    By Alice21 in forum Excel General
    Replies: 11
    Last Post: 04-05-2011, 10:10 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