+ Reply to Thread
Results 1 to 4 of 4

Extracting unique entries from table with multiple rows and columns

  1. #1
    Registered User
    Join Date
    03-01-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2010
    Posts
    64

    Smile Extracting unique entries from table with multiple rows and columns

    Hello folks

    This little problem has been driving me nuts, I've tried various array formulas and other weird and wonderful ideas but cannot get the result I need! So any help is appreciated

    Is there a way of extracting the unique entries from a table of data (ie: not just one column or row but multiples of), and listing the results of this extraction in a single row? I've attached an example of what I'm trying to get to - in this case a 4x5 table of 20 entries (some of which are duplicates), and all I want to do is pull out the unique entries into a single row for use elsewhere?

    Is this possible just using Excel (I'd prefer not to go down the VBA route for various reasons, but if VBA is absolutely necessary I'm open to suggestions about this too!)

    Thanks in advance to anyone who can help me

    Kenny
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-05-2012
    Location
    Dallas, Tx
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Extracting unique entries from table with multiple rows and columns

    Copy all of the columns to on single column.
    Then highlight that column and click remove duplicates under the data tab.
    If you need them to read left to right, then copy , paste special, and click transpose will copy them to a row instead of a column


    <----Please click the star if this helps you.
    http://excelevangelist.blogspot.com/

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Extracting unique entries from table with multiple rows and columns

    Hi

    See if this helps you.
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,703

    Re: Extracting unique entries from table with multiple rows and columns

    This lists them down the sheet rather than across, but it's easy enough to transpose them if really necessary. Put this array* formula in B10:

    =IFERROR(INDEX($B$1:$E$5,MIN(IF(COUNTIF($B$9:B9, $B$1:$E$5)=0,ROW($B$1:$E$5)-MIN(ROW($B$1:$E$5))+1)),MATCH(0,COUNTIF($B$9:B9,INDEX($B$1:$E$5,MIN(IF(COUNTIF($B$9:B9,$B$1:$E$5)=0,ROW($B$1:$E$5)-MIN(ROW($B$1:$E$5))+1)), ,1)),0),1),"")

    and copy down as far as you need to - I've copied to row 20 in the attached workbook.

    * An array formula must be confirmed using the key combination of Ctrl-Shift-Enter (CSE) rather than the usual <Enter>. If you do this correctly then Excel will wrap curly braces { } around the formula when viewed in the formula bar, but you must not type these yourself. If you need to amend the formula then you will need to use CSE again, although you can copy the formula to other cells using the normal method(s).

    Hope this helps.

    Pete
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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