+ Reply to Thread
Results 1 to 17 of 17

return multiple rows from one key

  1. #1
    Registered User
    Join Date
    11-09-2017
    Location
    Newburyport
    MS-Off Ver
    2016
    Posts
    11

    return multiple rows from one key

    Hi, I have a table that has 5 different keys in column A. The keys are duplicated, but the data in the corresponding rows is not. I want to create a new tab for each of the 5 keys, and pull in the corresponding rows of data for each key including duplicates. I've watched a bunch of videos and searched the web but can't figure out how to do it easily. I attached the workbook. Thanks for any help!
    Attached Files Attached Files

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: return multiple rows from one key

    Welcome to the Forum.

    Try the following array formula in A4 (StarterPG):

    Please Login or Register  to view this content.
    To be confirmed by pressing CTRL+SHIFT+ENTER

    See the attached file.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-09-2017
    Location
    Newburyport
    MS-Off Ver
    2016
    Posts
    11

    Re: return multiple rows from one key

    Perfect! Thanks!

  4. #4
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: return multiple rows from one key

    You are welcome

    If that takes care of your question, please mark this thread as Solved by selecting Thread Tools --> Mark thread as solved.

  5. #5
    Registered User
    Join Date
    11-09-2017
    Location
    Newburyport
    MS-Off Ver
    2016
    Posts
    11

    Re: return multiple rows from one key

    Hi, I'm attempting to do something very similar with another file but I can't seem to get the array to work. I attached the file. Thanks!
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-09-2017
    Location
    Newburyport
    MS-Off Ver
    2016
    Posts
    11

    Re: return multiple rows from one key

    Still can't seem to get the array formula working. Anyone?

  7. #7
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: return multiple rows from one key

    Hi,

    Modify the formula in A4 (ALLPG tab) as below:

    Please Login or Register  to view this content.
    Array entered, to be confirmed by pressing CTRL+SHIFT+ENTER

    See the attached file.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    11-09-2017
    Location
    Newburyport
    MS-Off Ver
    2016
    Posts
    11

    Re: return multiple rows from one key

    Thanks! Unfortunately I'm having trouble modifying the formula to get it work in the other tabs- ALLSG, ALLSF, etc.

  9. #9
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: return multiple rows from one key

    Please Login or Register  to view this content.
    Remove ALLPG!

    Please Login or Register  to view this content.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  10. #10
    Registered User
    Join Date
    11-09-2017
    Location
    Newburyport
    MS-Off Ver
    2016
    Posts
    11

    Re: return multiple rows from one key

    that doesnt seem to work :/

  11. #11
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: return multiple rows from one key

    Try modifying the formula in A3 (Starters Tab) as following:

    =IFERROR(AJ3&U3,"")

    drag this down the cells till the end.


    Now your earlier formula on cell A4 (ALLPG tab) should work.

    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    11-09-2017
    Location
    Newburyport
    MS-Off Ver
    2016
    Posts
    11

    Re: return multiple rows from one key

    Thanks for all the suggestions, but I still can't get the other tabs to work with those formulas. I have the ALLPG tab working correctly, but I cant modify the code to get it to work in the other tabs. I attached the file. I want to use a different key in cell a1 in the other tabs. Thanks for all the help!
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: return multiple rows from one key

    I think cel A1 is not correct and should be 'ATLSG' and not 'ALLSG'

  14. #14
    Registered User
    Join Date
    11-09-2017
    Location
    Newburyport
    MS-Off Ver
    2016
    Posts
    11

    Re: return multiple rows from one key

    That was it, what a silly mistake. Thanks!

  15. #15
    Registered User
    Join Date
    11-09-2017
    Location
    Newburyport
    MS-Off Ver
    2016
    Posts
    11

    Re: return multiple rows from one key

    Can someone help me set up a similar Array with the same goal in mind on this file? I have 5 different variables ("QB","RB", "WR", "SWR", "TE") in each row that are located in column D on the "Master" tab. I want to pull in the entire row of data to the corresponding tab that matches the variable. I pasted in template rows on each tab. Thanks!!
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    11-09-2017
    Location
    Newburyport
    MS-Off Ver
    2016
    Posts
    11

    Re: return multiple rows from one key

    I tried modifying the file and formula from one of my other files but it still isn't working.

    =IFERROR(INDEX(master!A$1:A$288,SMALL(IF(master!$A$1:$A$288=$A$1,ROW(master!$A$1:$A$288)),ROW($A1))),"")

    Seems like it should work but it's not returning anything.

    Thanks!
    Attached Files Attached Files

  17. #17
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: return multiple rows from one key

    I know this was your thread, but it is now over a year old, I suggest you start a new thread, and ref this 1 if needed.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Vlookup to return multiple rows in return
    By Excelhelpss in forum Excel General
    Replies: 1
    Last Post: 06-18-2015, 09:59 AM
  2. Match Multiple Criteria and Return multiple rows
    By Hog030405 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-02-2015, 02:26 AM
  3. Return indexes of rows when multiple rows of a table are selected.
    By samkumar in forum Word Programming / VBA / Macros
    Replies: 0
    Last Post: 08-12-2013, 04:54 AM
  4. [SOLVED] Is it possible to lookup multiple values and return multiple rows of results?
    By justin11 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2013, 12:02 PM
  5. Drop Down Box, return multiple Rows with multiple Columns - No VBA
    By GhostsOfCanton in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-12-2013, 10:22 PM
  6. Return Multiple Values with multiple rows & multiple columns
    By sachin parab in forum Excel General
    Replies: 2
    Last Post: 11-05-2012, 10:21 AM
  7. Count Multiple Entries, Return Multiple Rows, Based On 3 Criteria
    By gtj_global in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-20-2008, 06:40 PM

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