Download ArticleDownload Article

Comma-separated value (CSV) files contain data from a table in a plain text format. Although CSV files can be opened with text editors, the data they contain is best viewed using a spreadsheet program. Because CSV files use a special formatting, the only way to ensure that they display correctly is to import them using a special process. This How.com.vn teaches you how to properly import CSV files into Microsoft Excel, Google Sheets, and OpenOffice Calc.

Method 1
Method 1 of 3:

Microsoft Excel

Download Article
  1. How.com.vn English: Step 1 Open Microsoft Excel on your computer.
    It'll be in your Windows menu (PC) or your Applications folder (Mac).
    • The simple way to open a CSV file is to click Open on the welcome screen, select your CSV file, and then click Open. However, this may not display the data in the CSV as intended. Follow this method to properly open your CSV file without losing formatting and other data.
  2. How.com.vn English: Step 2 Click Blank Worksheet.
    It's in the middle section.
    Advertisement
  3. How.com.vn English: Step 3 Click the Data tab.
    It's at the top of Excel.
  4. How.com.vn English: Step 4 Click From Text.
    It's on the left side of the toolbar. This opens the Import window.
  5. How.com.vn English: Step 5 Select the CSV file and click Import.
    This launches the Text Import Wizard, which lets you customize how the file imports into Excel.
  6. How.com.vn English: Step 6 Select Delimited.
    It's the first option in the upper-left corner of the window.
  7. How.com.vn English: Step 7 Click Next to continue.
  8. Step 8 Check the box next to "Comma."
    If any other items are checked in the "Delimiters" section, remove those checkmarks now.
  9. How.com.vn English: Step 9 Click Next to continue.
  10. How.com.vn English: Step 10 Select all of the columns in the preview.
    Here's how:
    • Click the header of the first column to select it.
    • Scroll to the last column list using the scrollbar if it isn't visible.
    • Hold down the Shift key as you click the last column header. All columns are now selected.
  11. How.com.vn English: Step 11 Select Text as the column data format.
    This is in the upper-left corner.
  12. How.com.vn English: Step 12 Click Finish.
    Now you'll see your CSV file without any unexpected changes to its format.
  13. Advertisement
Method 2
Method 2 of 3:

Google Sheets

Download Article
  1. How.com.vn English: Step 1 Go to https://docs.google.com/spreadsheets....
    Go to https://docs.google.com/spreadsheets. If you're already signed in to your Google account, this will display Google Sheets, the free Google alternative to Excel. If not, follow the on-screen instructions to sign in now.
    • Google Sheets is free, but you must have a Google account to it. If you don’t have a Google account, click Create Account and follow the on-screen prompts to create one now.
  2. How.com.vn English: Step 2 Click +.
    It's the multicolored plus sign in the upper-left corner of the page. This creates a blank Sheets file.
  3. How.com.vn English: Step 3 Click the File menu.
    It's at the top-left corner of Sheets.
  4. How.com.vn English: Step 4 Click Import.
    The "Import file" window will open.
  5. How.com.vn English: Step 5 Click the Upload tab.
    This is the tab you'll need to be on to upload the file from your computer.
  6. How.com.vn English: Step 6 Select or drag the file.
    You can drag the CSV file to the middle of the dotted box to start the upload, or click Select a file from your device to select it from your computer.
    • If you see a blue Select button at the bottom-left corner after choosing your file, click it to continue.
  7. Step 7 Select Replace spreadsheet on the "Import file" window.
    If it's already selected, you can leave it alone.
  8. Step 8 Select Comma under "Separator type."
    This tells Sheets to use commas as the separators, which is important for CSV files.
  9. Step 9 Select No under "Convert text to numbers, dates, and formulas."
    This prevents Sheets from changing the contents of the file during the import.
  10. How.com.vn English: Step 10 Click the green Import data button.
    This imports the CSV into sheets as it was intended to be seen.
  11. Advertisement
Method 3
Method 3 of 3:

OpenOffice Calc

Download Article
  1. How.com.vn English: Step 1 Download OpenOffice from...
    Download OpenOffice from OpenOffice Calc. If you don't have Microsoft Office and prefer installing an app on your computer rather than using Google Sheets, OpenOffice Calc is a great free alternative. Just select your operating system from the dropdown menu and click Download, then run the installer. The only app in the suite you'll need for CSV files is Calc, so make sure to select that one. Feel free to also install any of the other included software.
  2. How.com.vn English: Step 2 Open OpenOffice Calc.
    Once you've installed the software, you'll find Calc in your Windows menu (PC) or the Applications folder (Mac).
  3. How.com.vn English: Step 3 Click the File menu and select Open.
    This menu is in the upper left corner and will open a window to browse for files on your computer.
  4. Step 4 Select Text CSV in the "File type" menu.
    You may have to scroll a bit down the list to find it.
  5. How.com.vn English: Step 5 Select a CSV file and click Open.
    This opens the "Text Import" screen.[1]
  6. Step 6 Select the "Separate By" radio button.
    This is under the “Separator Options” header.
  7. Step 7 Select the "Comma" checkbox.
    This tells Calc to use the commas in the CSV file to delineate individual columns.
  8. How.com.vn English: Step 8 Click OK.
    The contents of your CSV file will now appear correctly in Calc.
  9. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      About This Article

      How.com.vn English: Nicole Levine, MFA
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for How.com.vn. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions. This article has been viewed 385,140 times.
      How helpful is this?
      Co-authors: 7
      Updated: May 14, 2021
      Views: 385,140
      Categories: Office
      Article SummaryX

      1.Open a blank worksheet in Excel.
      2.Click the Data tab and select From Text.
      3.Select the CSV file and click Import.
      4.Select "Delimited" and choose Next.
      5.Check the box next to "Comma" and click Next.
      6.Select all of the columns in the preview.
      7.Click Finish.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 385,140 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement