+ Reply to Thread
Results 1 to 3 of 3

Conditionally formatting a group of cells based on another worksheets columns

  1. #1
    Registered User
    Join Date
    03-21-2014
    Location
    Calgary
    MS-Off Ver
    Excel 2003
    Posts
    6

    Conditionally formatting a group of cells based on another worksheets columns

    I am having trouble coming up with a solution to my problem and I am not sure if it can be easily solved just using conditional formatting or if it requires some kind of macro.

    Here is the basic problem:

    On one worksheet I have a grouping of cells, say A1:E5, and in those cells is a number or number and letter (indicating a package in this case ie 30A,77B,130C etc) and in no particular order. Now on another worksheet these same letter and number combinations are listed in a single column, say F1:F25, again in no particular order. Column G is designated for a 0 or 1, 1 meaning the package is in transit. If a cell in the G column is 1, I want the corresponding value in the F cell (ie 30A) to be highlighted but in the 1st worksheet A1:E5 (in this case 30A gets the fill).

    In the below case 30A and 83A should be highlighted.

    A B C D E
    30A 69 72 70 52
    55A 11C 7A 47A 83A
    97D/97E 101B 101D 31B 110B
    112A 31A 109C 126K 126
    19A 93C 33A 93D 128A

    Worksheet 2
    F G
    30A 1
    7A
    109C
    126
    83A 1
    .
    .
    .


    Thank you for your help!

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,946

    Re: Conditionally formatting a group of cells based on another worksheets columns

    Name your range F1:G25 on worksheet 2 something, like CFTable, then in the CF on worksheet 1, use the custom formula

    =VLOOKUP(A1,CFTable,2,False)=1

    and choose your formatting.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    03-21-2014
    Location
    Calgary
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Conditionally formatting a group of cells based on another worksheets columns

    Thank you thank you thank you! Exactly what I needed! You rock.

+ 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. Is there a way to do conditionally formatting based on a rolling date?
    By Drogo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-05-2014, 10:44 PM
  2. Replies: 3
    Last Post: 07-28-2013, 10:24 PM
  3. Replies: 8
    Last Post: 01-02-2013, 02:25 PM
  4. Replies: 5
    Last Post: 02-14-2012, 05:48 PM
  5. [SOLVED] Conditionally formatting other cells?
    By brett in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-20-2005, 07:15 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