+ Reply to Thread
Results 1 to 11 of 11

Extracting row data from sheet A to sheet B, based on cell value on sheet B.

  1. #1
    Registered User
    Join Date
    08-30-2019
    Location
    Malta, Europe
    MS-Off Ver
    365
    Posts
    19

    Extracting row data from sheet A to sheet B, based on cell value on sheet B.

    Hi,

    attached is a workbook with two sheets. I wish to extract rows relating to a 'name' on the Data Sheet and gather them on the Analysis Sheet, prompted by entering a name in cell K2. So far so good, but I wish to have the command recognize and collect rows if a name appears more than once on the Data Sheet.
    Thank you
    John
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Extracting row data from sheet A to sheet B, based on cell value on sheet B.

    In a4, copied across and down:

    =IFERROR(INDEX(Data!A:A,AGGREGATE(15,6,ROW(Data!$B$1:$B$100)/(Data!$B$1:$B$10=Analysis!$K$2),ROWS(A$4:A4))),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    08-30-2019
    Location
    Malta, Europe
    MS-Off Ver
    365
    Posts
    19

    Re: Extracting row data from sheet A to sheet B, based on cell value on sheet B.

    Hi Glenn,
    many thanks for the quick reply. I'm attaching an expanded version of your file (added names). I don't seem to be getting the additions to show up.
    Cheers,
    John
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Extracting row data from sheet A to sheet B, based on cell value on sheet B.

    Theres a typo in mine.Both ranges should be the same, 100 or whatever. In my posted formula
    make both 100, or more if needed.

  5. #5
    Registered User
    Join Date
    08-30-2019
    Location
    Malta, Europe
    MS-Off Ver
    365
    Posts
    19

    Re: Extracting row data from sheet A to sheet B, based on cell value on sheet B.

    . Much obliged. Have a good weekend.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Extracting row data from sheet A to sheet B, based on cell value on sheet B.

    You, too. You're welcome.



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

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  7. #7
    Registered User
    Join Date
    08-30-2019
    Location
    Malta, Europe
    MS-Off Ver
    365
    Posts
    19

    Re: Extracting row data from sheet A to sheet B, based on cell value on sheet B.

    Glenn, I can't for the life of me do the solve thing. I could see the pull down menu but it has only two options; Solved is not one of them. The present screen as I reply does not show the 'Thread Tools' menu link anymore, or the add reputation for that matter. Unless I'm missing something. Sorry.
    John

  8. #8
    Registered User
    Join Date
    08-30-2019
    Location
    Malta, Europe
    MS-Off Ver
    365
    Posts
    19

    Re: Extracting row data from sheet A to sheet B, based on cell value on sheet B.

    Hi Glenn, I'm back.
    I wish to have rows that contain "0" in column D of the "Data" sheet not appear on the "Analysis" sheet. Thank you. File you worked with attached.
    Attached Files Attached Files

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Extracting row data from sheet A to sheet B, based on cell value on sheet B.

    Hi. Modify to this, and drag across & down:

    =IFERROR(INDEX(Data!A:A,AGGREGATE(15,6,ROW(Data!$B$1:$B$100)/((Data!$B$1:$B$100=Analysis!$K$2)*(Data!$D$1:$D$100<>0)),ROWS(A$4:A4))),"")
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    08-30-2019
    Location
    Malta, Europe
    MS-Off Ver
    365
    Posts
    19

    Re: Extracting row data from sheet A to sheet B, based on cell value on sheet B.

    Thank you Glenn. Much obliged. Good day.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Extracting row data from sheet A to sheet B, based on cell value on sheet B.

    You're welcome.



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

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. Replies: 2
    Last Post: 01-23-2016, 01:16 PM
  2. Replies: 0
    Last Post: 08-03-2014, 03:32 AM
  3. Replies: 5
    Last Post: 07-10-2013, 02:33 PM
  4. Extracting data from a row on one sheet into another sheet based on a unique cell
    By roshanvarghese in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-23-2013, 03:49 AM
  5. [SOLVED] Copy and paste data from sheet 2 to sheet 1 based on specific criteria on sheet 1
    By VBADUD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 04:18 AM
  6. [SOLVED] Macro to Copy Data from one Sheet A to Sheet B based on value in cell on sheet A
    By scass in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-11-2012, 07:21 PM
  7. As user fills out data sheet, then fill out a results sheet based on data sheet entry
    By clemsoncooz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-13-2012, 03:57 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