#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 921
Default Writing to csv

Hi,

I am writing data to a csv. There are 3 columns.

I want the csv output to look like this (without a comma after the last
column data)

Column1 Column2 Column3
data,data2,data3
data,data2,data3
.......

But the csv looks like
data,data2,data3,
data,data2,data3,

Thanks for your help
  #2   Report Post  
Posted to microsoft.public.excel.misc
dlw dlw is offline
external usenet poster
 
Posts: 510
Default Writing to csv

Excel doesn't normally do that. There must be something in the 4th column
that is causing the comma after the 3rd one. Maybe right that column in the
sheet and delete it to make sure there is nothing there.

"Jeff" wrote:

Hi,

I am writing data to a csv. There are 3 columns.

I want the csv output to look like this (without a comma after the last
column data)

Column1 Column2 Column3
data,data2,data3
data,data2,data3
......

But the csv looks like
data,data2,data3,
data,data2,data3,

Thanks for your help

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 921
Default Writing to csv

Yes - I see now - I had a "Comma" after the last piece of data - when I
remove it it works

Thanks!

"dlw" wrote:

Excel doesn't normally do that. There must be something in the 4th column
that is causing the comma after the 3rd one. Maybe right that column in the
sheet and delete it to make sure there is nothing there.

"Jeff" wrote:

Hi,

I am writing data to a csv. There are 3 columns.

I want the csv output to look like this (without a comma after the last
column data)

Column1 Column2 Column3
data,data2,data3
data,data2,data3
......

But the csv looks like
data,data2,data3,
data,data2,data3,

Thanks for your help

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
writing if formulas mafarmer Excel Worksheet Functions 1 December 5th 06 04:07 PM
Writing a formula changetires Excel Discussion (Misc queries) 1 June 27th 06 05:18 PM
Writing a Marco Joey Excel Discussion (Misc queries) 0 August 8th 05 08:10 PM
writing a formula wolfmasterr Excel Discussion (Misc queries) 3 May 23rd 05 02:27 PM
Writing a Formula indansr About this forum 0 May 16th 05 08:51 PM


All times are GMT +1. The time now is 01:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"