+ Reply to Thread
Results 1 to 8 of 8

Look up a column with duplicates and return from multiple specified columns

  1. #1
    Forum Contributor
    Join Date
    12-03-2020
    Location
    australia
    MS-Off Ver
    365
    Posts
    112

    Post Look up a column with duplicates and return from multiple specified columns

    Hi,

    I have a worksheet where I have a product ID column with multiple duplicates followed by various columns with filled and missing data.

    I would like to look up a particular product ID say 111 and find specific features from the various columns about this product eg Colour, #ID , Origin etc.

    I have attached a sample workbook with colour coded with desired results.

    Any help or direction will be greatly appreciated.


    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2502 and WPS V2024(12.1.0.18543)
    Posts
    3,866

    Re: Look up a column with duplicates and return from multiple specified columns

    Cell J3 formula , Drag down

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

  3. #3
    Forum Contributor
    Join Date
    12-03-2020
    Location
    australia
    MS-Off Ver
    365
    Posts
    112

    Re: Look up a column with duplicates and return from multiple specified columns

    Quote Originally Posted by wk9128 View Post
    Cell J3 formula , Drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Is there a way that we don't hard core the columns {1,3,5} ?

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2502 and WPS V2024(12.1.0.18543)
    Posts
    3,866

    Re: Look up a column with duplicates and return from multiple specified columns

    How about this formula
    Drag down and across

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

  5. #5
    Forum Contributor
    Join Date
    12-03-2020
    Location
    australia
    MS-Off Ver
    365
    Posts
    112

    Re: Look up a column with duplicates and return from multiple specified columns

    Quote Originally Posted by wk9128 View Post
    How about this formula
    Drag down and across

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Sorry to be a pain, if I wanted to add another feature say % Value and drag to the right, it doesn't pick it up.

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Look up a column with duplicates and return from multiple specified columns

    Please try at

    J2:L2 spill down

    =LET(c,FILTER($B$2:$F$16,$B$1:$F$1=J2),XLOOKUP($I$3:$I$4,IF(c>0,$A$2:$A$16),c))

    or with LAMBDA spill table

    =LET(id,I3:I4,co,J2:L2,MAP(IF(co>0,id),IF(id,co),LAMBDA(id,co,LET(c,FILTER($B$2:$F$16,$B$1:$F$1=co),FILTER(c,(c<>"")*(A2:A16=id))))))
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    03-05-2018
    Location
    Tbilisi, Georgia
    MS-Off Ver
    2013, 2016
    Posts
    273

    Re: Look up a column with duplicates and return from multiple specified columns

    For Excel 2010-2016 without CSE:

    =IFERROR(INDEX($A:$F;MOD(AGGREGATE(15;6;(ROW($B$2:$F$15)%%+COLUMN($B$2:$F$15))/(($B$2:$F$15>0)*($A$2:$A$15=$I3)*($B$1:$F$1=J$2));1);1)/1%%+0,1;INT(AGGREGATE(15;6;(ROW($B$2:$F$15)%%+COLUMN($B$2:$F$15))/(($B$2:$F$15>0)*($A$2:$A$15=$I3)*($B$1:$F$1=J$2));1)));"")
    Attached Files Attached Files
    Last edited by T.I.; 03-08-2022 at 10:00 AM.

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Look up a column with duplicates and return from multiple specified columns

    IN I3 (spill down)

    =UNIQUE($A$2:$A$15)

    In J3 and copy across and down

    =TEXTJOIN("",TRUE,FILTER(FILTER($A$2:$F$15,$A$2:$A$15=$I3,""),$A$1:$F$1=J$2,""))
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. [SOLVED] consolidate txt from multiple columns into one column & remove duplicates
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-13-2021, 12:58 PM
  2. Replies: 1
    Last Post: 02-27-2019, 11:19 PM
  3. Replies: 1
    Last Post: 03-01-2018, 01:18 PM
  4. [SOLVED] Sum the entries in a column by avoiding duplicates in multiple columns
    By vamsivgn in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-14-2018, 12:54 AM
  5. Replies: 4
    Last Post: 06-09-2014, 07:44 PM
  6. [SOLVED] Removing duplicates from multiple columns (treating each column separately)
    By Rob8489 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-24-2013, 05:56 PM
  7. [SOLVED] Extracting data from multiple columns to one column without duplicates
    By blue_clouds_mountain in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-31-2012, 05:46 PM

Tags for this Thread

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