+ Reply to Thread
Results 1 to 7 of 7

Trying to match unique values in single column against multiple columns

  1. #1
    Forum Contributor
    Join Date
    02-10-2007
    MS-Off Ver
    Excel 2010
    Posts
    293

    Trying to match unique values in single column against multiple columns

    Hello,

    I am trying to match column A, in sheet L2 against, column b, c, or d, in sheet L1 and then return the corresponding values FN, LN, Dept in sheet L2.

    Sheet L2, columns b, c, d is the desired result.

    I think it requires a combination if(or(isnumber(match(.... with index etc.


    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Trying to match unique values in single column against multiple columns

    In cell B2:
    Please Login or Register  to view this content.
    You can drag that over and down.
    This will still error out if it doesn't find a match, so you MIGHT want it to do that, so you know, or you might want to have some other error handling.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Forum Contributor
    Join Date
    02-10-2007
    MS-Off Ver
    Excel 2010
    Posts
    293

    Re: Trying to match unique values in single column against multiple columns

    thanks miketron, worked perfectly.

    to put error handling, if the value comparing to is not listed, put a blank, would that be

    INDEX('L1'!E:E,IFERROR(IFERROR(MATCH('L2'!$A2,'L1'!$B:$B,0),MATCH('L2'!$A2,'L1'!$C:$C,0)),MATCH('L2'!$A2,'L1'!$D:$D,0))),"") ?

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Trying to match unique values in single column against multiple columns

    I would wrap the entire thing with an IFERROR like so.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    02-10-2007
    MS-Off Ver
    Excel 2010
    Posts
    293

    Re: Trying to match unique values in single column against multiple columns

    Thank You MikeTron!

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Trying to match unique values in single column against multiple columns

    VegasL,

    Please take the time to update your profile. Show what version(s) of Excel you are using. Many members tailor formulas with that in mind.

    Thanks,
    Dave

    In the meantime here's another way.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 05-26-2016 at 08:13 PM.
    Dave

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Trying to match unique values in single column against multiple columns

    An afterthought.

    Try array-entering this in B2, fill down and across.

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

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

+ 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. Replies: 3
    Last Post: 11-14-2015, 03:48 PM
  2. Replies: 9
    Last Post: 10-14-2013, 07:55 PM
  3. Replies: 20
    Last Post: 04-15-2013, 01:06 PM
  4. MACRO to transform single column to multiple columns, based in dynamic values
    By gaqueiroz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-08-2012, 01:54 PM
  5. Replies: 11
    Last Post: 06-09-2011, 03:17 PM
  6. Replies: 5
    Last Post: 04-21-2011, 05:22 PM
  7. Fetch Unique values from a single column
    By Sherlyn Rachel in forum Excel General
    Replies: 3
    Last Post: 03-23-2011, 08:05 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