A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Discussion (Misc queries)
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Excel - CSV Format and column width



 
 
Thread Tools Display Modes
  #1  
Old June 7th 05, 06:36 PM
[email protected]
external usenet poster
 
Posts: n/a
Default Excel - CSV Format and column width


I am using CSV format in Excel and need to be able to define different
column widths. Is there no way to do this ?

If there isnt a way, is there any other text file format I can use to
store this information in ?

Kevin.

Ads
  #2  
Old June 7th 05, 07:05 PM
Dave Peterson
external usenet poster
 
Posts: n/a
Default

Comma separated values files usually contain fields that vary in length (between
records). The comma is the delimited that tells the program reading the file
what goes in each field.

If you want fixed width fields (like for a mainframe application????), you may
be able to just adjust the columnwidths and do File|saveAs (and choose
"formatted text (space delimited) (*.prn)" in the "save as type".

Saving a .csv file with fixed length fields seems kind of unusual to me.

wrote:
>
> I am using CSV format in Excel and need to be able to define different
> column widths. Is there no way to do this ?
>
> If there isnt a way, is there any other text file format I can use to
> store this information in ?
>
> Kevin.


--

Dave Peterson
  #3  
Old June 7th 05, 11:44 PM
[email protected]
external usenet poster
 
Posts: n/a
Default


CSV file - Thats just what I thought, but its not the way Excel treats
it. No matter where the comma is placed, all the columns are of equal
length.

Dave Peterson wrote:
> Comma separated values files usually contain fields that vary in length (between
> records). The comma is the delimited that tells the program reading the file
> what goes in each field.
>
> If you want fixed width fields (like for a mainframe application????), you may
> be able to just adjust the columnwidths and do File|saveAs (and choose
> "formatted text (space delimited) (*.prn)" in the "save as type".
>
> Saving a .csv file with fixed length fields seems kind of unusual to me.
>


  #5  
Old June 8th 05, 06:58 PM
[email protected]
external usenet poster
 
Posts: n/a
Default

Thats correct DAve. In Excel its always the same length but in Notepad
it shows just fine.

Dave Peterson wrote:
> Is the data in each record (for the same field) always the same length?
>
> If you open the .csv file using Notepad, does it look ok there?
>
>
>
> wrote:
> >
> > CSV file - Thats just what I thought, but its not the way Excel treats
> > it. No matter where the comma is placed, all the columns are of equal
> > length.


  #7  
Old June 9th 05, 03:56 PM
[email protected]
external usenet poster
 
Posts: n/a
Default


Definitely - my whole point of performing this exercise is to
automating sending a report - which is currently manual - via a CSV
file. If I have to re-format the file and send it to everyone, it
defeats the main purpose of this exercise.

Thanks for all your help.
Kevin.

Dave Peterson wrote:
> So maybe just widening the columns after you open the .csv file in excel would
> be sufficient?
>


  #8  
Old June 9th 05, 07:40 PM
Dave Peterson
external usenet poster
 
Posts: n/a
Default

You may want to share the file as a .txt file.

And give them a workbook that contains a macro that imports that .txt file. You
could add headers/filters/page layout/pivottables/charts and graphs and other
stuff.

Send out the .txt file whenever you want. But include instructions to open the
workbook that contains the macro and run that macro to import the data.

If you add enough nice stuff to the macro (not just formatting), the end users
may even like it better.

wrote:
>
> Definitely - my whole point of performing this exercise is to
> automating sending a report - which is currently manual - via a CSV
> file. If I have to re-format the file and send it to everyone, it
> defeats the main purpose of this exercise.
>
> Thanks for all your help.
> Kevin.
>
> Dave Peterson wrote:
> > So maybe just widening the columns after you open the .csv file in excel would
> > be sufficient?
> >


--

Dave Peterson
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Format Excel column to notify with a reminder L Mieth Excel Worksheet Functions 2 June 8th 05 01:53 PM
Format Excel column to notify with a reminder? L Mieth Excel Discussion (Misc queries) 0 June 3rd 05 01:05 PM
How to Format Excel Sheet ToShowRowNumbers but not the column alph Debie Schilling Excel Discussion (Misc queries) 1 May 13th 05 10:21 PM
Column format when merging Excel data to Word labels Red Excel Discussion (Misc queries) 1 April 6th 05 03:40 AM
Excel's column width format box rly2rys New Users to Excel 2 December 15th 04 04:17 AM


All times are GMT +1. The time now is 03:41 AM.


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