+ Reply to Thread
Results 1 to 11 of 11

How to pull all rows of data where specific value is found in a column

  1. #1
    Registered User
    Join Date
    03-16-2021
    Location
    Pennsylvania
    MS-Off Ver
    2102
    Posts
    8

    How to pull all rows of data where specific value is found in a column

    I have an Excel spreadsheet with multiple sheets. In the first spreadsheet, I have names listed in Column G.

    In a different spreadsheet, I want to pull in all rows from the first spreadsheet that contain "Bob" in column G.

    I have been trying to figure this out with =VLOOKUP and =FILTER but have not figured it out.

  2. #2
    Banned User!
    Join Date
    01-17-2021
    Location
    Omaha, NE
    MS-Off Ver
    office 2016
    Posts
    211

    Re: How to pull all rows of data where specific value is found in a column

    what you mean by 'pull'? copy somewhere else? i do not believe you can copy entire rows and combine it with lookup process for automation. you have to write code

  3. #3
    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,929

    Re: How to pull all rows of data where specific value is found in a column

    If I understand you correctly (yes you can "pull" entire - or partial - rows from 1 sheet to another, without using code)r, you would need an ARRAY INDEX/SMALL/IF combo, but to be more specific, you will need to post a small sample WB with some dummy data and show expected outcome
    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

  4. #4
    Registered User
    Join Date
    03-16-2021
    Location
    Pennsylvania
    MS-Off Ver
    2102
    Posts
    8

    Re: How to pull all rows of data where specific value is found in a column

    See attached images for what I'm referencing. I want Column G to be what informs what gets copied to the other sheets. In other words, if "Mike" is listed in column G, I want the entire row to be copied to the "Mike" sheet. That will leave me with 11 rows of information within the "Mike" sheet.

    Image1.PNG
    Image2.PNG

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: How to pull all rows of data where specific value is found in a column

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.

  6. #6
    Registered User
    Join Date
    03-16-2021
    Location
    Pennsylvania
    MS-Off Ver
    2102
    Posts
    8

    Re: How to pull all rows of data where specific value is found in a column

    File is now attached
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: How to pull all rows of data where specific value is found in a column

    In "Mike"

    in A2

    =IFERROR(INDEX(Sheet1!$A$2:$G$22,AGGREGATE(15,6,(Sheet1!$G$2:$G$22="Mike")/(Sheet1!$G$2:$G$22="Mike")*(ROW($G$2:$G$22)-ROW($G$1)),ROWS($1:1)),COLUMN($A:A)),"")

    Copy across and down

    Change "Mike" for other sheets
    Attached Files Attached Files
    Last edited by JohnTopley; 03-18-2021 at 03:47 AM.

  8. #8
    Registered User
    Join Date
    03-16-2021
    Location
    Pennsylvania
    MS-Off Ver
    2102
    Posts
    8

    Re: How to pull all rows of data where specific value is found in a column

    Great, thank you for this!
    When I apply it to A2 and drag it across to G and down the columns, I get 'Spill' errors in the cells. See attached. I do get what I'm looking for but the entries are listed after the spill errors. Any thoughts?
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: How to pull all rows of data where specific value is found in a column

    My typo - aplogies

    =IFERROR(INDEX(Sheet1!$A$2:$G$22,AGGREGATE(15,6,(Sheet1!$G$2:$G$22="Mike")/(Sheet1!$G$2:$G$22="Mike")*(ROW($G$2:$G$22)-ROW($G$1)),ROWS($1:1)),COLUMNS($A:A)),"")

  10. #10
    Registered User
    Join Date
    03-16-2021
    Location
    Pennsylvania
    MS-Off Ver
    2102
    Posts
    8

    Re: How to pull all rows of data where specific value is found in a column

    Thank you!

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: How to pull all rows of data where specific value is found in a column

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. How To Pull Data From a Specific Row & Column
    By Eneune in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-02-2015, 02:46 PM
  2. Replies: 1
    Last Post: 12-11-2013, 09:09 PM
  3. [SOLVED] Macro to pull imported data from sheet2 and place data in specific rows on sheet1
    By PatRiot199 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-05-2013, 04:22 PM
  4. Delete rows or Clear contents below a specific word is found in Column A
    By kishoremcp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-17-2012, 04:08 PM
  5. [SOLVED] Locate column with specific title and delete rows if predefined set of text is found
    By johnny_tc in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-25-2012, 01:57 PM
  6. Replies: 6
    Last Post: 10-15-2009, 10:33 AM
  7. [SOLVED] To Delete the specific rows when blank is found on column A
    By ddiicc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-05-2005, 01:05 AM

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