Csv how to open with excel

Import or export text (.txt or .csv) files

There are two ways to import data from a text file with Excel: you can open it in Excel, or you can import it as an external data range. To export data from Excel to a text file, use the Save As command and change the file type from the drop-down menu.

There are two commonly used text file formats:

  • Delimited text files (.txt), in which the TAB character (ASCII character code 009) typically separates each field of text.

  • Comma separated values text files (.csv), in which the comma character (,) typically separates each field of text.

You can change the separator character that is used in both delimited and .csv text files. This may be necessary to make sure that the import or export operation works the way that you want it to.

Note: You can import or export up to 1,048,576 rows and 16,384 columns.

Import a text file by opening it in Excel

You can open a text file that you created in another program as an Excel workbook by using the Open command. Opening a text file in Excel does not change the format of the file — you can see this in the Excel title bar, where the name of the file retains the text file name extension (for example, .txt or .csv).

  1. Go to File > Open and browse to the location that contains the text file.

  2. Select Text Files in the file type dropdown list in the Open dialog box.

  3. Locate and double-click the text file that you want to open.

    • If the file is a text file (.txt), Excel starts the Import Text Wizard. When you are done with the steps, click Finish to complete the import operation. See Text Import Wizard for more information about delimiters and advanced options.

    • If the file is a .csv file, Excel automatically opens the text file and displays the data in a new workbook.

      Note: When Excel opens a .csv file, it uses the current default data format settings to interpret how to import each column of data. If you want more flexibility in converting columns to different data formats, you can use the Import Text Wizard. For example, the format of a data column in the .csv file may be MDY, but Excel’s default data format is YMD, or you want to convert a column of numbers that contains leading zeros to text so you can preserve the leading zeros. To force Excel to run the Import Text Wizard, you can change the file name extension from .csv to .txt before you open it, or you can import a text file by connecting to it (for more information, see the following section).

Import a text file by connecting to it (Power Query)

You can import data from a text file into an existing worksheet.

  1. On the Data tab, in the Get & Transform Data group, click From Text/CSV.

  2. In the Import Data dialog box, locate and double-click the text file that you want to import, and click Import.

  3. In the preview dialog box, you have several options:

    • Select Load if you want to load the data directly to a new worksheet.

    • Alternatively, select Load to if you want to load the data to a table, PivotTable/PivotChart, an existing/new Excel worksheet, or simply create a connection. You also have the choice of adding your data to the Data Model.

    • Select Transform Data if you want to load the data to Power Query, and edit it before bringing it to Excel.

If Excel doesn’t convert a particular column of data to the format that you want, then you can convert the data after you import it. For more information, see Convert numbers stored as text to numbers and Convert dates stored as text to dates.

Export data to a text file by saving it

You can convert an Excel worksheet to a text file by using the Save As command.

  1. Go to File > Save As.

  2. Click Browse.

  3. In the Save As dialog box, under Save as type box, choose the text file format for the worksheet; for example, click Text (Tab delimited) or CSV (Comma delimited).

    Note: The different formats support different feature sets. For more information about the feature sets that are supported by the different text file formats, see File formats that are supported in Excel.

  4. Browse to the location where you want to save the new text file, and then click Save.

  5. A dialog box appears, reminding you that only the current worksheet will be saved to the new file. If you are certain that the current worksheet is the one that you want to save as a text file, click OK. You can save other worksheets as separate text files by repeating this procedure for each worksheet.

    You may also see an alert below the ribbon that some features might be lost if you save the workbook in a CSV format.

For more information about saving files in other formats, see Save a workbook in another file format.

Import a text file by connecting to it

You can import data from a text file into an existing worksheet.

  1. Click the cell where you want to put the data from the text file.

  2. On the Data tab, in the Get External Data group, click From Text.

  3. In the Import Data dialog box, locate and double-click the text file that you want to import, and click Import.

    Follow the instructions in the Text Import Wizard. Click Help button image on any page of the Text Import Wizard for more information about using the wizard. When you are done with the steps in the wizard, click Finish to complete the import operation.

  4. In the Import Data dialog box, do the following:

    1. Under Where do you want to put the data?, do one of the following:

      • To return the data to the location that you selected, click Existing worksheet.

      • To return the data to the upper-left corner of a new worksheet, click New worksheet.

    2. Optionally, click Properties to set refresh, formatting, and layout options for the imported data.

    3. Click OK.

      Excel puts the external data range in the location that you specify.

If Excel does not convert a column of data to the format that you want, you can convert the data after you import it. For more information, see Convert numbers stored as text to numbers and Convert dates stored as text to dates.

Export data to a text file by saving it

