Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Ashok
 
Posts: n/a
Default excel to csv

I have excel sheet with text in it.
I have to export or save it as csv file so that all the columns are
separated by comma and values in columns are enclosed in quotes.
The csv file should be like:
Name,"Password"
John Doe,"home"
Jane,"butterfly"
Johnson,"12jhn15"
Richard,"hamlet"
Laura,"34LB12JM"

How can this be achieved?



  #2   Report Post  
Posted to microsoft.public.excel.newusers
JLatham
 
Posts: n/a
Default excel to csv

Excel has .csv as one of the 'Save As' options under the File menu item.

Just type your information into Excel just as you want it to be laid out in
the .csv file and then use File | Save As and choose the
CSD (Comma Delimited) (*.csv)
choice in the Save as Type list in the file save dialog box.

The double quote marks will NOT be added except where they are required for
that type of file format. Normally the double quotes are only added to
surround text that contans a comma as part of the text itself. Example:

In Excel:
Smith, John mypassword
in the .csv file it would appear as
"Smith, John",mypassword

If the double quotes are must-haves, then simply make them part of the text
you've typed into the Excel cells.

You can examine the contents of a .csv file to see what it actually looks
like by opening it with any simple text editor such as Notepad or Wordpad.

"Ashok" wrote:

I have excel sheet with text in it.
I have to export or save it as csv file so that all the columns are
separated by comma and values in columns are enclosed in quotes.
The csv file should be like:
Name,"Password"
John Doe,"home"
Jane,"butterfly"
Johnson,"12jhn15"
Richard,"hamlet"
Laura,"34LB12JM"

How can this be achieved?




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
Stop excel from dropping the 0 in the beginning of a number? Rosewood Setting up and Configuration of Excel 12 April 4th 23 02:12 PM
Open Excel 2003 from Windows Explorer pmpjr Excel Discussion (Misc queries) 9 September 11th 06 03:58 PM
Need suggestions for some uses of Ms Excel Bible John Excel Discussion (Misc queries) 1 February 27th 06 05:30 PM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 08:07 PM


All times are GMT +1. The time now is 04:55 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"