PDFのミカタ

0で始まる数字(郵便番号など)が消えるとき

公開日:2026年10月19日|最終更新:2026年10月19日|運営者情報

この記事のポイント
  • 確かめる
  • 変換する

郵便番号「0123456」や、電話番号「09012345678」をCSVからExcelに取り込むと、先頭の0が消えてしまう。CSVをExcelファイルにする では、0で始まる数字を文字のまま入れるので、消えません。

手順

  1. 「CSVファイルを選ぶ」で、CSVを選びます。または、「CSVの内容」に貼り付けます。
  2. 「数字は数値として入れる」の設定を確認します。
  3. 「Excelにして保存」を押して、保存します。
「007」のように0で始まる数字は、文字のまま入ります。郵便番号や電話番号は、変わりません。ふつうの数字だけが、数値になります。

0が消える原因

Excelは、数字として読める値を、自動で数値にします。数値の「007」は「7」として扱われ、先頭の0が消えます。CSVをExcelでそのまま開くと、この変換が起きます。

このツールの扱い

0で始まる数字の例

注意:計算に使えない

文字として入った数字は、足し算や平均などの計算には、使えません。計算したい数字(金額など)が0で始まっていて、文字になってしまった場合は、Excelで数値に変換します。

数値にしたくない数字

電話番号や、会員番号のように、計算しない数字は、文字のままが適切です。

向いている場面

例

会員番号が「000123」の形のCSVを、Excelにしたかった。普通に開くと「123」になったが、このツールを使うと、「000123」のまま保存された。

つまずきやすい点

よくある質問

小数点以下の数字(0.5など)は、どうなりますか?

「0.」で始まる小数は、数値として扱われます。

まとめ

0で始まる番号は、文字のまま守られる。計算する数字は、数値として入ります。

CSVをExcelファイルにするを使う(無料)

あわせて使えるツール

この解説が役に立ったら、応援してもらえるとうれしいです。

応援する(300円)ほしい物リストで応援

同じツールの、ほかの解説

解説の一覧を見る

When Leading Zeros Disappear

Published: Oct 19, 2026 | Updated: Oct 19, 2026 | About (Japanese)

Key points
  • Check
  • Convert

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.

Steps

  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.

Good for

Example

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.

Summary

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

Use "Convert CSV to Excel (.xlsx)" (free)

Tools that go well with this

If this guide helped, a small tip would mean a lot.

Send a tip (¥300)Send a gift (Amazon wishlist)

More guides for this tool

See all guides