You can convert an Excel worksheet to a text file by using the Save As command.

  1. Go to File > Save As.

  2. The Save As dialog box appears.

  3. In the Save as type box, choose the text file format for the worksheet.

    • For example, click Text (Tab delimited) or CSV (Comma delimited).

    • Note: The different formats support different feature sets. For more information about the feature sets that are supported by the different text file formats, see File formats that are supported in Excel.

  4. Browse to the location where you want to save the new text file, and then click Save.

  5. A dialog box appears, reminding you that only the current worksheet will be saved to the new file. If you are certain that the current worksheet is the one that you want to save as a text file, click OK. You can save other worksheets as separate text files by repeating this procedure for each worksheet.

  6. A second dialog box appears, reminding you that your worksheet may contain features that are not supported by text file formats. If you are interested only in saving the worksheet data into the new text file, click Yes. If you are unsure and would like to know more about which Excel features are not supported by text file formats, click Help for more information.

For more information about saving files in other formats, see Save a workbook in another file format.

The way you change the delimiter when importing is different depending on how you import the text.

  • If you use Get & Transform Data > From Text/CSV, after you choose the text file and click Import, choose a character to use from the list under Delimiter. You can see the effect of your new choice immediately in the data preview, so you can be sure you make the choice you want before you proceed.

  • If you use the Text Import Wizard to import a text file, you can change the delimiter that is used for the import operation in Step 2 of the Text Import Wizard. In this step, you can also change the way that consecutive delimiters, such as consecutive quotation marks, are handled.

    See Text Import Wizard for more information about delimiters and advanced options.

If you want to use a semi-colon as the default list separator when you Save As .csv, but need to limit the change to Excel, consider changing the default decimal separator to a comma — this forces Excel to use a semi-colon for the list separator. Obviously, this will also change the way decimal numbers are displayed, so also consider changing the Thousands separator to limit any confusion.

  1. Clear Excel Options > Advanced > Editing options > Use system separators.

  2. Set Decimal separator to , (a comma).

  3. Set Thousands separator to . (a period).

When you save a workbook as a .csv file, the default list separator (delimiter) is a comma. You can change this to another separator character using Windows Region settings. 

Caution: Changing the Windows setting will cause a global change on your computer, affecting all applications. To only change the delimiter for Excel, see Change the default list separator for saving files as text (.csv) in Excel.

  1. In Microsoft Windows 10, right-click the Start button, and then click Settings.

  2. Click Time & Language, and then click Region in the left panel.

  3. In the main panel, under Regional settings, click Additional date, time, and regional settings.

  4. Under Region, click Change date, time, or number formats.

  5. In the Region dialog, on the Format tab, click Additional settings.

  6. In the Customize Format dialog, on the Numbers tab, type a character to use as the new separator in the List separator box.

  7. Click OK twice.

  1. In Microsoft Windows, click the Start button, and then click Control Panel.

  2. Under Clock, Language, and Region, click Change date, time, or number formats.

  3. In the Region dialog, on the Format tab, click Additional settings.

  4. In the Customize Format dialog, on the Numbers tab, type a character to use as the new separator in the List separator box.

  5. Click OK twice.

Note:  After you change the list separator character for your computer, all programs use the new character as a list separator. You can change the character back to the default character by following the same procedure.

Need more help?

You can always ask an expert in the Excel Tech Community or get support in the Answers community.

See Also

Import data from external data sources (Power Query)

Need more help?

CSV, or comma-separated values, is a common format for storing and transmitting content, such as contacts, calendars, databases, and spreadsheets. CSV files are used to move data between programs that aren’t ordinarily able to exchange data.

Excel is supposed to read CSV files, but in most cases, when you open CSV file in Excel, you see scrambled data that’s impossible to read. This article demonstrates how to convert CSV to excel.

How to open CSV file in Excel:

  • Open CSV files in Excel 2016 and later
  • Open CSV files in Excel 2003

BONUS: Find out how to export iPhone contacts to Excel.


Open a CSV file in Excel

Excel 2016 and later

  1. Create a new Excel file and click Data ➔ From Text/CSV.
  2. Convert CSV to Excel

  3. Find the CSV file on your PC and click Import.
  4. excel open csv file

  5. Preview the resulting table in the pop-up window and click Load.
  6. Check the data and click on Load

    Change the delimiter and encoding type if needed.

  7. All done.
  8. how to convert csv to excel


Excel 2003

  1. Open a new Excel document and navigate to the Data tab.
  2. opening a csv file in excel

  3. Click From Text.
  4. importing csv file into excel

  5. Navigate to the CSV file you wish to open and click Import.
  6. opening csv file in excel

  7. In the newly-opened window, choose Delimited. Then click Next.
  8. text import wizard in excel 1st step delimited

  9. Check the box next to the type of delimiter: in most cases, this is either a semicolon or a comma. Then click Next.
  10. text import wizard in excel

  11. Click Finish.
  12. excel text import wizard complete

That’s it! you have just imported a CSV file to Excel!

how to open a csv file in excel

Whether you’re generating financial reports, processing your accounts for month end, or simply moving information between data sources to analyze it for valuable insights, chances are you’ll need to get external data (e.g., access a text-based flat file format like a comma separated values (CSV) document). And when you do, it’s also probable you’ll do so by importing it from a text file into one of the most common applications for handling CSV files: Microsoft Excel.

The actual process for creating an excel workbook from text files like the CSV format is fairly straightforward. But it’s important to follow the process exactly to avoid potential pitfalls and make sure your data makes the transition smoothly and completely.

Why Knowing How to Open CSV Files in Excel Matters

Native Microsoft Excel files (.xlsx files) are designed for that application and provide support for macros, separate data tabs, and other advanced features. They’re meant to be used both as part of the larger Microsoft Office suite and as a data manipulation and management tool that can import and process data for exporting to other applications.

CSV files (their file extension mirrors their name: .csv) are rarely accessed directly. Instead, they’re used for storing and transferring information that’s been broken into manageable chunks, such as calendar appointments, statistics, customer databases, contact information, etc. They don’t support macros or plug-ins or more advanced features, but that’s intentional, as once the data’s in Excel, it can be manipulated, connected to other workbooks, analyzed using pivot tables, etc.

NOTE: Despite the name of the format, data values may be separated by commas, semicolons, or other punctuation, depending on how the original was created.

They’re text-based (and can even be created in very simple text editor applications such as Notepad, and can be saved directly to, and created from, the .txt format), easy to create and use, and let you handle large amounts of information without worrying about being locked into a specific application.

CSV files come in four types:

  • CSV UTF-8 (Eight-bit Unicode Transformation Format) (Comma delimited)
  • CSV (Comma delimited)
  • CSV (Macintosh)
  • CSV (MS-DOS)

Each format has its distinct uses, but all four are supported by Microsoft Excel. That’s important, because it gives you more flexibility in managing your data; you can easily import from any of the formats and export copies to any of the four CSV formats (using the Save As…dialogue) for use in other applications as needed.

That said, while all four formats are supported natively, simply opening a CSV file rather than importing it into an excel worksheet will often result in a screen full of gibberish. Importing to an Excel sheet from the CSV file preserves the data’s utility and accessibility (It saves you the headache of trying to pick through an improperly formatted document, too!).

Given Excel’s large market share and the near ubiquity it shares with CSV files in the modern office environment, understanding how to import data from the CSV format to Excel is a critical skill for financial and other professionals who need to access, create, collect, and manage data across different platforms, in various file types, on a regular basis.

Importing to an Excel sheet from the CSV file preserves the data’s utility and accessibility (It saves you the headache of trying to pick through an improperly formatted document, too!).

Open CSV Files in Microsoft Excel the Right Way

Generally, you’ll rely on Excel’s built-in Import Text Wizard to help you get data from your CSV file into your existing Excel workbook (or a new worksheet). You can also try opening it directly from Excel’s File menu or with a double-click on the file in Explorer, but that can be an exercise in frustration if your settings aren’t properly configured.

Depending on your location and the version of Excel you’re using, Excel will rely on its localized Region and Language settings to make certain assumptions about files you use, and how files will most likely be formatted. This includes the “default” file separator; different regions have different delimiters. In the United States, for example, commas are most often used, but in Germany, it’s the semicolon that gets the heaviest usage.

Naturally, things can get even more complicated if you’re working with files created in other locations with different regional settings.

The more data you’re working with, and the more diverse your data sources, the higher the chances simply double-clicking to open a .csv file (or using the Open command) will end in woe rather than work-friendly data.

Another important caveat: while .txt files and .csv files are essentially the same in many ways, always save any .txt file you plan to import into Excel as a .csv file before trying to import it. You can do this very easily in Notepad by simply changing the extension to “.csv” in the “Save As…” dialogue.

