+ Reply to Thread
Results 1 to 3 of 3

CF to highlight all matching values in two tables if a cell in another table has any value

  1. #1
    Forum Contributor
    Join Date
    11-17-2018
    Location
    Los Angeles
    MS-Off Ver
    Office 2010
    Posts
    208

    CF to highlight all matching values in two tables if a cell in another table has any value

    CF to highlight all matching values in two tables if a cell in another table has any value

    Please, I need help with this.

    This is a bit confusing to explain, so please forgive me if I make no sense or if the title for this post is off.

    If a cell in table T1 has any value (anything – and x, y, a word, or a number, etc.), then highlight in table T3 the values found in table T2 in the corresponding entire row.

    In other words, if cell F22 has a value (in this case an X, but it can be any value as long as is not empty), then the values in table T2, in the entire row 22 (numbers 1 and 2 in this example) need to be highlighted in table T3 (the number 1 and 2 will be highlighted in table T3).

    NOTES:
    1. The values to be matched in T2 and T3 are alphanumeric, but in this example I only used numbers to make it simple.
    2. Only table T3 needs to have highlights for the matching values.
    3. Table T2 values for the entire row (for example H21:P21) need to be considered when matching them with table T3 (R21:R29). In this example, only column “H” and “I” have values but there could be more values all the way to column P.
    4. Table T2 values go from left to right (row) and the values in table T3 go from top to bottom (column) but I suppose they could also be repositioned from left to right (I think it makes no difference as long as the matched numbers get highlighted in the table T3 range).
    5. Table T1 could have more than one cell with values, therefore, even if the numbers repeat they must be highlighted in table T3 (same color or different color, doesn’t matter).
    6. If table T1 has no values, then nothing gets highlighted (obviously).


    Please see attached file. I made a duplicate to the right to illustrate manually what is needed.
    Last edited by Luisftv; 04-25-2022 at 03:07 PM.

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: CF to highlight all matching values in two tables if a cell in another table has any v

    Tricky in Office 2010. I had a solution using a helper column but that relied on TEXTJOIN which you don't have so I had to rewrite it. In Q21, I wrote this formula:

    Please Login or Register  to view this content.
    Which I then copied down to Q53. I chose a white font to hide it. Then I highlighted R21:R29 and used this formula for conditional formatting:

    Please Login or Register  to view this content.
    I've included this in the attached file.

    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Forum Contributor
    Join Date
    11-17-2018
    Location
    Los Angeles
    MS-Off Ver
    Office 2010
    Posts
    208

    Re: CF to highlight all matching values in two tables if a cell in another table has any v

    WideBoyDixon,

    It works flawlessly, as I have experienced with all your replies, Sir. Thanks a lot. It's perfect.

    Yes, Office 2010 is so limited when compared to the newer versions.

    Thank you so much once again and have a wonderful day.

+ 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. Compare data in two tables and extract matching values to a third table
    By bushybob in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2019, 12:21 AM
  2. Highlight Matching Values in Column
    By WillCHA in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-29-2016, 01:57 PM
  3. [SOLVED] Matching values in tables
    By lobotomix in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-22-2016, 06:45 PM
  4. Format/Highlight Rows with matching cell values Using "String"
    By ExcelMasterIamNot in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2016, 06:32 PM
  5. [SOLVED] Add Values to New Tables Based on Cell Value in Table 1
    By ChrisHook in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-28-2015, 03:30 PM
  6. Matching multiple cell values on a table
    By nautilus38 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-21-2015, 01:01 PM
  7. Replies: 2
    Last Post: 08-06-2013, 09:15 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