Solved

Exporting Data from Excel to .CSV format, for Blank Columns..?

Posted on 2012-04-05
2
174 Views
Last Modified: 2012-04-05
Experts,

I need to know how to export BLANK columns that are at the end of each record / row.?

When I SAVE AS a .CSV file, I don't get COMMA DELIMETERS for any row that that last 10 or so Columns are BLANK.

My receiving system needs to see the COMMA Delimeter even if the column is blank. This is ONLY  happening if the end  of each record row has blanks in the columns.

Thanks
0
Comment
Question by:MIKE
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 26

Accepted Solution

by:
pony10us earned 500 total points
ID: 37813361
Try:

Put a formula that evaluates to empty (=”" ) in the last column of  the rows that are empty:

1.select the range in the last column: edit->goto, click on the “Special…” button, Choose “Blanks” and click OK.

2.type the formula: =”"

3.hit ctrl-enter

Now when you save the document the appropriate number of delimeters should be present, even in rows with empty cells.
0
 
LVL 17

Author Closing Comment

by:MIKE
ID: 37813928
I found another solution as well.. a work-around really... I simply add some coding that I believe will NOT be found anywhere in the data to the LAST COLUMN for the rows that show blank cells at the end. So that last one will now contain a CODE. I decided on my full name spelled backwards with first letter of each name capitalized.

I then export to .CSV...and since the code is there...ALL "comma" delimeters are there.

Then using WordPad,... I do global FIND/REPLACE on the code...find the code and replace with a blank or nothing...

Worded like a charm

Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question