To use the more complicated, but also much more reliable, Text Import Wizard:

  1. Open a New Excel Document, or open a new worksheet in your existing Excel workbook.
  2. Navigate to the “Data” tab.
  3. Click on the “From Text” button.
  4. Navigate to the folder holding the .csv file you want to open and click on the correct file name.
  5. Click “Import.”
  6. The Text Import Wizard will open. Make sure you choose the “Delimited” radio button/checkbox under “Original Data Type” in the open dialog box. If your data has headers, don’t forget to select the “My data has headers” checkbox as well.
  7. Click “Next.”
  8. Select the checkbox corresponding to the correct delimiter used in the original .csv document. This will usually be a comma or a semicolon, but could be a tab, a space, or even a special character. It’s important to choose the correct delimiter to ensure the data fields can be properly parsed during the import.
  9. Choose the correct text qualifier (usually double quotes) from the drop-down list.
  10. Click “Next.”
  11. In the Data Preview field, only the first column of data will be highlighted. Drag the horizontal window control all the way to the right.
  12. While holding down the Shift key, click on the final column heading. This should select and highlight every column in the Data Preview pane.
  13. Choose “Text” as your Column Data Format. Every column should now be labeled “Text” in the Data Preview pane.
  14. Review the Data Preview window to ensure your data looks the way it should.
  15. Click “Finish.”
  16. If prompted to select a location for your data (e.g., “Where do you want to put the data?”), click on whichever cell in the worksheet (or new workbook, or new worksheet in your existing workbook) you want to receive the first item in the .csv file and then click “OK.”

Your data should appear in your spreadsheet, organized in columns and, where relevant, with their original headers. If your data contained fields with leading zeros, double-check to make sure they made the transition through the Import Text Wizard.

Bringing CSV Data into Microsoft Excel Doesn’t Have to Be Difficult

When it comes to your data, it pays to be cautious, even when dealing with a relatively simple task like importing CSV data into Excel. By taking the time to practice proper protocols when you either open or import data from CSV files, you can save time and frustration, and make sure your information is complete and accurate for optimal reporting, analysis, and strategic planning.

Содержание

  1. Opening CSV files in Microsoft Excel
  2. Evaluating data with Microsoft Excel
  3. Открытие файла формата CSV в Microsoft Excel
  4. Открытие документов CSV
  5. Способ 1: Обычное открытие файла
  6. Способ 2: использование Мастера текстов
  7. Способ 3: открытие через вкладку «Файл»
  8. CSV Files into Excel
  9. Converting CSV Files in Excel
  10. Explanation
  11. How to Open, Import & Convert CSV File into Excel?
  12. Example #1 – Open CSV File in WorkSheet
  13. Example #2 – Using Windows Explorer
  14. Example #3 – Import CSV File Through External Data
  15. How to Use CSV Files in Excel?
  16. Things to Remember
  17. Recommended Articles

Opening CSV files in Microsoft Excel

Optimizely Campaign creates CSV Stands for «comma-separated values»; tabular data in a plain text file separated by the comma character. files in UTF-8 without BOM. Microsoft Excel incorrectly interprets the format as ISO-88591. To correctly open CSV files in Excel, perform the following steps:

  1. Open a blank Excel workbook.
  2. In the Data tab, click Get Data >From File >From Text/CSV.
  3. Select the file to open and click Import.
  4. In the File origin area, select 65001: Unicode (UTF-8) and Semicolon in the Delimiters area.
  5. Click Load.

Evaluating data with Microsoft Excel

The Excel format allows rich formatting, calculations, and output in pivot tables and in a chart.

To use your own Excel template, download the default template, customize it then upload it. This Excel template contains the report data in the first worksheet grouped by the selected groupings. The second worksheet contains a copy of the data without sum fields. Use this worksheet to reference data you want to display in other tables or charts (for example, pivot tables).

In general, the following standards apply when formatting the Excel templates:

  • Supported file formats. Optimizely Campaign supports the Excel ’97 format (file suffix .xls) and Excel 2007 (file suffix .xlsx). However, Optimizely does not guarantee support of functions and formatting of these two formats.
  • Data export and data format. Exported data is exported into the first table with sum fields and second worksheet table without sum fields. Do not change these worksheets; otherwise, the correct export of the data fails. The format of the header page is completely adopted, but not the content. The data formats of the first data row (row 2 in the Excel worksheet) are adopted. Thus, values can be formatted and the formatting can be changed.
  • Evaluations. You can perform evaluations on the second and subsequent worksheets. Because an unlimited number of rows may be added when executing the report, chart data, pivot tables and formulas must be designed for a very large number of data rows. This especially applies to reports without time restriction.
  • Pivot tables. Automatic updates must be turned on startup. You find this option under PivotTable Options >Data >Refresh data when opening the file.

Upon request, Optimizely creates Excel templates with pivot tables, charts and using the layout of your choice. Contact customer support.

Источник

Открытие файла формата CSV в Microsoft Excel

Текстовые документы формата CSV применяются многими компьютерными программами для обмена данными между друг другом. Казалось бы, что в Экселе можно произвести запуск такого файла стандартным двойным кликом по нему левой кнопкой мыши, но далеко не всегда в таком случае данные отображаются корректно. Правда, есть другой способ просмотреть информацию, содержащуюся в файле CSV. Давайте узнаем, как это можно сделать.

