Forum Discussion

okkoc's avatar
okkoc
Copper Contributor
Jan 11, 2024

Convert excel to csv

Hello I am trying to convert Excel file too csv file to use this in a python/pandas file. But I always get a ; in stead of a , . Can you please help me or give me instructions how to manage.
  • NikolinoDE's avatar
    Jan 12, 2024

    okkoc 

    When you save an Excel file as a CSV (Comma-Separated Values) file, the delimiter used depends on your regional settings in Excel. If you're getting a semicolon ; instead of a comma ,, it might be due to regional settings using semicolons as the default CSV separator.

    Here is how you can change the CSV separator in Excel:

    1. Open your Excel file.
    2. Click on "File" in the ribbon.
    3. Choose "Options" at the bottom of the left-hand menu.
    4. In the Excel Options dialog box, select "Advanced" from the left-hand menu.
    5. Scroll down to the "Editing options" section.
    6. Find the "Use system separators" option.
    7. Uncheck the "Use system separators" option.
    8. Set the "Decimal separator" to a period . and the "Thousands separator" to a comma ,.

    After making these changes, try saving your Excel file as a CSV again. The commas should now be used as separators in the CSV file.

    Here is how to save an Excel file as a CSV:

    1. Click on "File" in the ribbon.
    2. Select "Save As."
    3. Choose the location where you want to save the file.
    4. In the "Save as type" dropdown, choose "CSV (Comma delimited) (*.csv)."
    5. Click "Save."

    If you have made the changes to the regional settings correctly, this should save the file with commas as the separators in the CSV file. The text and steps were edited with the help of AI.

     

    My answers are voluntary and without guarantee!

     

    Hope this will help you.

    Was the answer useful? Mark as best response and like it!

    This will help all forum participants.

Resources