+ Reply to Thread
Results 1 to 4 of 4

Export to CSV only when row contains data

  1. #1
    Registered User
    Join Date
    07-26-2010
    Location
    NL
    MS-Off Ver
    Excel 2016
    Posts
    74

    Export to CSV only when row contains data

    Hello,

    My worksheet creates a table with information trough the INDEX & MATCH formula's
    When there is no input found, a 0 is show. Most of the times only the first couple of rows contain data, the rest is 0.

    I would like to export this sheet to csv but when i do, all the rows with 0 are shown in the csv.

    Example:
    fname,lname,email,number,date
    John,Doe,johndoe@jd.com,C43D2,2016 08 16
    Jane,Doe,janedoe@jd.com,D723A,2016 08 16
    0,0,0,
    0,0,0,
    0,0,0,
    0,0,0,

    Is there a way to only export the rows that are filled??
    Say, when a email adress is given, the row marks as "complete" en needs to be exported?


    See the example in attachment.
    Anyone?
    Attached Files Attached Files
    Last edited by ABBOV; 08-16-2016 at 06:02 AM.

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Export to CSV only when row contains data

    Hi Abbov,

    it would be good if you provide sample workbook with desire output...
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Registered User
    Join Date
    07-26-2010
    Location
    NL
    MS-Off Ver
    Excel 2016
    Posts
    74

    Re: Export to CSV only when row contains data

    Quote Originally Posted by Naveed Raza View Post
    Hi Abbov,

    it would be good if you provide sample workbook with desire output...
    Added the example to the original post.

  4. #4
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Export to CSV only when row contains data

    Try this:
    Please Login or Register  to view this content.

+ 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. Replies: 0
    Last Post: 12-02-2014, 05:02 PM
  2. Need macro to export data and transpose it to a data table
    By Butcher1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-02-2014, 10:03 AM
  3. Export CSV data to Excel Userform using reference number to specify relevant data
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 06-20-2014, 05:41 PM
  4. Combine data from 4 workbooks and then export filtered data to individual files?
    By womanket in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2013, 12:20 PM
  5. I would need a macro to export data from base example workbook to export worbook
    By slato8 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-01-2012, 11:21 AM
  6. Excel data (sheet data + charts) export to ppt presentation
    By pntuehut99 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-28-2012, 05:55 AM
  7. Replies: 0
    Last Post: 10-14-2010, 08:22 AM

Tags for this Thread

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