Открытие документов CSV

Название формата CSV является аббревиатурой наименования «Comma-Separated Values», что переводится на русский язык, как «значения, разделенные запятыми». Действительно, в этих файлах в качестве разделителей выступают запятые, хотя в русскоязычных версиях, в отличие от англоязычных, все-таки принято применять точку с запятой.

При импорте файлов CSV в Эксель актуальной является проблема воспроизведения кодировки. Зачастую документы, в которых присутствует кириллица, запускаются с текстом изобилующим «кракозябрами», то есть, нечитаемыми символами. Кроме того, довольно частой проблемой является вопрос несоответствия разделителей. В первую очередь, это касается тех ситуаций, когда мы пытаемся открыть документ, сделанный в какой-то англоязычной программе, Экселем, локализованном под русскоязычного пользователя. Ведь в исходнике разделителем является запятая, а русскоязычный Excel воспринимает в этом качестве точку с запятой. Поэтому опять получается некорректный результат. Мы расскажем, как решить и эти проблемы при открытии файлов.

Способ 1: Обычное открытие файла

Но вначале мы остановимся на варианте, когда документ CSV создан в русскоязычной программе и уже готов для открытия в Эксель без дополнительных манипуляций над содержимым.

Если программа Excel уже является установленной для открытия документов CSV на вашем компьютере по умолчанию, то в этом случае достаточно кликнуть по файлу двойным щелчком левой кнопки мыши, и он откроется в Экселе. Если же связь ещё не установлена, то в этом случае нужно выполнить ряд дополнительных манипуляций.

    Находясь в Проводнике Windows в той директории, где расположен файл, кликаем правой кнопкой мыши по нему. Запускается контекстное меню. Выбираем в нем пункт «Открыть с помощью». Если в дополнительном открывшемся списке имеется наименование «Microsoft Office», то кликаем по нему. После этого документ просто запустится в вашем экземпляре Экселя. Но, если данного пункта вы не обнаружите, то щелкайте по позиции «Выбрать программу».

Если же наименования «Microsoft Office» в окне выбора программы вы не обнаружили, то кликайте по кнопке «Обзор…».
После этого запустится окно Проводника в директории размещения установленных на вашем компьютере программ. Как правило, данная папка называется «Program Files» и находится она в корне диска C. Вы должны совершить переход в Проводнике по следующему адресу:

C:Program FilesMicrosoft OfficeOffice№

Где вместо символа «№» должен находиться номер версии установленного на вашем компьютере офисного пакета Microsoft. Как правило, такая папка одна, поэтому выбирайте каталог Office, какой бы там номер не стоял. Переместившись в указанную директорию, ищите файл под названием «EXCEL» или «EXCEL.EXE». Вторая форма наименования будет в том случае, если у вас включено отображений расширений в Проводнике Windows. Выделите этот файл и жмите на кнопку «Открыть…».

После этого содержимое документа CSV будет открыто в Экселе. Но данный способ подойдет исключительно в том случае, если не будет проблем с локализацией или с отображением кириллицы. К тому же, как мы видим, придется выполнить некоторое редактирование документа: так как информация не во всех случаях вмещается в текущий размер ячеек, их нужно расширять.

Способ 2: использование Мастера текстов

