+ Reply to Thread
Results 1 to 4 of 4

copy row to new tab with condition

  1. #1
    Registered User
    Join Date
    10-29-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2003
    Posts
    2

    copy row to new tab with condition

    I am looking to find a way to automatically copy rows from worksheet 1 to worksheet 2 in an excel file when the value in a certain column is greater than zero, could someone please explain to me how to do this.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: copy row to new tab with condition

    Hif JFDIND, welcome to the forum.

    There are many ways to do this, the easiest being adding an INDEX/KEY column to your worksheet 1 to give an incremental number to the rows that match...then use an INDEX/MATCH on worksheet 2 to dynamically display the incremented rows from sheet1.

    If you post up a reasonable sample workbook, I can show you more directly what I mean. Click GO ADVANCED and use the paperclip icon to post up your workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-29-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: copy row to new tab with condition

    Thanks for the quick reply.

    What I want to do is have it so when column O equals greater than 0 it will take that row and paste it into the other sheet, I have attached an example of the worksheet as requested.

    Thanks,
    Adam.
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: copy row to new tab with condition

    1) Click in row1
    2) Select Data > Filter > AutoFilter to turn on the AutoFilter
    3) Click on the dropdown in column O
    4) Select Custom
    5) Filter by Greater than: zero
    6) All the matching rows are showing, now you can quickly copy them all at once to your other sheet.

    7) Click Data > Filter > AutoFilter to turn the filter off

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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