+ Reply to Thread
Results 1 to 10 of 10

Return list of multiple records with duplicates

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Post Return list of multiple records with duplicates

    I have a table with over 12000 records. I need to send them to different users. Pivot Table is not an option.
    I need each of the users to be able to pull all his own records from the list along with all corresponding records for a different user, if their IDs match.

    Example:
    User 1 ID 123 California
    User 2 ID 123 Florida
    User 3 ID 234 Idaho
    User 4 ID 456 Alabama
    User 1 ID 456 California
    User 2 ID 567 Florida
    User 3 ID 678 Idaho
    User 4 ID 789 Alabama
    User 1 ID 789 California
    User 2 ID 789 Florida
    User 3 ID 678 Idaho
    User 4 ID 123 Alabama
    User 1 ID 456 Florida

    I need User 1 to see all records where it says User 1 along with records of another user where the Ids are the same.
    Return for User 1:

    User 1 User 1 ID 123 California
    User 1 User 2 ID 123 Florida
    User 1 User 4 ID 123 Alabama
    User 1 User 1 ID 456 California
    User 1 User 1 ID 456 Florida
    User 1 User 4 ID 456 Alabama
    User 1 User 1 ID 789 California
    User 1 User 2 ID 789 Florida
    User 1 User 4 ID 789 Alabama

    Please, help!!!

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,656

    Re: Return list of multiple records with duplicates

    How many columns do you have in the two tables?
    Quang PT

  3. #3
    Registered User
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Return list of multiple records with duplicates

    There is only 1 table with all the record. It has Column 1 User, Column 2 IDNumber, Column 3 Place.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,656

    Re: Return list of multiple records with duplicates

    Assuming that K1 is given user#;
    In E1:
    =$K$1
    In F1:
    Please Login or Register  to view this content.
    Confirmed with holding both Ctrl-Shift, then hit Enter.
    Drag across to H1
    Copy E1:H1 down.
    Hope this help.

  5. #5
    Registered User
    Join Date
    10-15-2012
    Location
    Beijing, China
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Return list of multiple records with duplicates

    There is a simple way by using another similar spreadsheet: Just group by ID and you'll get what you want. With it, you can also save the file as .xls or .xlsx or txt or html format. See the attched picture: sample.png

  6. #6
    Registered User
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Return list of multiple records with duplicates

    It works just the way I needed. Thank you soooo much.
    Could you help me to enter If ISERROR part to eliminate #NUM! ?

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,656

    Re: Return list of multiple records with duplicates

    Quote Originally Posted by SoniaSonia View Post
    It works just the way I needed. Thank you soooo much.
    Could you help me to enter If ISERROR part to eliminate #NUM! ?
    Try this;
    =IFERROR(Your formular,"")

  8. #8
    Registered User
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Return list of multiple records with duplicates

    I tried and is telling me I have too many arguments

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,656

    Re: Return list of multiple records with duplicates

    Why not? Try:
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    03-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Thumbs up Re: Return list of multiple records with duplicates

    Wow!!!
    It is the same formula I was entering, but Excell wasn't taking it, until I copied and pasted yours.
    bebo021999 you are awesome

+ 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