+ Reply to Thread
Results 1 to 6 of 6

Removing blank cells from csv

  1. #1
    Registered User
    Join Date
    12-28-2012
    Location
    vegas
    MS-Off Ver
    Excel 2003
    Posts
    55

    Removing blank cells from csv

    I have a large set of .csv files distributed across many subfolders of a folder... the root folder does not have .csv in it, just the subfolders have csv files.
    In some of the .csv, there are certain cells which are blank, but these blank cells show up when I view the file in openoffice, here is an example.

    example.csv

    Generally, each csv has only a few columns of data. For example..you can see cells A5:A9 dont seem to have content, but show up in the file as blank cells. This file only has one columns of data. I am looking for a macro which will go through and remove all these blaNk cells in all the subfolders of the main folder.
    I appreciate any help you can provide..
    thanks

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Removing blank cells from csv

    Quote Originally Posted by steve777888 View Post
    but these blank cells show up when I view the file in openoffice
    explain better please, what do you mean for show up ? Your file is a normal text file with some Carriage Retutn at the end.
    Last edited by patel45; 08-26-2013 at 12:37 AM.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    12-28-2012
    Location
    vegas
    MS-Off Ver
    Excel 2003
    Posts
    55

    Re: Removing blank cells from csv

    If you launch openoffice first..(Im using version 3.4.1), then select spreadsheet.. then do a file open and open example.csv, you will see a PREVIEW window that shows cells A5:A9, even though there is nothing obvious in those cells. I do not want those cells showing up at the preview stage, if those cells or (rows) are deleted in the csv and resaved, you will see that when open it again, they will not show up in the preview. Hope that helps..

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Removing blank cells from csv

    Please Login or Register  to view this content.
    Last edited by patel45; 08-26-2013 at 02:59 PM.

  5. #5
    Registered User
    Join Date
    12-28-2012
    Location
    vegas
    MS-Off Ver
    Excel 2003
    Posts
    55

    Re: Removing blank cells from csv

    I think this works...I will look at it more closely later today and will update. thank you for the prompt response though.

  6. #6
    Registered User
    Join Date
    12-28-2012
    Location
    vegas
    MS-Off Ver
    Excel 2003
    Posts
    55

    Re: Removing blank cells from csv

    [SOLVED] i believe this is ok as far as I can tell..
    I saw a few issues, but I think it was related to the data set itself and not an issue with the macro
    I have not had time to check thoroughly on this aspect..

    thank you very much, it was very helpful

+ 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. Removing Blank Cells
    By pickslides in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2011, 12:48 AM
  2. removing blank cells
    By kmknowles in forum Excel General
    Replies: 17
    Last Post: 03-04-2010, 05:14 PM
  3. Removing blank cells
    By eclipsenetworkz in forum Excel General
    Replies: 2
    Last Post: 05-16-2008, 07:49 PM
  4. [SOLVED] Removing blank cells...
    By Jambruins in forum Excel General
    Replies: 0
    Last Post: 03-31-2006, 03:10 PM
  5. Removing blank cells
    By Dallas101 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-01-2006, 02:40 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