+ Reply to Thread
Results 1 to 4 of 4

Vlookup on cell color?

  1. #1
    Registered User
    Join Date
    01-07-2019
    Location
    Texas
    MS-Off Ver
    360
    Posts
    2

    Vlookup on cell color?

    I'm trying to generate a second table that tells me the name of the Labor Group (A) for each red cell.
    Example, My list for Column 850 should be Appliances, GDO, Plumbing-Water Heater
    Attached Images Attached Images

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Vlookup on cell color?

    Hello,

    what you describe cannot easily be done with formulas. First, colour is not data and Excel cannot evaluate the fill colour of a cell in any formula.

    What causes the cells to be red or green? Are you using conditional formatting? If so, that is a good starting point, because you already have established a logic to identify cells. That may be a hook for further processing.

    Can you provide more detail?

  3. #3
    Registered User
    Join Date
    01-07-2019
    Location
    Texas
    MS-Off Ver
    360
    Posts
    2

    Re: Vlookup on cell color?

    Yes, conditional formatting. If the cell is greater than the Service Standard, the cell is Red. In the other table I would like it to come out saying:
    "Your discrepancies are in Appliances, GDO, Plumbing Water Heaters"

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Vlookup on cell color?

    OK, here is a simplified example. The formula in C19 of the screenshot is

    =IFERROR(INDEX($A$4:$A$14,SMALL(IF(C$4:C$14>$B$4:$B$14,ROW($A$4:$A$14)-3,""),ROW(A1))),"")

    copied across and down. How far down depends on how many rows of data you expect, up to the total number of rows in your original table.

    2019-01-09_09-45-43.png

    PS: If that formula does not work for you, try entering it as an array formula with CTRL-SHIFT-ENTER. I'm on the Excel Insider build that has the new functions where all formulas are treated as arrays automatically.

+ 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 to change cell color?
    By killar65 in forum Excel General
    Replies: 7
    Last Post: 03-01-2017, 04:42 PM
  2. [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
  3. [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
  4. can a vlookup bring over a cell color or just contents?
    By pat67 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-26-2013, 02:51 PM
  5. Color cell based on vlookup value result
    By XCman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-17-2012, 01:08 PM
  6. VLOOKUP - copy over the color of the looked up cell?
    By Jeff_Johnson in forum Excel General
    Replies: 1
    Last Post: 03-05-2010, 01:25 PM
  7. vlookup based on cell color
    By kolette in forum Excel General
    Replies: 2
    Last Post: 06-23-2009, 02:23 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