PC Review


Reply
Thread Tools Rate Thread

CSV File format problem

 
 
plmanikandan@gmail.com
Guest
Posts: n/a
 
      14th Feb 2007
Hi,
I have a .csv file with following data

No,Name
0001,ii
0002,ww

I need to change the csv file in excel and insert into a database thru
my c# programs.
The "No" column is rounded off when i opened in excel and it is shown
as 1.
Is there any settings to change this type of behaviour
I want to display that "No" column as text in excel by default.
I don't want the trimming of zero in the "No" column

Thanks & Regards,
Mani

 
Reply With Quote
 
 
 
 
Beege
Guest
Posts: n/a
 
      14th Feb 2007
(E-Mail Removed) wrote:
> Hi,
> I have a .csv file with following data
>
> No,Name
> 0001,ii
> 0002,ww
>
> I need to change the csv file in excel and insert into a database thru
> my c# programs.
> The "No" column is rounded off when i opened in excel and it is shown
> as 1.
> Is there any settings to change this type of behaviour
> I want to display that "No" column as text in excel by default.
> I don't want the trimming of zero in the "No" column
>
> Thanks & Regards,
> Mani
>

Rename your .csv to .txt, import into excel, format No column as
text... HTH

Beege
 
Reply With Quote
 
Thomas Hardy
Guest
Posts: n/a
 
      14th Feb 2007

"Beege" <(E-Mail Removed)> schrieb im Newsbeitrag
news(E-Mail Removed)...
> (E-Mail Removed) wrote:
>> Hi,
>> I have a .csv file with following data
>>
>> No,Name
>> 0001,ii
>> 0002,ww
>>
>> I need to change the csv file in excel and insert into a database thru
>> my c# programs.
>> The "No" column is rounded off when i opened in excel and it is shown
>> as 1.
>> Is there any settings to change this type of behaviour
>> I want to display that "No" column as text in excel by default.
>> I don't want the trimming of zero in the "No" column
>>
>> Thanks & Regards,
>> Mani
>>

> Rename your .csv to .txt, import into excel, format No column as text...
> HTH
>
> Beege


Spot on Beege,

It is a weakness in Excel that it makes assumptions about your data, even in
some cases when you clearly define a cell as text.

I always download data from other systems with the .txt extension so that I
can keep some level of control.

Regards

Thomas


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Link from Chart File to Data File / Format Problem Brad Bross Microsoft Excel Charting 0 31st Jul 2008 10:15 PM
File Format Problem - I think! =?Utf-8?B?QmlsbCBIYWxs?= Microsoft Access Getting Started 1 11th Jun 2005 11:28 AM
File Format Problem =?Utf-8?B?fk5pY29sZQ==?= Windows XP General 3 17th Feb 2005 06:02 AM
.avi format file problem =?Utf-8?B?UnVwZXJ0?= Windows XP MovieMaker 16 14th Oct 2004 08:48 PM
Re: CSV File format problem Jim Rech Microsoft Excel Programming 2 18th Jun 2004 02:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:11 AM.