+ Reply to Thread
Results 1 to 2 of 2

Code to copy data but ignore any cels with zero

  1. #1
    Forum Contributor
    Join Date
    06-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    100

    Code to copy data but ignore any cels with zero

    Hi guys,

    I've got a code set up that copies about 15 rows of data currently. The problem I have is that I don't want all these columns copied.

    Some times we might have data in 1 out the 15 columns, other times we might have data in 12 out the 15. if data isn't present in a row column B will always have a zero in it and this means that any rows below this will also have zeros and be empty. So im basically looking for the first zero in a column and taking all rows above this zero.

    Any ideas?

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Code to copy data but ignore any cels with zero

    Hi ZeDoctor,

    Use can filter out Column B which are non zeros and copy that filtered rows to worksheet of another workbook.

    Following is the code sample to copy and paste the filter rows :

    Please Login or Register  to view this content.

    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

+ 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] Formula to ignore blank cells and copy data that meets criteria?
    By Office_Dummy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-27-2014, 12:29 PM
  2. Copy cels from one file to another based on Date
    By mirenoba in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-07-2013, 12:31 AM
  3. copy cels which have data to another worksheet, in a list form
    By Chris Rosco in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-10-2012, 02:50 PM
  4. How to extract data from one cell to several cels?
    By Lukablue in forum Excel General
    Replies: 1
    Last Post: 08-01-2007, 10:25 AM
  5. Autofill cels based on two dates in adjacent cels
    By William2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2006, 06:57 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