Импортировать данные из документа формата CSV можно при помощи встроенного инструмента Excel, который называется Мастер текстов.

  1. Запускаем программу Эксель и переходим во вкладку «Данные». На ленте в блоке инструментов «Получение внешних данных» щелкаем по кнопке, которая называется «Из текста».
  2. Запускается окно импорта текстового документа. Перемещаемся в директорию расположения целевого файла CVS. Выделяем его наименование и жмем на кнопку «Импорт», размещенную в нижней части окна.
  3. Активируется окно Мастера текстов. В блоке настроек «Формат данных» переключатель должен стоять в позиции «С разделителями». Чтобы гарантировать корректное отображение содержимого выбранного документа, особенно если оно содержит кириллицу, обратите внимание, чтобы в поле «Формат файла» было установлено значение «Юникод (UTF-8)». В обратном случае требуется установить его вручную. После того, как все вышеуказанные настройки установлены, жмите на кнопку «Далее».
  4. Затем открывается второе окно Мастера текстов. Вот тут очень важно определить, какой символ является разделителем в вашем документе. В нашем случае в этой роли выступает точка с запятой, так как документ русскоязычный и локализован именно для отечественных версий ПО. Поэтому в блоке настроек «Символом-разделителем является» мы устанавливаем галочку в позицию «Точка с запятой». Но если вы импортируете файл CVS, который оптимизирован под англоязычные стандарты, и в роли разделителя в нем выступает запятая, то вам следует установить галочку в позицию «Запятая». После того, как вышеуказанные настройки произведены, жмем на кнопку «Далее».
  5. Открывается третье окно Мастера текстов. Как правило, никаких дополнительных действий в нем производить не нужно. Единственное исключение, если один из представленных в документе наборов данных имеет вид даты. В этом случае требуется пометить данный столбец в нижней части окна, а переключатель в блоке «Формат данных столбца» установить в позицию «Дата». Но в подавляющем большинстве случаев достаточно настроек по умолчанию, при которых установлен формат «Общий». Так что можно просто жать на кнопку «Готово» внизу окна.
  6. После этого открывается небольшое окошко импорта данных. В нем следует указать координаты левой верхней ячейки области, в которой будут располагаться импортируемые данные. Это можно сделать, просто установив курсор в поле окна, а затем кликнув левой кнопкой мышки по соответствующей ячейке на листе. После этого её координаты будут занесены в поле. Можно жать на кнопку «OK».
  7. После этого содержимое файла CSV будет вставлено на лист Excel. Причем, как мы можем видеть, отображается оно более корректно, чем при использовании Способа 1. В частности, не требуется дополнительного расширения размеров ячеек.

Способ 3: открытие через вкладку «Файл»

Существует также способ открыть документ CSV через вкладку «Файл» программы Excel.

  1. Запускаем Excel и перемещаемся во вкладку «Файл». Щелкаем по пункту «Открыть», расположенному в левой части окна.
  2. Запускается окно Проводника. Следует переместиться в нем в ту директорию на жестком диске ПК или на съемном носителе, в которой расположен интересующий нас документ формата CSV. После этого нужно переставить переключатель типов файла в окне в позицию «Все файлы». Только в этом случае документ CSV будет показан в окне, так как он не является типичным файлом Excel. После того, как наименование документа отобразилось, выделяем его и жмем на кнопку «Открыть» в нижней части окна.
  3. После этого запустится окно Мастера текстов. Все дальнейшие действия выполняем по тому же алгоритму, что и в Способе 2.

Как видим, несмотря на некоторые проблемы с открытием документов формата CSV в Экселе, решить их все-таки можно. Для этого нужно воспользоваться встроенным инструментом Excel, который называется Мастер текстов. Хотя, для многих случаев вполне достаточно и применения стандартного метода открытия файла двойным щелчком левой кнопки мыши по его наименованию.

Источник

CSV Files into Excel

Converting CSV Files in Excel

It is easy to read the data presented in comma-separated values format by opening with Excel but scrambled data makes it hard to read. There are also a few problems associated, like unexpected data changes, by changing the format when the CSV file is opened directly. This article shows different ways to convert the CSV files into Excel by covering the following topics.

Excel has a handling feature for various data presented in different formats, including Comma Separated Values (CSV). In addition, it contains various useful functions that help import these files and easily convert them into Excel sheet tables. As a result, it is the most commonly used for transmitting and storing data related to contacts, statistical information, and calendar appointments.

Table of contents

You are free to use this image on your website, templates, etc., Please provide us with an attribution link How to Provide Attribution? Article Link to be Hyperlinked
For eg:
Source: CSV Files into Excel (wallstreetmojo.com)

Explanation

The data available in CSV format has been used for several years. It indicates that data is separated by the comma using the common fields. Different ways are available to convert the CSV files into Excel. Those include:

  • Direct opening CSV files with Excel.
  • Double-clicking and opening the file through the windows explorer option.
  • Importing CSV files into worksheets.

The main intention behind the conversion of CSV data into Excel is that supportability. Each comma-separated value is placed into each cell to separate easily with the conversion. The data presented in the CSV format limits the capabilities of a user in generating insights from the data in performing the data analysis.

How to Open, Import & Convert CSV File into Excel?

Let us discuss some examples of the comma-separated values file in Excel.

Example #1 – Open CSV File in WorkSheet

Step 1: We must open the Excel worksheet and go to the “File” menu.

It shows the “Open” dialog box, as shown in the figure.

Step 2: Then, we need to go to the CSV file’s directory. Select the “All Files” on the right of the “File name” field.

Select the name of the CSV file. Then, click on “Open” to open the file with Excel.

Step 3: It directly displays the data into the new workbook, as shown in the figure.

Data separated by a comma is placed into each cell in the Excel sheet.

Step 4: We need to apply the formatting to the title fields to differentiate the headers of columns.

Note: In this Excel, if we open a .txt file instead of a .csv file, “Import Text Wizard” is used to import the data into Excel.

