To plot a time series in Excel, put your dates in one column and your values in the next, select both columns, then choose Insert > Line Chart (or Insert > Scatter with Smooth Lines for irregular intervals). Excel will treat the date column as the horizontal axis automatically. The steps below cover the exact clicks, how to fix the most common axis and formatting problems, and what to do when Excel refuses to read your dates as dates.

What You'll Need

  • Excel for Microsoft 365, Excel 2021, Excel 2019, Excel for Mac, or Excel on the web. The Insert tab and chart tools are in all of these; exact button labels can differ slightly by version, platform and region.
  • Two columns of data: one for dates or timestamps, one for the values you want to plot.
  • Dates entered in a format Excel recognises. If Excel left-aligns your dates, it is probably treating them as text, and the chart will not space them correctly. You will fix that below.

Step-by-Step

  1. Lay out the data cleanly. Put dates in column A starting at A2 and values in column B starting at B2. Add headers in A1 and B1. Leave no blank rows inside the data range and no merged cells. One row per time point, oldest at the top.
  2. Confirm the dates are real dates, not text. Select the date column. On the Home tab, the Number Format box should show a date format such as Short Date. If the dates are left-aligned and the box shows Text or General, they are text. Fix them by selecting the column, then using Data > Text to Columns and clicking Finish, or by retyping one date in an unambiguous form such as 2024-03-01 and filling down. On a Mac the menu is Data > Text to Columns as well.
  3. Select the data. Click the top-left header cell of your data (for example A1), then hold Shift and click the bottom-right value cell. Including the headers lets Excel name the series and axis for you. Do not select the entire columns.
  4. Insert a line chart. Go to Insert > Charts group > Insert Line or Area Chart, then pick Line or Line with Markers. A line chart is the right choice when your time points are evenly spaced (daily, weekly, monthly).
  5. Use a scatter chart instead if your intervals are uneven. If your readings are irregular (for example sensor readings at random times), choose Insert > Scatter (X, Y) or Bubble Chart > Scatter with Straight Lines. A line chart spaces every category equally, which distorts uneven time gaps; a scatter chart plots the true date values along the X axis.
  6. Check the horizontal axis. Right-click the axis and choose Format Axis. Under Axis Options, confirm Axis Type is set to Automatically select based on data or Date axis. If Excel shows numbers such as 45323 instead of dates, the column was read as a numeric series; the fix is to make sure the cells are formatted as dates and re-create the chart.
  7. Set the axis bounds if Excel picks a strange range. Still in Format Axis, under Bounds, type explicit Minimum and Maximum values as dates (for example 2024-01-01 and 2024-12-31). Set Major Unit to 1 Month or 1 Day to control tick spacing.
  8. Add axis titles and a chart title. Click the chart, then the plus sign (Chart Elements) at its top-right, and tick Axis Titles and Chart Title. Label the vertical axis with units so the chart is readable without the spreadsheet.
  9. Format the line and markers. Right-click the line and choose Format Data Series. Set a sensible line width and, if you enabled markers, a marker style that is visible without dominating. For a single series, a solid line with no markers is usually cleanest.
  10. Handle gaps and missing values. Right-click the series > Format Data Series > look for the option that controls how empty cells are plotted (often under a "Show empty cells as" or "Hidden and empty cells" button). Choose Gaps to break the line, or Connect data points with line to bridge it. Choose deliberately rather than letting Excel guess.
  11. Move the chart to its own sheet if it will be shared. Right-click the chart area > Move Chart > New sheet. This gives a full-page view and avoids the chart overlapping cells.

Common Mistakes

  • Dates stored as text. The most frequent cause of a broken time axis. If the dates are left-aligned, Excel is not treating them as dates. Convert them before charting.
  • Selecting whole columns. This pulls in thousands of empty cells and can flatten the visible line. Select only the populated range.
  • Using a line chart for uneven intervals. A line chart gives every row equal horizontal space, so a three-day gap looks the same as a one-day gap. Use a scatter chart with straight lines when spacing matters.
  • Leaving blank rows inside the data. Excel may stop the series at the blank or treat the range as two separate blocks. Delete blank rows or fill them.
  • Plotting totals and averages on the same axis. A total in the thousands will squash an average in the tens into a flat line. Use a secondary axis (right-click the series > Format Data Series > Secondary Axis) or separate charts.
  • Forgetting that the header row becomes the series name. If your headers are vague, the legend will be vague. Name them clearly before charting.

Tips

  • Sort the data oldest to newest before charting. A chart drawn from unsorted dates produces a zig-zag that looks like real movement but is an artefact.
  • Keep a single header row and no title rows above it. Excel's chart range detection works best with one clean header.
  • Use a Table (Insert > Table) as the source. Charts based on a Table expand automatically when you add new rows.
  • For long series, set the X axis Major Unit to 1 Month or 1 Quarter rather than letting Excel label every point.
  • Copy the chart and use Paste Special to paste it as a picture when you need a fixed image for a report.
  • If you will update the chart regularly, keep the source data on one sheet and the chart on another, and never insert rows above the header.

Troubleshooting

  • The X axis shows 1, 2, 3 instead of dates. Excel treated the dates as category labels or as a numeric series. Reformat the date cells as dates, then delete and recreate the chart. Changing the chart type alone rarely fixes it.
  • The line is flat or invisible. Check the vertical axis bounds: Excel may have set a minimum far above your data. Right-click the value axis > Format Axis > reset Minimum to Automatic, or type a sensible minimum.
  • Only one data point appears. The selected range probably includes only one row, or the other rows contain text. Widen the selection and check for stray spaces or apostrophes in the value cells.
  • The dates are wrong by a few years. This usually means the cells were interpreted in a different date order (day/month swapped). Re-enter them in an unambiguous format such as yyyy-mm-dd.
  • The chart does not update when data changes. Confirm the chart's source range covers the new rows. If you added rows below the original range, either extend the range manually (Chart Design > Select Data) or base the chart on an Excel Table.
  • Excel is slow or crashes when charting a very large range. Reduce the range to the period you actually need, or summarise the data first (for example monthly averages) before charting.

Frequently Asked Questions

Should I use a line chart or a scatter chart for time series?

Use a line chart when your time points are evenly spaced, such as daily or monthly readings. Use a scatter chart with straight lines when the intervals are uneven, because it plots the actual date values along the X axis instead of spacing every row equally.

Why does Excel show numbers instead of dates on my axis?

Excel stores dates as serial numbers and displays them according to cell formatting. If the axis shows numbers like 45323, the cells are formatted as General or Number rather than Date. Format the date column as a date, then recreate the chart.

Can I plot more than one time series on the same chart?

Yes. Put each series in its own value column with a header, select all the columns including the date column, and insert the chart. Each value column becomes a separate line with its own legend entry.

How do I change the date interval on the horizontal axis?

Right-click the horizontal axis, choose Format Axis, and set Major Unit to the interval you want, such as 1 Month or 7 Days. You can also set explicit Minimum and Maximum bounds to control the visible date range.

Does this work in Excel on the web and on Mac?

Yes. The Insert tab, chart types and Format Axis options are available in Excel for the web and Excel for Mac. Button wording and placement can differ slightly between versions, platforms and regions.

How do I stop the line from bridging missing data?

Right-click the series, choose Format Data Series, and find the setting that controls how empty cells are plotted. Select Gaps to break the line at missing points, or Connect data points with line to bridge them.