+ Reply to Thread
Results 1 to 12 of 12

Convert xls to csv

  1. #1
    Registered User
    Join Date
    11-27-2009
    Location
    NY, NY
    MS-Off Ver
    Excel 2003
    Posts
    8

    Convert xls to csv

    I am trying to save a file from xls to csv. One of my columns in the xls file is filled with numbers separated by commas but is saves as a text. Whenever I save the file as a csv it converts the numbers saved as a text to be saved as numbers so it screws my commas up and therefor messes up the entire file. How can I fix this?

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Help with converting from xls to csv

    Please post an example file so I don't have to guess. Just column 1 is ok...
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    11-27-2009
    Location
    NY, NY
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Help with converting from xls to csv

    Here is the sample. I need it to look exactly how it does in the xls file in the csv file. Whenever i try and save it as a csv file and then close and re-open it, it converts it to "numbers" instead of "text"
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Help with converting from xls to csv

    Instead of "opening" the CSV file with Excel, you need to start Excel with a blank sheet then import the CSV file as text using the Get External Data option of the Data Menu.

  5. #5
    Registered User
    Join Date
    11-27-2009
    Location
    NY, NY
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Help with converting from xls to csv

    I have the newest version of excel. Can you walk me through how to do it on this version? i saved the file as a xls originally because I needed to send it out via email. I cannot seem to find "get external data" in the data menu

  6. #6
    Registered User
    Join Date
    11-27-2009
    Location
    NY, NY
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Help with converting from xls to csv

    actually I think I got it but when it gets uploaded there is " " around the numbers. Is there any way to get rid of the " "? I have about 4000 rows, otherwise I would just do it myself by hand.

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Help with converting from xls to csv

    O.k., I'm not sure what you mean by "uploaded"; we are either saving as... or importing as... ...

    When the file is saved as a CSV file and viewed in Notepad, the data will have straight quotes around them; however, when imported into Excel as text, the quotes don't appear.

    If you are concerned about the quotes in the CSV file, you just do a "Replace All" op on the data to remove them all at once.

    Note that I tried importing as text both with and without the quotes with no problems. If I imported as General, though there were still no quotes, Excel converted the data to numeric with commas separating the digits into groups of three.

  8. #8
    Registered User
    Join Date
    11-27-2009
    Location
    NY, NY
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Help with converting from xls to csv

    I am able to do everything you are saying but when I save the csv file without the " " and open it again to view the file it converts that column into numbers not text. This only happens in the csv file and not the xls file. I am importing all of these things into the back end of my website and it keeps reading it as numbers. I am not sure why it will not save as text. I appreciate all the help you have been giving me.

  9. #9
    Registered User
    Join Date
    11-27-2009
    Location
    NY, NY
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Help with converting from xls to csv

    I need excel not to convert the data to numeric with commas separating the digits into groups of 3. The way I have it is very specific, with sometimes 4 numbers then a comma, etc.

  10. #10
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Convert xls to csv

    We seem to be doing something differently, I'm not sure what, though. You said:
    ...when I save the csv file without the " " and open it again...
    Open and import are not the same, so please see if this helps any:
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    11-27-2009
    Location
    NY, NY
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Convert xls to csv

    I think everything is all fixed now. I really appreciate your help.

  12. #12
    Registered User
    Join Date
    03-24-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Convert xls to csv

    Hi,

    Really "Forum Guru" you have done a great job.

    Few days back I have also faced the same problem while converting my .xls files in CSV format. At that moment i just searched on Google and found a simple to use tool its Birdie XLS to CSV Converter.

    It helps me out to convert my large group of XLS files to CSV. I must refer this tool to others as you can also try this, get the software from - http://www.birdiesoftware.com/xls-to-csv/

    Hope it is also useful for you....good luck buddy

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1