Example #2 – Using Windows Explorer

Step 1: We must go to the CSV file’s directory. Right-click on the file and choose “Open with.”

Step 2: Select the choose default program option on the right side of the “Open with” command, as shown in the figure. Then, choose Excel (desktop) among the recommended programs.

Step 3: As a result, now, the file is opened, and data is displayed, as shown in the figure.

Example #3 – Import CSV File Through External Data

This method requires a lot of steps to import data compared to the other two techniques. However, it helps in importing the data into the current worksheet.

The steps to import CSV files through external data are as follows:

    First, we must open an Excel worksheet and place the cursor into a cell where we want to locate the data by importing from a .txt file or .csv file.

Then, we need to go to the Data tab on the ribbon and click From Text/CSV under the Get External Data group, as shown in the screenshot.

Browse to the location of the CSV or txt file to import the data. Then, select the .csv file and click on the Import button.

The ‘Example CSV File wizard’ will open when clicking on Import.

Then we need to set the delimiter as Comma and click on ‘Load to’ to move to the next step.

It opens the ‘Import data’ dialog box. Here, we must choose the existing worksheet, place the cell address, and click OK.

Consequently, the data will be imported into the Excel sheet, as shown in the screenshot.

We can use the data for various purposes in Excel.

How to Use CSV Files in Excel?

  • Storing of data and performing the required calculations on the data.
  • Improving the security of the files as excel files are not opened by any other software.
  • Possible to save the data in tabular format with the extension of .xls and .xlsx.
  • Display of data in rows and columnsRows And ColumnsA cell is the intersection of rows and columns. Rows and columns make the software that is called excel. The area of excel worksheet is divided into rows and columns and at any point in time, if we want to refer a particular location of this area, we need to refer a cell.read more to represent the fields.
  • Using the required format for the data of different types.
  • Development of graphs and chartsGraphs And ChartsIn Excel, a graph or chart lets us visualize information we’ve gathered from our data. It allows us to visualize data in easy-to-understand pictorial ways. The following components are required to create charts or graphs in Excel: 1 — Numerical Data, 2 — Data Headings, and 3 — Data in Proper Order.read more on the numerical data if presented.
  • Using the statistical analysis of the data.
  • Using the programming and macros and developing the data in developer mode.
  • Improving the flexibility in reading the large data by using sorting and filtering.

Things to Remember

  • Opening the CSV files is an easy way to convert the CSV data into Excel, and it does not change the file format to .xls or .xlsx
  • Default settings are provided for when the .csv file is opened with Excel.

Recommended Articles

This article is a guide to CSV files into Excel. Here, we discuss how to open, import, and convert CSV files into Excel, practical examples, and a downloadable Excel template. You may learn more about Excel from the following articles: –

Источник

It is easy to read the data presented in comma-separated values format by opening with Excel but scrambled data makes it hard to read. There are also a few problems associated, like unexpected data changes, by changing the format when the CSV file is opened directly. This article shows different ways to convert the CSV files into Excel by covering the following topics.

Excel has a handling feature for various data presented in different formats, including Comma Separated Values (CSV). In addition, it contains various useful functions that help import these files and easily convert them into Excel sheet tables. As a result, it is the most commonly used for transmitting and storing data related to contacts, statistical information, and calendar appointments.

This section facilitates examples of ways to convert the Comma Separated Values files into excel.

Table of contents
  • What Is Converting CSV Files In Excel?
    • Explanation
    • How To Open, Import & Convert CSV File Into Excel?
    • How to Use CSV Files in Excel?
    • Important Things To Note
    • Recommended Articles

CSV-Files-into-Excel

  • Converting CSV files in excel is an easy process. CSV stands for Comma separated Values. It indicates that the values will be separated by a comma.
  • We can have CSV files in Excel in two different ways. One is by importing the file, and the other one is by opening the file.
  • We should remember that the format of the CSV file inserted using the open method will be in .csv format and will not change into .xlsx or .xls formats.
  • For CSV files, excel allows a maximum of 1,048,576 rows and 16,384 columns.

Explanation

We have been using the data available in CSV format for several years. It indicates that data is separated by a comma using the common fields. Different ways are available to convert the CSV files into Excel. Those include:

  • Direct opening of CSV files with Excel.
  • Double-clicking and opening the file through the windows explorer option.
  • Importing CSV files into worksheets.

The main intention behind the conversion of CSV data into Excel is that supportability. Each comma-separated value is placed into each cell to separate easily with the conversion. The data presented in the CSV format limits the capabilities of a user in generating insights from the data in performing the data analysis.

How To Open, Import & Convert CSV File Into Excel?

