Преобразование данных, разделённых табуляцией или точкой с запятой
- Выбор
- Конвертировать
Even called CSV, the separator is not always a comma. There is data separated by tabs or semicolons. In Convert CSV to Excel (.xlsx) you choose the "Delimiter" and split into columns correctly.
Шаги
- Choose a file with "Choose a CSV file", or paste into "CSV content".
- Choose the type under "Delimiter": "Detect automatically", "Comma", "Tab" or "Semicolon".
- Press "Make Excel and save".
The three delimiters
- Comma (,): ordinary CSV.
- Tab: data copied from Excel and the like. Also called TSV.
- Semicolon (;): CSV used in places like Europe, mostly in countries using a comma as the decimal separator.
When automatic detection is enough
It looks at the first line of the data and detects which delimiter is used. In most cases it detects correctly.
When to choose manually
- Automatic detection didn't split columns correctly
- The data contains several kinds of delimiters
- You want to specify it for certain
If the delimiter doesn't match
The whole line becomes one column and doesn't split cleanly. Look at the resulting columns, and if odd, change the delimiter and try again.
When items contain commas
If addresses and the like contain commas, they are handled correctly as long as the items are enclosed in double quotes. If not enclosed, it's safer to output again as tab-separated.
Подходит для
- Semicolon-separated CSVs output from overseas systems
- Tab-separated data copied from Excel
- Tab-separated data output from databases
Пример
An order CSV output from an overseas shop opened as a single column. It was semicolon-separated, so converting with the delimiter set to "Semicolon" split it into the right columns.
Common stumbling blocks
- Only some columns shift: delimiters inside items aren't enclosed in quotes.
- Decimal point is a comma: in semicolon-separated CSV where decimals use commas, numbers may not be treated as values.
Frequently asked questions
Can other delimiters (such as spaces) be used?
This tool supports commas, tabs and semicolons.
Итог
If unsure, "Detect automatically". If columns shift, choose the delimiter manually.
Использовать «Преобразовать CSV в Excel (.xlsx)» (бесплатно)Инструменты, которые хорошо сочетаются с этим
- Преобразовать Excel в CSV или JSON: Преобразуйте лист Excel в CSV, TSV или JSON.
- Преобразовать CSV и JSON: Мгновенно преобразуйте между CSV и JSON.
- Удалить повторяющиеся строки и отсортировать список: Удалите повторяющиеся строки и отсортируйте их.
Если это руководство помогло, небольшие чаевые будут очень ценны.
Отправить чаевые (¥300)Отправить подарок (список желаний Amazon)