+ Reply to Thread
Results 1 to 10 of 10

Copy a range in a row to a new sheet if cell value in a column is greater than zero

  1. #1
    Registered User
    Join Date
    12-19-2012
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    7

    Question Copy a range in a row to a new sheet if cell value in a column is greater than zero

    Hi All,

    New to the forum and I would like to break the ice by asking how to copy a range of cells in a row on to another sheet if cell value in a column is greater than zero. I've attached a copy of a sample spreadsheet of what I am trying to achieve in this project.

    I will basically have a huge list of inventory in sheet 1 and I will need only the rows that have values greater than zero from column D to be copied over to Sheet 2 next available line.

    It would be nice if I could just a formula rather than using a code.

    Any help or suggestions would be greatly appreciated.


    Thanks!

    SampleCopy.xlsx

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Copy a range in a row to a new sheet if cell value in a column is greater than zero

    Can't transfer data with functions..

    SampleCopy.xlsm
    Elegant Simplicity............. Not Always

  3. #3
    Registered User
    Join Date
    12-19-2012
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Copy a range in a row to a new sheet if cell value in a column is greater than zero

    Thanks Andy, but I need it to copy the cells not transfer.

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Copy a range in a row to a new sheet if cell value in a column is greater than zero

    Then delete this line from the sub routine

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-19-2012
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Copy a range in a row to a new sheet if cell value in a column is greater than zero

    Thanks, but can you also change the code to transfer >0 quantity. It's currently transferring values of =0 quantity.

  6. #6
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Copy a range in a row to a new sheet if cell value in a column is greater than zero

    Sorry..

    Change the line

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-19-2012
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Copy a range in a row to a new sheet if cell value in a column is greater than zero

    Andy thanks. Everything is working great! Would it also be possible to transfer only "new" values and not to copy the same values if I do multiple transfers.

  8. #8
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Copy a range in a row to a new sheet if cell value in a column is greater than zero

    That's a good point... What I'll need to do is tag the rows that have been copied across with an entry in a spare column.

    SampleCopy.xlsm
    Last edited by AndyLitch; 04-04-2013 at 07:09 PM.

  9. #9
    Registered User
    Join Date
    12-19-2012
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Copy a range in a row to a new sheet if cell value in a column is greater than zero

    How do I refresh the list on sheet 1?

  10. #10
    Registered User
    Join Date
    12-19-2012
    Location
    Vancouver
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Copy a range in a row to a new sheet if cell value in a column is greater than zero

    Actually it might be a better option if am able to delete the items on sheet 2 and for the deleted items to automatically return in sheet 1. Once it returns to sheet 1, I also hope to be able to re-enter the quantities and transfer the values again in sheet 2. I think we are almost there... I really appreciate your help.

+ 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