+ Reply to Thread
Results 1 to 3 of 3

Compare a row of cells with a column

  1. #1
    Registered User
    Join Date
    09-29-2017
    Location
    London
    MS-Off Ver
    2010
    Posts
    40

    Compare a row of cells with a column

    Hi everybody,

    I have a very simple question that a research couldn't answer and I suspect the solution relates to matricial formulas, which I am not a frequent user.

    I have a long list of employees and their managing reporting lines all the way up to the CEO (their manager, their manager's manager, etc ...). I need to cluster those employees according to the customers their serve (A, B, C) and to do this, my idea was to look the highest manager that represents that group before the manager can no longer be segmented into a single group.

    You'll find attached the sample that I put together to simplify the problem.

    What I want is to compare the row of managers to the list in columns J and K to know whether one of the managers in the row serves Customer A or B which would ensure that the managee at the bottom also serves the same customer. Basically I want to compare each row's 5 cells (C to G) with each value of column K5:K8 and if one the values in the row is equal to one of the values in the column, then have a Yes or a Customer A (the formula should give automatically the answers that are in the highlighted cells)

    If anything is not clear, please feel free to ask, and thank you so much in advance for your help.

    Xenthys
    Attached Files Attached Files
    Last edited by Xenthys; 11-26-2019 at 12:41 PM.

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Compare a row of cells with a column

    one option, assuming Ken should be Customer B rather than A (June assigned to B)

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-29-2017
    Location
    London
    MS-Off Ver
    2010
    Posts
    40

    Re: Compare a row of cells with a column

    Yes, that is exactly it, thank you so much XLent (and you are right, Ken should be Customer B, sorry for the typo!)

+ 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. Select 2 cells in same column, compare against sum of 2 cells in diff column
    By johndoe15 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2017, 12:09 PM
  2. HELP! Compare cells of a column to same column in different workbook and highlight diffs
    By bradleyherron in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-05-2014, 10:18 AM
  3. How to compare cells among each other in the same column
    By SPstudent in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2012, 10:12 AM
  4. Compare two Cells on diferent column
    By martinez_pedro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2012, 05:36 PM
  5. Compare cells in column 1 and concatenate values in column 2
    By sharmaremuk in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-20-2011, 09:04 PM
  6. Replies: 0
    Last Post: 07-27-2010, 03:08 PM
  7. [SOLVED] How do I compare cells in a column
    By Jim K in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-29-2005, 08:07 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