+ Reply to Thread
Results 1 to 6 of 6

copy rows out of a datasheet based on a code number and past these rows in a new sheet

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    55

    copy rows out of a datasheet based on a code number and past these rows in a new sheet

    Hi, can anyone help me out with the following:

    From a datasheet I like to copy only the rows (A-AE) where the code in column AF match with the code in cell AF1 and paste those rows in a separate sheet "sheet2LAND" (starting in row 5).

    See file attached.

    Thanks in advance for your help!!

    Rgds, Robert
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: copy rows out of a datasheet based on a code number and past these rows in a new shee

    Please Login or Register  to view this content.

    Here is a second way of doing this that may be faster if you have a large file
    Please Login or Register  to view this content.
    Last edited by alansidman; 04-11-2018 at 10:31 AM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: copy rows out of a datasheet based on a code number and past these rows in a new shee

    Another option
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-28-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: copy rows out of a datasheet based on a code number and past these rows in a new shee

    Hi Alansidman, thanks very much for your help. It works fine!!

    Rgds, Robert

  5. #5
    Registered User
    Join Date
    01-28-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: copy rows out of a datasheet based on a code number and past these rows in a new shee

    Hi Fluff13, this works fine too, thanks!

    Rgds, Robert

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: copy rows out of a datasheet based on a code number and past these rows in a new shee

    Glad we could help & thanks for the feedback

+ 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. [SOLVED] How to copy various number of rows and past it to a different row
    By Saturn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2016, 09:18 AM
  2. [SOLVED] Copy Past cut rows based on conditions to different sheets
    By moonbreakker in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-29-2015, 08:55 AM
  3. vba code to copy number of rows in based on the input message
    By prabhuduraraj09 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2014, 12:38 AM
  4. copy and past rows on multiple sheets into master sheet
    By asqw in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-13-2014, 06:59 AM
  5. copy/past rows based on a value in a new worksheet
    By Wacky in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2013, 10:37 AM
  6. [SOLVED] Excel VBA/Macro - Copy Number of Rows based on the number in a cell to another sheet
    By diane.alexander58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2012, 11:32 AM
  7. Replies: 2
    Last Post: 10-01-2009, 09:32 AM

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