+ Reply to Thread
Results 1 to 15 of 15

Look for something in sheet1 if it meets a criteria paste entire row in sheet2 without gap

  1. #1
    Registered User
    Join Date
    07-11-2019
    Location
    Perth
    MS-Off Ver
    2010, 365
    Posts
    7

    Look for something in sheet1 if it meets a criteria paste entire row in sheet2 without gap

    Hello guys,

    I am not an excel guru like you helpful people, so thank you in advance.

    I have a heap of data that i am trying to break up in to different worksheets. If worksheet1 column E contains the letters AB - but not the letters AB4 - (I have AB1, AB2, AB3, AB2/AB3, AB1/AB2, AB4, CA1, CA2, etc) how do i then copy and paste the entire row into sheet 2 without any blank rows as i go down?

    Thanks Again!

  2. #2
    Forum Contributor
    Join Date
    01-25-2013
    Location
    near Philly, PA USA
    MS-Off Ver
    Excel 2019
    Posts
    178

    Re: Look for something in sheet1 if it meets a criteria paste entire row in sheet2 without

    It would help if you sent an example file.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Look for something in sheet1 if it meets a criteria paste entire row in sheet2 without

    Hello and welcome to the forum.

    The easiest way to do this would probably be by using a filter.

    Highlight column E > Data > Filter > Click on the filter in cell E1 > Text Filters > Custom Filter
    contains: AB
    And
    does not contain: AB4
    OK

    Now highlight all of your data and copy it then paste into Sheet2.

  4. #4
    Registered User
    Join Date
    07-11-2019
    Location
    Perth
    MS-Off Ver
    2010, 365
    Posts
    7

    Re: Look for something in sheet1 if it meets a criteria paste entire row in sheet2 without

    Thanks for that. However i wont be able to do that, because i will need people to be able to use the file without having my knowledge.
    Last edited by AliGW; 07-14-2019 at 04:34 AM. Reason: Please don't quote unnecessarily!

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Look for something in sheet1 if it meets a criteria paste entire row in sheet2 without

    I am afraid that I do not understand the issue.

    how do i then copy and paste the entire row into sheet 2 without any blank rows as i go down?
    I answered this question in post #3.

    Thanks for that. However i wont be able to do that, because i will need people to be able to use the file without having my knowledge.
    Are you saying that other people are going to be doing this but don't know how to filter and copy/paste? I would say to use your knowledge to show them.

    If this is not what you were picturing, what does an ideal solution look like to you?
    Last edited by 63falcondude; 07-11-2019 at 08:36 AM.

  6. #6
    Registered User
    Join Date
    07-11-2019
    Location
    Perth
    MS-Off Ver
    2010, 365
    Posts
    7

    Re: Look for something in sheet1 if it meets a criteria paste entire row in sheet2 without

    my ideal solution would be, when i get paste the data in sheet1, all the different sheets i.e. sheets2,3,4,etc populate automatically based on sheet1. I hope that makes sense?

    What i am saying is that, the knowledge i have regarding the data, they wont necessarily have. I wont and they wont always be there to keep sharing the knowledge with the others who will use it.

    I will try uploading a test workbook i just made.

    Thanks for your help!
    Attached Files Attached Files

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Look for something in sheet1 if it meets a criteria paste entire row in sheet2 without

    If you want this to be automated, that is not copy/paste. I would use Power Query for this.

    1) Highlight A1:G11 > Data > From Table > OK
    2) Select the drop-down in the Place header > Text Filters > Contains > contains: AB > And > does not contain: AB4 > OK
    3) Close & Load

    Now, as new data is added to the bottom of the table in Sheet1, all that the user has to do is refresh the table in Sheet2.
    If you want to refresh all of the tables at once, that can be done through Data > Refresh All.

    See attachment.
    Attached Files Attached Files
    Last edited by 63falcondude; 07-11-2019 at 08:55 AM.

  8. #8
    Registered User
    Join Date
    07-11-2019
    Location
    Perth
    MS-Off Ver
    2010, 365
    Posts
    7

    Re: Look for something in sheet1 if it meets a criteria paste entire row in sheet2 without

    oh thats neat.

    And if i dont have power query?

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Look for something in sheet1 if it meets a criteria paste entire row in sheet2 without

    Excel 2016 and newer comes with Power Query (Get & Transform).

    If you have Excel 2010 or 2013, you can download the add-in for free directly from the Microsoft site.

  10. #10
    Registered User
    Join Date
    07-11-2019
    Location
    Perth
    MS-Off Ver
    2010, 365
    Posts
    7

    Re: Look for something in sheet1 if it meets a criteria paste entire row in sheet2 without

    I dont have permission to download. We use the basic excel 2010. Not sure if i will be able to download it.
    Last edited by AliGW; 07-14-2019 at 04:34 AM. Reason: Please don't quote unnecessarily!

  11. #11
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Look for something in sheet1 if it meets a criteria paste entire row in sheet2 without

    I get the feeling that anything I recommend isn't going to work for you. I'll send out a request for someone else to assist if they choose to.

  12. #12
    Registered User
    Join Date
    07-11-2019
    Location
    Perth
    MS-Off Ver
    2010, 365
    Posts
    7

    Re: Look for something in sheet1 if it meets a criteria paste entire row in sheet2 without

    we are stuck in a world of formulas and vba codes.
    i wrote a formula but i dont know how to skip the blanks. I also wasnt able to exclude AB4.
    thanks for your help, i will try to see if IT will download for me.

  13. #13
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Look for something in sheet1 if it meets a criteria paste entire row in sheet2 without

    If you are okay with formulas, you can change your data into a table then use this in A2 of Sheet2:

    =IFERROR(INDEX(Sheet1!A:A,SMALL(IF(ISNUMBER(SEARCH("AB",Table1[Place]))*ISERROR(SEARCH("AB4",Table1[Place])),ROW(Table1[Place])),ROWS($1:1))),"") Ctrl Shift Enter

    Drag the formula to the right and down as far as needed then format column A as dates.

    See attachment.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    07-11-2019
    Location
    Perth
    MS-Off Ver
    2010, 365
    Posts
    7

    Re: Look for something in sheet1 if it meets a criteria paste entire row in sheet2 without

    Hey bud, i couldnt get the table1[place] to work. it would error out even when i made sheet1 as a table.
    Last edited by AliGW; 07-14-2019 at 04:35 AM. Reason: Please don't quote unnecessarily!

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Look for something in sheet1 if it meets a criteria paste entire row in sheet2 without

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. copy entire row from sheet1 into sheet2 matching ID and column header
    By dileepkmr319 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2018, 12:02 PM
  2. Insert a Copy of an Entire Row (including formatting) from Sheet2 to Sheet1
    By a99x1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2016, 05:51 PM
  3. Cut and paste data from raw data to sheet1 and sheet2. based on criteria
    By xlhelp7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-22-2015, 12:26 AM
  4. Replies: 6
    Last Post: 07-25-2013, 02:58 PM
  5. [SOLVED] Copy and Paste Entire Row from Sheet1->Sheet2 based on text string match in Sheet1 Row
    By dmlovic in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-17-2012, 08:42 AM
  6. Find random variable from sheet1, in sheet2, and copy entire row to sheet3
    By TMorville in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-12-2010, 06:27 AM
  7. Select an entire row from Sheet1 via drop down in Sheet2
    By johnnywinter in forum Excel General
    Replies: 7
    Last Post: 08-23-2007, 09:15 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