Let us discuss some examples of the comma-separated values file in Excel to understand how to open, import and convert CSV files into Excel.

You can download this CSV Files into Excel Template here – CSV Files into Excel Template

Example #1 – Open CSV File In WorkSheet

Step 1: We must open the Excel worksheet and go to the File menu.

CSV Files into Excel Example 1

It shows the Open dialog box, as shown in the figure.

Example 1.1

Step 2: Then, we need to go to the CSV file’s directory. Select All Files on the right of the File name field.

CSV Files into Excel Example 1.2

Select the name of the CSV file. Then, click on Open to open the file with Excel.

Example 1.3

Step 3: It directly displays the data in the new workbook, as shown in the figure.

CSV Files into Excel Example 1.4

Data separated by a comma is placed into each cell in the Excel sheet.

Step 4: We need to apply the formatting to the title fields to differentiate the headers of columns.

Example 1.5

Step 5: Use the data for required purposes by applying the excel functions and formula.

Note: In this Excel, if we open a .txt file instead of a .csv file, Import Text Wizard is used to import the data into Excel.

Example #2 – Using Windows Explorer

Step 1: We must go to the CSV file’s directory. Right-click on the file and choose Open with.

Example 1.6

Step 2: Select the choose default program option on the right side of the Open with command, as shown in the figure. Then, choose Excel (desktop) among the recommended programs.

CSV Files into Excel Example 1.8

Step 3: As a result, now, the file is opened, and data is displayed, as shown in the figure.

Example 1.9

Example #3 – Import CSV File Through External Data

This method requires a lot of steps to import data compared to the other two techniques. However, it helps in importing the data into the current worksheet.

The steps to import CSV files through external data are as follows:

  1. First, we must open an Excel worksheet and place the cursor into a cell where we want to locate the data by importing from a .txt file or .csv file.

    CSV Files into Excel Example 1.13

  2. Then, we need to go to the Data tab on the ribbon and click From Text/CSV under the Get External Data group, as shown in the screenshot.

    CSV Files into Excel Example 1.10.0

  3. Browse to the location of the CSV or txt file to import the data. Then, select the .csv file and click on the Import button.

    CSV Files into Excel Example 1.12

  4. The Example CSV File wizard will open when clicking on Import.

    CSV Files into Excel Example 1.14

  5. Then we need to set the delimiter as Comma and click on ‘Load to’ to move to the next step.

    CSV Files into Excel Example 1.15

  6. It opens the ‘Import data’ dialog box. Here, we must choose the existing worksheet, place the cell address, and click OK.

    CSV Files into Excel Example 1.16

  7. Consequently, the data will be imported into the Excel sheet, as shown in the screenshot.

    CSV Files into Excel Example 1.17

We can use the data for various purposes in Excel.

How to Use CSV Files in Excel?

  • Storing data and performing the required calculations on the data.
  • Improving the security of the files as Excel files are not opened by any other software.
  • Possible to save the data in tabular format with the extension of .xls and .xlsx.
  • Display of data in rows and columns to represent the fields.
  • Using the required format for the data of different types.
  • Development of graphs and charts on the numerical data if presented.
  • Using the statistical analysis of the data.
  • Using the programming and macros and developing the data in developer mode.
  • Improving the flexibility in reading large data by using sorting and filtering.

Important Things To Note

  • Opening the CSV files is an easy way to convert the CSV data into Excel, and it does not change the file format to .xls or .xlsx
  • Default settings are provided for when the .csv file is opened with Excel.

Frequently Asked Questions

1. What is CSV file in excel?

CSV (Comma separated Values) are the values separated by commas in Excel. This feature is available in any version, from 365 to 2007 version.

2. What are the two ways to insert CSV files into Excel?

In Excel, we have 2 ways to insert CSV files. One is by importing and another, by opening. The shortcut to open a CSV file in Excel is Ctrl +O.

3. Which is better? Opening or importing a CSV file into Excel?

Though both methods are used commonly to insert CSV files into Excel, opening a file uses default data formatting settings. We cannot decide how to display the data.

If the data has other values (such as data formats), it is better to import the CSV file into Excel to control how to display the data.

Recommended Articles

This article is a guide to CSV files into Excel. Here, we discuss how to open, import, and convert CSV files into Excel, practical examples, and a downloadable Excel template. You may learn more about Excel from the following articles: –

  • Excel CSV UTF8
  • CSV vs. Excel
  • What is OneDrive Excel?
  • Power Query Excel

Понравилась статья? Поделить с друзьями:
  • Csv for excel 2007
  • Csv files not opening in excel
  • Csv files excel mac
  • Csv file opened in excel
  • Csv file open with excel