+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Saving excel as text adds carriage returns for empty cells

  1. #1
    Registered User
    Join Date
    08-18-2009
    Location
    York, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Saving excel as text adds carriage returns for empty cells

    Sorry for the size of this file. I made it as small a sample as I thought would show my problem.

    I'm having a problem. If you look at the "export" sheet in the attached spreadsheet you will notice 6 rows of data. Behind the scenes each cell on this sheet has a "if" statement. The if statement is trying to only display those records that meet a certain criteria based on data it finds on the "data" sheet.

    Visually this sheet looks like if you save this sheet as text you will end up with a text file that has 6 rows in it. However when you do this you end up with 6 records and 94 rows showing as just carriage returns. These extra rows are the hidden (should be blank) rows created from the If statement in those rows.

    How can I construct a if statement so when I save this sheet as a text file only the "visible" rows get exported.

    In normal use data starts at the first row and goes down to some point and then from there it's "blank". I will not be dealing with random blocks of data with blanks in between.

    Thanks in advance.

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Saving excel as text adds carriage returns for empty cells

    Hi andyclay,

    It would help if you attached your attachment
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

+ 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