+ Reply to Thread
Results 1 to 36 of 36

Copy Paste Rows by Column Criteria

  1. #1
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Copy Paste Rows by Column Criteria

    I'll be honest, I have no idea where to start as i only know the very basic formulas.

    What i am looking to accomplish is getting Excel to copy entire rows of data to a new worksheet using only the data in column CE.

    I have a list of criteria for Excel to find in column CE, around 585 different ids in this case, as Excel finds each of the ids it will copy each
    entire row it finds a match for into the new worksheet into individual rows exactly the way it found it in the workbook it is copying from.

    Can anyone help me ?

    I am not sure if what I am trying to do is specific enough, it is the best way i can explain it.

    Thanks in advance.
    Last edited by regularcat; 10-12-2014 at 09:15 PM.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Formula Help

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

    I'd probably go with something along the lines of "Copy Paste Rows by Column Criteria" or some such.

    A short VB Loop or Small Index array could do it, but I'd attach a work example so that our advice can be specific to your need.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Formula Help

    Quote Originally Posted by daffodil11 View Post
    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

    I'd probably go with something along the lines of "Copy Paste Rows by Column Criteria" or some such.

    A short VB Loop or Small Index array could do it, but I'd attach a work example so that our advice can be specific to your need.
    I apologize, I should have chosen a better thread title and have done what you have asked of me, I can assure you everything will be correct the next time.

    When you say a work example, are you asking for the worksheets I am currently working with ?

    If so, here is a link to the files because 2 of the 3 files are bigger than the attachment file size limit and I cannot reduce the size of the files.

    https://www.sendspace.com/file/8jbwr9

    There are 3 files, ID Reference worksheet and 2 players worksheets, a basic worksheet and a macro-enabled worksheet as i wasn't sure if it needed to
    be macro-enabled.

    Following post 1, the list of criteria is contained in the ID Reference worksheet, those ids in the ID Reference worksheet need to be found in column
    CE of the players worksheet.

    When Excel finds each ID in column CE of the players worksheet it must copy the entire row's data into the new worksheet in the same column order as
    the players worksheet until all the IDs have been found and copied to the new worksheet.

    Once again, Thanks in advance.

  4. #4
    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,939

    Re: Copy Paste Rows by Column Criteria

    Hi, welcome to the forum

    Thanks for the title change. I understand that your files are large, but many members are unable (or unwilling) to access file-hosting site (company fire-walls and stuff). can you put together a small mock-up of what you have and what you want, andthen upload that workbook here?
    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

  5. #5
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    Quote Originally Posted by FDibbins View Post
    Hi, welcome to the forum

    Thanks for the title change. I understand that your files are large, but many members are unable (or unwilling) to access file-hosting site (company fire-walls and stuff). can you put together a small mock-up of what you have and what you want, andthen upload that workbook here?
    No problem, thanks for responding.

    Basically the same situation in post #3, here are 2 attached files reduced in size.

    If there is a formula I could copy into the workbook rather than an array or vb code I would prefer the formula.

    Once again, Thanks in advance.
    Attached Files Attached Files

  6. #6
    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,939

    Re: Copy Paste Rows by Column Criteria

    This, copied down and across should give you what you want. I sugge3st that you add the headings from Players, so you know which is which...
    =IFERROR(INDEX(players.xlsx!A$2:A$30,MATCH($A2,players.xlsx!$CE$2:$CE$30,0)),"")

  7. #7
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    Quote Originally Posted by FDibbins View Post
    This, copied down and across should give you what you want. I sugge3st that you add the headings from Players, so you know which is which...
    =IFERROR(INDEX(players.xlsx!A$2:A$30,MATCH($A2,players.xlsx!$CE$2:$CE$30,0)),"")
    How do I add the headers, simply copy them to the new workbook/sheet ?

    I shall give it a go in a few minutes, if it works for me like it does for you then I'll make the thread solved.

    appreciate for your efforts, respect.

  8. #8
    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,939

    Re: Copy Paste Rows by Column Criteria

    Yes, just copy/past. I am not using the headings in the formula (although I could have done, if you want them in a different sequence)

  9. #9
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    Quote Originally Posted by FDibbins View Post
    Yes, just copy/past. I am not using the headings in the formula (although I could have done, if you want them in a different sequence)
    I would only want them to be copied one time.

    I must ask, where must I paste this formula, in sheet 1 of the players workbook ?
    Is there a specific way i need to open the workbooks or steps I need to take ?

    Also, in the formula, =IFERROR(INDEX(players.xlsx!A$2:A$30,MATCH($A2,players.xlsx!$CE$2:$CE$30,0)),""), the numbers in bold are the last
    row, correct ?

    Would I need to change that to say 154777, if 154777 is my last row ?
    Last edited by regularcat; 10-13-2014 at 07:48 PM.

  10. #10
    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,939

    Re: Copy Paste Rows by Column Criteria

    Put that formula in B2 of Player ID Ref WB, and copy down as far as you need it, and as far across as you have headings. The Players WB does not even need to be open

  11. #11
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    Quote Originally Posted by FDibbins View Post
    Put that formula in B2 of Player ID Ref WB, and copy down as far as you need it, and as far across as you have headings. The Players WB does not even need to be open
    That is incredible, damn you are good.

    Thanks for the formula, it's genius and a hell of a time saver.

    Thread Solved.
    Last edited by regularcat; 10-13-2014 at 08:58 PM.

  12. #12
    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,939

    Re: Copy Paste Rows by Column Criteria

    Thanks for the kind words, always appreciated

  13. #13
    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,939

    Re: Copy Paste Rows by Column Criteria

    From your PM to me...
    works perfectly for the players workbook.

    I tried to alter it to use on other workbooks using the same basic layout as the players workbook.

    In this case teamplayerlinks, using the above formula, I subbed some data out with different data but it yields me no results.

    ex. =IFERROR(INDEX(teamplayerlinks.xlsx!A$2:A$X,MATCH($A2,teamplayerlinks.xlsx!$H$2:$H$X,0)),"")

    X being the amount of rows, 30 in the sample workbook I attached in my post and H being basically the same as CE
    in the players workbook.

    I was hoping it would pull all the data for each row of data relating to the referenced ID in column H, in this case anywhere from 15 to 42 rows
    of data.

    Can you explain to me why I do not get the same results, it almost seems as the players formula is for pulling a single row of data
    for each ID referenced.

    What do I need to do for the formula to, for example find this ID in column H and everything in the column with that ID gets pulled like it does in the players workbook ?
    You will notice that in my formula, the INDEX part references a single column range (bolded)...
    =IFERROR(INDEX(players.xlsx!A$2:A$30,MATCH($A2,players.xlsx!$CE$2:$CE$30,0)),""),MATCH($A2,players.xlsx!$CE$2:$CE$30,0)),"")
    while your INDEX references a range of columns...
    =IFERROR(INDEX(teamplayerlinks.xlsx!A$2:A$X,MATCH($A2,teamplayerlinks.xlsx!$H$2:$H$X,0)),"")

    The syntax for INDEX() is =INDEX(range,row,column)

    INDEX with a single MATCH needs only a single column range ref...this makes it easy to copy across and pull in data from consecutive columns, as you dont need to tell it which column to use.

    If you are using multiple columns in the range, you need to tell INDEX which column you want to pull from, so you need to bring another function (usually another MATCH() ) to ID the column you want to use.

    So you end up with...
    =INDEX(single-column-range,row-to-use)...it will pull from the column specified in the INDEX
    or
    =INDEX(multiple-column-range,row-to-use,column-to-use)...it will pull from the column specified in the column specified.

    To find either the row number or the column number, you generally use the MATCH() function

  14. #14
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    Quote Originally Posted by FDibbins View Post
    From your PM to me...


    You will notice that in my formula, the INDEX part references a single column range (bolded)...
    =IFERROR(INDEX(players.xlsx!A$2:A$30,MATCH($A2,players.xlsx!$CE$2:$CE$30,0)),""),MATCH($A2,players.xlsx!$CE$2:$CE$30,0)),"")
    while your INDEX references a range of columns...
    =IFERROR(INDEX(teamplayerlinks.xlsx!A$2:A$X,MATCH($A2,teamplayerlinks.xlsx!$H$2:$H$X,0)),"")

    The syntax for INDEX() is =INDEX(range,row,column)

    INDEX with a single MATCH needs only a single column range ref...this makes it easy to copy across and pull in data from consecutive columns, as you dont need to tell it which column to use.

    If you are using multiple columns in the range, you need to tell INDEX which column you want to pull from, so you need to bring another function (usually another MATCH() ) to ID the column you want to use.

    So you end up with...
    =INDEX(single-column-range,row-to-use)...it will pull from the column specified in the INDEX
    or
    =INDEX(multiple-column-range,row-to-use,column-to-use)...it will pull from the column specified in the column specified.

    To find either the row number or the column number, you generally use the MATCH() function
    I have to admit I am a bit lost here, not sure I see the difference between what you had done and what I had done.

    All I had done was change players.xlsx to teamplayerlinks.xlsx, the CE to H and 30 to the last row numeral which happened to be 17554.

    I think I may require an Excel for Dummies type demonstration.

    If I tell excel which column to pull from, which I had thought I had done by changing CE to H would make it do what you had the formula do.

    I need to figure out how to get Excel to look into another workbook to a certain column and only that column for it's MATCH but pull more than a single row if they exist
    within that workbook.

    I almost feel like I need to upload another example but don't want to take up too much of your time.
    Last edited by regularcat; 10-14-2014 at 07:35 PM.

  15. #15
    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,939

    Re: Copy Paste Rows by Column Criteria

    oops reading again, I see that your INDEX range is indeed a single column range.

    I just noticed that your Players upload has only 1 sheet, so the formula I put together did not need a sheet name in it (because there is only 1 sheet in that file). But if you have more than 1 sheet, that formula will have a problem. Use this instead...
    =IFERROR(INDEX([players.xlsx]players!A$2:A$30,MATCH($A2,[players.xlsx]players!$CE$2:$CE$30,0)),"")

    but pull more than a single row if they exist
    That part will not work with my formula, I will need to adjust it a bit. For that, can I ask that you upload another sample WB/s with samples of those too plz?

  16. #16
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    Quote Originally Posted by FDibbins View Post
    oops reading again, I see that your INDEX range is indeed a single column range.

    I just noticed that your Players upload has only 1 sheet, so the formula I put together did not need a sheet name in it (because there is only 1 sheet in that file). But if you have more than 1 sheet, that formula will have a problem. Use this instead...
    =IFERROR(INDEX([players.xlsx]players!A$2:A$30,MATCH($A2,[players.xlsx]players!$CE$2:$CE$30,0)),"")


    That part will not work with my formula, I will need to adjust it a bit. For that, can I ask that you upload another sample WB/s with samples of those too plz?
    I have attached three workbooks, one is Team ID Reference workbook (same as Player ID Reference workbook ), teams workbook and teamplayerlinks workbook.

    Using the Team ID Reference, I need a formula that will pull more than one row when it finds a match in the other workbooks using more than one ID to match in the
    Team ID Reference workbook in only one column in the other two workbooks.

    For the teams workbook it must find the match in column AP and the teamplayerlinks workbook from column H.

    1,2,3,4,5,6,7,8,9,10,11,12 for example would be the team ids, the teams workbook will have a single row per ID and teamplayerlinks workbook will pull more than one
    row per id, anywhere from 18 to 42 rows.

    So I am in need of formulas to pull a single row from an ID like the formula for the players workbook and a formula for what I have explained above.

    Thanks again.
    Attached Files Attached Files
    Last edited by regularcat; 10-15-2014 at 10:37 PM.

  17. #17
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    Attempted to create a formula but failed, I may not be cut out for Excel formulating.

  18. #18
    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,939

    Re: Copy Paste Rows by Column Criteria

    Team ID Reference workbook contains a 1 in cell A1, and nothing else. I will see if I can use the Player ID WB instead

    edit: Can you give me a few sample answers to work on please?
    Last edited by FDibbins; 10-18-2014 at 04:27 PM.

  19. #19
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    Quote Originally Posted by FDibbins View Post
    Team ID Reference workbook contains a 1 in cell A1, and nothing else. I will see if I can use the Player ID WB instead

    edit: Can you give me a few sample answers to work on please?
    These 3 sample workbooks are in need of a formula that will do what I have been asking.

    They will all look up a value in a specific column and then return multiple rows pertaining to the value found in the specified column.

    teamplayerlinks - column H - Team ID Reference List
    teamkits - column AH - Team ID Reference List
    leagueteamlinks - column M - ID 7

    Thanks again for trying to work this out for me.
    Attached Files Attached Files

  20. #20
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    Reexamining your post i realized what you meant by 1, it was a mistake, if you use the attachments in my previous post you will have what you need.

    You can use the Team ID Reference sheet from the earlier posts.
    Last edited by regularcat; 10-19-2014 at 01:36 PM.

  21. #21
    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,939

    Re: Copy Paste Rows by Column Criteria

    OK, I hate to admit it, but I have got lost in this 1 It has carried on for a while now, andthings have changedm and I have lost track of what we were doing. I looked at the playerID in those files and cant find any match now.

    Can I ask that we start again, from the beginning (on this same thread).

    Explain again (if you would), exactly what you have and what you want. Upload the files again, and show a few samples of what you want. Sorry for the confusion

  22. #22
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    Quote Originally Posted by FDibbins View Post
    OK, I hate to admit it, but I have got lost in this 1 It has carried on for a while now, andthings have changedm and I have lost track of what we were doing. I looked at the playerID in those files and cant find any match now.

    Can I ask that we start again, from the beginning (on this same thread).

    Explain again (if you would), exactly what you have and what you want. Upload the files again, and show a few samples of what you want. Sorry for the confusion
    It's no problem, If it were easy I would do it, exactly why I am looking for help.

    I'll break it down again, since it seems you are up for the challenge.

    What I need is 2 formulas, 1 to pull a single row of data per each ID in the list as some workbooks only contain a single row of data per ID and
    a formula that will pull multiple rows of data per each ID in the list as the rest of the workbooks have multiple rows per ID.

    The players workbook will search the list in the Player ID Reference workbook and return an entire row per ID columns A-CY.
    The formula must search the CE column of the players workbook.

    The teams workbook is basically the same except it must use the Team ID Reference and return an entire row per each ID columns A-BN.
    The formula must search the AP column of the teams workbook.

    The teamplayerlinks workbook will search the list in the Team ID Reference but will have to return multiple rows per each ID columns A-O.
    The formula must search the H column of the teamplayerlinks workbook.

    When you glance at the players and teams workbooks under columns CE and AP you will see that the IDs only appear once per workbook while
    the teamplayerlinks workbook under column H will have IDs appearing more than once, anywhere from 20 to 42.

    If you don't understand I'll try to explain more.
    Attached Files Attached Files

  23. #23
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    To explain further as to why I need the 2 formulas, it may be easier to understand if I explain in another way.

    Think of the players and the teams workbooks like the NFL, there will only be 1 Philadelphia Eagles (my team) and only 1 Lesean McCoy, the
    teamplayerlinks is basically the Philadelphia Eagles roster, the roster consists of more than 1 player.

  24. #24
    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,939

    Re: Copy Paste Rows by Column Criteria

    OK, I *think* im with you now.

    The players workbook will search the list in the Player ID Reference workbook and return an entire row per ID columns A-CY. The formula must search the CE column of the players workbook.
    My original formula, copied down and across, will do this...
    =IFERROR(INDEX(players.xlsx!A$2:A$30,MATCH($A2,players.xlsx!$CE$2:$CE$30,0)),"")

    The teams workbook is basically the same except it must use the Team ID Reference and return an entire row per each ID columns A-BN. The formula must search the AP column of the teams workbook.
    Try this 1, copied down and across...
    =IFERROR(INDEX(teams.xlsx!A$2:A$30,MATCH($A2,teams.xlsx!$AP$2:$AP$30,0)),"")

    You said 2 formulas, so I guess you count these as the same?

    I think my initial problem was that I did not realise that you had 5 different files, I thought there were 3 or 3 lol

    Now, for your 3rd part..."The teamplayerlinks workbook will..."
    Is the data in the Links wb what you want the answers to look like, or is that also data you have downloaded? I have tried to match up teh various headings, and apart from "overallrating", none seem to match.

    So, if we have those 1st 2 sorted out, can you walk me though how ou would do your 3rd part manually? (sorry to be thick on this 1)

  25. #25
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    Quote Originally Posted by FDibbins View Post
    OK, I *think* im with you now.


    My original formula, copied down and across, will do this...
    =IFERROR(INDEX(players.xlsx!A$2:A$30,MATCH($A2,players.xlsx!$CE$2:$CE$30,0)),"")


    Try this 1, copied down and across...
    =IFERROR(INDEX(teams.xlsx!A$2:A$30,MATCH($A2,teams.xlsx!$AP$2:$AP$30,0)),"")

    You said 2 formulas, so I guess you count these as the same?

    I think my initial problem was that I did not realise that you had 5 different files, I thought there were 3 or 3 lol

    Now, for your 3rd part..."The teamplayerlinks workbook will..."
    Is the data in the Links wb what you want the answers to look like, or is that also data you have downloaded? I have tried to match up teh various headings, and apart from "overallrating", none seem to match.

    So, if we have those 1st 2 sorted out, can you walk me though how ou would do your 3rd part manually? (sorry to be thick on this 1)
    I have 13 different workbooks to work with, I hope the 2 formulas will work for them all.

    Basically what I am looking at is using the players formula for the teams, formations, etc, all returning a single row of data per team ID.

    The teamplayerlinks will return multiple rows per team ID, in the workbooks I attached you see the headers in which the data falls under, I would
    like the same returns as the single rows of data but multiple rows instead.

    If you look at the teamplayerlinks workbook under column H you will see the same value multiple times for each ID, when the formula finds that ID
    it will return rows of data per each ID starting from column A to column O.

    Your players formula returns all the data across the entire row once it finds the ID in column CE, I would like all the formulas to do the same.

    Hopefully the single return formula you created will work for all the workbooks needing a single row of data by simply changing the column and
    amount of rows to match each of the other formulas.

    I can verify that your original players formula does in fact work flawlessly, I haven't tried the column and amount of rows swap yet to see if it would work
    with the teams workbook.

    I don't see why it wouldn't work considering they are basically the same formula.
    Last edited by regularcat; 10-19-2014 at 08:18 PM.

  26. #26
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    I can now verify that the teams formula works flawlessly as well.

    I can also verify that it works flawlessly for all the other single row return workbooks that I have.

    Nicely done.

  27. #27
    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,939

    Re: Copy Paste Rows by Column Criteria

    If you base the extract on the TeamID in TeamPlayerLinks column H, using this (looking in to Teams)...
    =INDEX(teams.xlsx!A$2:A$21,MATCH($H2,teams.xlsx!AP$2:AP$21,0))

    This will produce teh exact same results for every row with the same TeamID. Is this what you want??

  28. #28
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    Quote Originally Posted by FDibbins View Post
    If you base the extract on the TeamID in TeamPlayerLinks column H, using this (looking in to Teams)...
    =INDEX(teams.xlsx!A$2:A$21,MATCH($H2,teams.xlsx!AP$2:AP$21,0))

    This will produce teh exact same results for every row with the same TeamID. Is this what you want??
    Not sure what you mean ?

    Using the teams workbook or the Team ID Reference workbook ?

    I would prefer the Team ID Reference workbook as the list used to search rather than the teams workbook.

    When I use the players/teams formula I enter the formula in cell B2 of either reference workbook I get exactly what I want.

    I think it would be harder using the teams workbook seeing there is already so much data in the workbook and the fact that
    the teamplayerlinks workbook I sent you is only some of the teams in the full workbook, if i were to use the full workbook I
    would be getting data I may not be looking for.
    Last edited by regularcat; 10-19-2014 at 09:08 PM.

  29. #29
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    After looking at my post I should have specified which workbook to use as the reference list, I apologize.

  30. #30
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    Let me know what you come up with, everything else is great.

  31. #31
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    If you get the chance now that I somewhat understand how the single return formula works, can you show me what I need to do to
    get the formula to return multiple rows ?

  32. #32
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    Quote Originally Posted by FDibbins View Post
    If you base the extract on the TeamID in TeamPlayerLinks column H, using this (looking in to Teams)...
    =INDEX(teams.xlsx!A$2:A$21,MATCH($H2,teams.xlsx!AP$2:AP$21,0))

    This will produce teh exact same results for every row with the same TeamID. Is this what you want??
    This formula does not work for what I am trying to do, I would need the formula to use the Team ID Reference workbook for it's list to find IDs in the teamplayerlinks workbook.

  33. #33
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    I feel almost selfish bumping this thread but it is close to being solved but with so many threads created daily I find my thread on the 4th page.

  34. #34
    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,939

    Re: Copy Paste Rows by Column Criteria

    Sorry for the delay, this thread got pushed way down, and I did not see it

    I will take another look at it for you

  35. #35
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    Quote Originally Posted by FDibbins View Post
    Sorry for the delay, this thread got pushed way down, and I did not see it

    I will take another look at it for you
    No problem, I appreciate your time and do not want to rush you, feel bad that I had to bump the thread.

    This forum has 100 new threads a day, I don't expect to be a priority.

  36. #36
    Registered User
    Join Date
    01-29-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy Paste Rows by Column Criteria

    Here is the sample you asked for, hope this helps you get a better understanding.
    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)

Similar Threads

  1. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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