+ Reply to Thread
Results 1 to 8 of 8

Vlookup with cell background color

  1. #1
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Vlookup with cell background color

    Dear All,

    Please help me out or suggest me how to vlookup with cell backgrond color, eg. i have sheet1 & 1000 names in column A and i want to vlookup columnB values with multiple cell colors (with formatting) in sheet2 ColumnB according to columnA. please suggest me any shortcut or vlookup formula for V-looking up with cell background colors.

    NOTE: I have matched names in Sheet1 & Sheet2 in ColumnA.

    Thankyou All.

  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,933

    Re: Vlookup with cell background color

    Formatting is cosmetic, and excel formulas work on data, not cosmetics. What was the logic for applying the colors, maybe that could be used for what you want?
    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

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Vlookup with cell background color

    And explain what you wish to achieve, I am not sure if you mean. Perhaps attach a spreadsheet with the desired outcome shown manually, as per the instructions in the yellow banner

    The lookup matches the cell value and the cell colour

    or

    the lookup needs to return the cell colour as well as the value

    It can be done with VBA code, but is a painful process, and a potential for error, as colours only need to be slightly out not to match, although they may look to be exactly the same. I echo Ford's comments

  4. #4
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: Vlookup with cell background color

    Dear davsth,

    Please find attached sample file.

    the lookup needs to return the cell colour as well as the value.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Vlookup with cell background color

    Have a look at this
    https://www.extendoffice.com/documen...urn-color.html

    It seems to be what you want

  6. #6
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: Vlookup with cell background color

    davsth,

    thanks, but it's only working in same sheet, however we have two different sheets (sheet1 & sheet2) & we want to vlookup in two different sheets.

    is there anything you can manipulate code accordingly.

    Thanks.

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Vlookup with cell background color

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)

  8. #8
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: Vlookup with cell background color

    Dear All,

    Please find below cross posting link,

    https://www.mrexcel.com/board/thread.../#post-5627852

    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. Vlookup by cell background color #VALUE! error
    By ismailshajji in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-10-2019, 08:42 PM
  2. Replies: 8
    Last Post: 04-02-2016, 04:00 AM
  3. [SOLVED] IF(VLOOKUP) Formula That also Copies Cell Background Color to Target Cell
    By JRidge in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-09-2014, 06:38 AM
  4. [SOLVED] IF(VLOOKUP) Formula That also Copies Cell Background Color to Target Cell
    By JRidge in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-04-2014, 05:32 AM
  5. Change cell background color based on another cells background color
    By Queo in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 06-10-2014, 05:28 AM
  6. Replies: 4
    Last Post: 12-29-2013, 11:41 PM
  7. Replies: 6
    Last Post: 11-07-2012, 10:46 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