PDF Mikata

開頭的 0 消失時

釋出日期:2026 年 10 月 19 日|最後更新:2026 年 10 月 19 日|關於(日文)

要點
  • 確認
  • 轉換

When postal codes like "0123456" or phone numbers like "09012345678" are brought from CSV into Excel, the leading 0 vanishes. In Convert CSV to Excel (.xlsx) numbers starting with 0 are entered as text, so they don't vanish.

步驟

  1. Choose the CSV with "Choose a CSV file", or paste into "CSV content".
  2. Check the setting "Enter numbers as numeric values".
  3. Press "Make Excel and save" and save.
Numbers starting with 0, like "007", are entered as text. Postal codes and phone numbers don't change. Only ordinary numbers become numeric values.

Why the 0 vanishes

Excel automatically turns values that can be read as numbers into numeric values. The number "007" is treated as "7" and the leading 0 disappears. Opening a CSV directly in Excel triggers this conversion.

How this tool handles it

Examples of numbers starting with 0

Caution: not usable in calculations

Numbers entered as text can't be used in calculations such as sums and averages. If a number you want to calculate with (such as an amount) starts with 0 and became text, convert it to a number in Excel.

Numbers you don't want as values

Numbers you don't calculate with, like phone numbers and member numbers, are appropriately kept as text.

適合

示例

Wanted to make Excel from a CSV with member numbers in the form "000123". Opening normally gave "123", but with this tool it was saved as "000123".

Common stumbling blocks

Frequently asked questions

What about decimals like 0.5?

Decimals starting with "0." are treated as numeric values.

小結

Numbers starting with 0 are protected as text. Numbers you calculate with go in as values.

使用「把 CSV 轉換成 Excel(.xlsx)」(免費)

搭配使用的工具

如果這篇教程對你有幫助,一點小小的打賞會讓我們非常開心。

打賞(300 日元)贈送禮物(亞馬遜心願單)

此工具的更多教程

檢視全部教程