Jak przekonwertować plik CSV do formatu Excel

⚡ Inteligentne podsumowanie

Importing a CSV file into Excel turns a plain text file of comma separated values into a formatted worksheet. This page explains what a CSV file is, imports one with the Text Import Wizard, handles other delimiters such as the slash, and compares the ways to open a CSV.

  • 📄 CSV Definition: A CSV is a plain text file in which each line is a record and each value is separated by a comma.
  • 📥 From Text: The DATA tab, From Text button opens the Text Import Wizard to bring a CSV into a worksheet.
  • 🔢 Delimited: Choose the Delimited option, then tick Comma so each value lands in its own column.
  • Other Delimiters: When the file uses a slash, a pipe, or a tab, choose Other and type the character on the Delimiters panel.
  • 🗂️. Umiejscowienie: The wizard finishes by placing the data in an existing or a new worksheet.
  • 🖱️. Two Ways: A CSV can be opened directly by double clicking, or imported through the wizard for full control of the columns.

Jak przekonwertować plik CSV do formatu Excel

A CSV file is one of the most common ways to move data between programs, because almost every application can read and write it. Excel opens a CSV in a few clicks and, with the Text Import Wizard, gives full control over how each column is read.

Co to jest plik CSV?

CSV stands for Comma Separated Values. It is a plain text file in which every line is one record, and the values inside a record are separated by a comma. Because it holds only text and separators, and no formatting, a CSV can be created and read by databases, web applications, and every spreadsheet program.

The limitation is that a CSV keeps no fonts, colours, formulas, or multiple sheets. It stores the raw data only, which is exactly why it is a reliable format for moving records from one system into Excel, where the formatting and formulas are added afterwards.

Jak importować/konwertować plik CSV do programu Excel

W tym samouczku zaimportujemy dane zewnętrzne z prostego pliku CSV zawierającego płatności klientów. Możesz pobrać plik CSV z tym ćwiczeniem.

Pobierz plik CSV

  • Otwórz nowy skoroszyt
  • Kliknij zakładkę DANE na wstążce
  • Kliknij przycisk Z tekstu
  • Pojawi się następujące okno

Importuj/konwertuj CSV do Excela

  • Przejdź do folderu, do którego pobrałeś plik CSV
  • Wybierz plik da.csv
  • Kliknij przycisk Importuj
  • Otrzymasz następujący kreator importu pliku tekstowego

Importuj/konwertuj CSV do Excela

  • Kliknij przycisk Dalej

Importuj/konwertuj CSV do Excela

  • Wybierz Przecinek w panelu Ograniczniki
  • Kliknij przycisk Dalej

Importuj/konwertuj CSV do Excela

  • Kliknij przycisk Zakończ

Importuj/konwertuj CSV do Excela

  • Kliknij przycisk OK
  • Otrzymasz następujące dane

Importuj/konwertuj CSV do Excela

Importing Other Delimiter Separated Files

W niektórych przypadkach możesz nie otrzymać pliku oddzielonego przecinkami, może to być plik oddzielony ukośnikiem (\), potokiem (|) lub innymi plikami oddzielonymi ogranicznikami. Przyjrzyjmy się, jak sobie z nimi poradzić.

Oto przykładowy plik wartości oddzielonych ukośnikiem (\), który można pobrać.

Pobierz plik CSV oddzielony ukośnikiem (\).

  • Otwórz nowy skoroszyt
  • Kliknij zakładkę DANE na wstążce
  • Kliknij przycisk Z tekstu
  • Przejdź do folderu, do którego pobrałeś plik i zaimportuj go
  • Otrzymasz następujący kreator importu pliku tekstowego

Importuj/konwertuj CSV do Excela

  • Kliknij przycisk Dalej

Importuj/konwertuj CSV do Excela

  • Teraz zamiast wybierać ogranicznik przecinka, wybierz inny i ustaw ukośnik (\) jako ogranicznik w panelu ograniczników
  • Następnie kliknij przycisk Dalej.
  • Następnie kliknij przycisk Zakończ
  • Teraz zaimportuj dane do istniejącego arkusza

Otrzymasz następujące dane

Importuj/konwertuj CSV do Excela

💡 Wskazówka: The same wizard handles a Tab, a Semicolon, or a Pipe. Whenever the preview in the wizard shows every value squeezed into one column, the wrong delimiter is selected, so switch to Other and type the correct character.

Open vs Import: Two Ways to Bring a CSV into Excel

A CSV can reach a worksheet in two ways, and the right choice depends on how much control the columns need. The table below compares them.

Metoda wykonania W jaki sposób Najlepszy dla
Open directly Double click the file, or File then Open A clean, comma separated file where the default column types are fine
Kreator importu tekstu DATA tab, From Text, then choose the delimiter A file with an unusual delimiter, or columns that must be set as text or date
Power Query (Get Data) DATA tab, Get Data, From Text/CSV on newer Excel A file that must be cleaned, filtered, and refreshed repeatedly

⚠️ Ostrzeżenie: Opening a CSV directly can change the data. A long number such as a phone number or an ID may lose its leading zero, and a value that looks like a date may be converted. Use the Text Import Wizard and set that column to Text to keep the value exactly as it is.

FAQ

Excel reads a value like 007 as the number 7 and drops the zeros. Import the file with the Text Import Wizard and set that column to Text, so the value is kept exactly as written.

In the Text Import Wizard, choose Delimited, then on the Delimiters panel tick Other and type the character, such as a slash, a pipe, or a semicolon. The preview then splits the values into the correct columns.

Set the File Origin to 65001: Unicode (UTF-8) at the top of the Text Import Wizard. This tells Excel to read the accents and other characters correctly instead of showing garbled text.

Yes. AI features such as Copilot in Excel detect the delimiter, build the Power Query steps to split and clean the columns, and load the result into a table. The user confirms the column types and the output.

Yes. AI assistants scan the imported columns, flag rows with a missing value or a wrong data type, and highlight duplicates. This helps catch problems that a raw CSV hides before the data is used in a report.

Podsumuj ten post następująco: