Excel のグラフで日付が数値(軸上のシリアル値)になる
2024年1月8日のシリアルは 45299 です。軸や元セルが数値または標準形式だと、日付ではなくこの数字が見えます。Excel では横軸を右クリックして「軸の書式設定」を開き、表示形式を日付にします。Google Sheets ではグラフエディタのカスタマイズ > 横軸で設定するか、先に元列を日付にします。
目次
要点
2024年1月8日のシリアルは 45299 です。軸や元セルが数値または標準形式だと、日付ではなくこの数字が見えます。Excel では横軸を右クリックして「軸の書式設定」を開き、表示形式を日付にします。Google Sheets ではグラフエディタのカスタマイズ > 横軸で設定するか、先に元列を日付にします。
=DATE(2024,1,8)
=TEXT(DATE(2024,1,8),"yyyy-mm-dd")確認のポイント
2026年11月12日の確認では =DATE(2024,1,8) は 45299、TEXT は 2024-01-08 でした。同じ文字列をテキストとして入れると ISTEXT は TRUE、ISNUMBER は FALSE、DATEVALUE は 45299 のままです。軸の書式だけでは文字列は日付軸にならないので、先に元列を変換します。
注意点と互換性
軸が 1、2、3 になる、または日付が大きな第2系列になる場合、分類軸に日付列が使われていません。「データの選択」で日付を横軸ラベル、売上や数量を系列にします。ピボットグラフも標準形式のままになることがあります。月でグループ化できないときは、先に元の日付を直してください。
英語の詳細例・数式・著者メモ
Excel How-toTested in: The serial,
TEXT, andDATEVALUEresults below were evaluated in Google Sheets on 12 November 2026. Excel 365 menu names are the current desktop labels; I did not click through Format Axis in Excel this session.
How to pick a line vs a column chart is in How to Make a Chart in Excel. This page is only about an axis that shows serials.
The number is the date
Excel and Google Sheets store a date as a whole number of days from a fixed origin. In the test workbook:
=DATE(2024,1,8)
=TEXT(DATE(2024,1,8),"yyyy-mm-dd")
The first formula is serial 45299 (that is what you see if the cell or the axis is formatted as a number). The second returned 2024-01-08. Nothing is “wrong” with 45299 except the format.
In Excel 365
- Click the chart, then right-click the horizontal axis.
- Choose Format Axis.
- Open the Number section (sometimes under Axis Options).
- Set the category to Date, or type a format code such as
yyyy-mm-ddord-mmm. - If the axis still shows 1, 2, 3, the chart is not using your date column as the category. Open Select Data and set the horizontal (category) labels to the date range.
In Google Sheets
- Click the chart, then open the chart editor.
- Under Customize > Horizontal axis, set a date number format if the option is there.
- If it is not, format the source date column as a date (Format > Number > Date) and, in Setup, confirm the date column is the X-axis.
When the source is text, not a serial
Formatting the axis does not fix labels that were typed as text. A cell can look like 2024-01-08 and still be text. In the test workbook I stored those characters as text in L4:
=ISTEXT(L4)
=ISNUMBER(L4)
=DATEVALUE(L4)
On 12 November 2026 those returned TRUE, FALSE, and 45299. DATEVALUE produced the same serial as =DATE(2024,1,8). Put that converted column on the axis, or paste the values over the text, then format the axis as a date.
If DATEVALUE returns #VALUE!, the text is not in a date order your locale expects. Use the conversions in dates stored as text. Mixed columns — some real dates, some text — produce an axis that looks partly numbered, partly labeled, and a line chart that treats the labels as unordered categories.
The axis used the wrong column
A second common cause is a chart built from the value column only. Excel then uses 1, 2, 3 as the axis, or it plots the dates as a second series of large numbers (45299 sits far above a revenue series of 7800). In Select Data, the date column should be the category axis, and the revenue (or quantity) column should be the series. Do not include both the date serial and the revenue as two series on the same value axis.
A pivot chart can show serials for the same reason: the date field is a number, and the chart inherited a General format. Format the axis, or group the pivot dates first so the axis shows month labels. If Group is disabled, fix the source as in cannot group dates in a pivot table.
Once the axis shows 8 Jan 2024 instead of 45299, check that the points are in date order. Text labels sort alphabetically; real dates sort as numbers, which is what you want on a time scale.