+ Reply to Thread
Results 1 to 3 of 3

Find value in a table that matches same value in rows

  1. #1
    Registered User
    Join Date
    04-30-2013
    Location
    new york
    MS-Off Ver
    Excel 2010
    Posts
    2

    Find value in a table that matches same value in rows

    Hi -
    I have a table called Leaders that contain names of employees falling under L1 (Leader 1) or L2 (Leader 2). I have a worksheet called Employees and all the people they report to going up to potentially 11 reporting levels. I want to find the L1 & L2 in all 11 reporting levels and have their name displayed in the L1 and L2 columns. Please see the attached Leaders file. Any help would be greatly appreciated. I keep searching for a similar posting but it usually involves an index & match where a specific string is being searched but not a value on a table. Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Find value in a table that matches same value in rows

    In M2
    =INDEX($A2:$L2,SUMPRODUCT(($B2:$L2=Leaders!$A$2:$A$7)*COLUMN($B:$L)))

    In N2
    =INDEX($A2:$L2,SUMPRODUCT(($B2:$L2=Leaders!$A$10:$A$19)*COLUMN($B:$L)))

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    04-30-2013
    Location
    new york
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Find value in a table that matches same value in rows

    Thanks so much! That worked perfectly!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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