拆分成製表符分隔(TSV)檔案
要點
- 選擇
- 儲存
The data contains commas, so with CSV the columns shift. Handy then is "TSV", which separates by tabs. In Split an Excel File by Sheet you can choose "TSV (tab-separated)".
步驟
- Choose an .xlsx with "Choose an Excel file".
- Choose "TSV (tab-separated)" under "Save format".
- Press "Split by sheet and save as ZIP" to save.
Columns are separated by tabs instead of commas.
Difference between CSV and TSV
- CSV: separated by commas. The most widely used.
- TSV: separated by tabs. Less prone to shifting even if text contains commas.
When TSV suits
- Lots of text containing commas, like addresses and descriptions
- Wanting to handle text directly as data
- The destination assumes TSV
Cautions when using TSV
- Check whether the destination supports TSV
- Tabs within text can cause shifting
- In Excel, opening TSV may require specifying the delimiter
When pasting into a spreadsheet
Copying TSV content and pasting it into a spreadsheet naturally puts the tab-separated columns into cells.
適合
- Handling address data containing commas
- Pasting a table straight into a spreadsheet
示例
Product descriptions had many commas and the columns shifted in CSV. Splitting as TSV kept the columns aligned and it imported into the system.
Common stumbling blocks
- The destination doesn't support TSV: split again as CSV.
- Tabs are in the text: replace tabs beforehand.
Frequently asked questions
What is the extension of TSV?
.tsv. It can be opened in Notepad and the like.
小結
TSV for data containing commas. Check the destination's support before choosing.
使用「按工作表拆分 Excel 檔案」(免費)搭配使用的工具
- 把 Excel 轉換成 CSV 或 JSON:把 Excel 工作表轉換成 CSV、TSV 或 JSON。
- 把 CSV 轉換成 Excel(.xlsx):把 CSV 轉換成 Excel(.xlsx)檔案。
- 把 Excel 公式轉換成數值:把 Excel 公式替換成計算結果。