How To Create A Line Graph In Excel | From Data To Chart

To create a line graph in Excel, select your data and insert a line chart from the Insert tab, then fine-tune it with Chart Design tools.

Most spreadsheets hide their story in a grid of numbers. A line graph pulls that story into view — the upward climb, the seasonal dip, the flat stretch — and Excel’s built-in chart tools make it a two-minute job once your data is in order. Here is how to create a line graph in Excel, step by step, from raw data to a polished chart you can drop into a report or presentation.

What Data Works Best For A Line Graph?

Line graphs are designed for continuous data over time — monthly sales, quarterly temperatures, yearly revenue. The key is even intervals: January to February to March, not random categories like Apples, Oranges, Bananas. Microsoft’s documentation specifically recommends line charts for trends at equal intervals such as months or quarters, because the evenly spaced axis makes patterns readable at a glance.

The data itself needs a clean layout. Put time labels in one column (the horizontal axis) and the values in the adjacent column (the vertical axis). If you have multiple series to compare — say, revenue from two product lines across the same months — put each series in its own column with a clear header. A single header row above the data tells Excel what to plot automatically.

  • Column A: time labels (months, quarters, years)
  • Column B: first data series with a header row
  • Column C: second data series with a header row, if needed

How To Insert A Line Graph From Your Data

Once your data is arranged, inserting the chart takes about thirty seconds. Excel’s ribbon puts the line chart option front and center.

  1. Select every cell you want plotted — include the column headers and the time labels, not just the numbers.
  2. On the ribbon, click Insert.
  3. In the Charts group, click Insert Line or Area Chart.
  4. Pick Line or Line with Markers from the dropdown. Excel inserts the chart onto the worksheet.

If you prefer to preview before committing, use Insert > Recommended Charts to see how your data looks in several layouts, then select one and click OK. Microsoft’s full chart creation walkthrough covers both paths in more detail, including what each chart type expects from your data structure.

One detail that trips up first-timers: if the chart looks empty or scrambles the categories, the wrong range may be selected. Click the chart, then go to Chart Design > Select Data to check that the axis labels and series ranges point to the correct cells.

Customizing Your Line Graph

After the chart appears, you control every visual element through the Chart Design and Format tabs on the ribbon. The Chart Elements button — the plus sign next to the chart — toggles titles, gridlines, data labels, axes, and the legend on or off.

To add a trendline that shows the overall direction of your data, click the chart, go to Chart Design > Add Chart Element > Trendline, and choose Linear, Exponential, Linear Forecast, or Moving Average. A trendline is especially useful when your data has noise and you want to emphasize the underlying pattern.

Color and style changes work through Chart Design > Change Colors or the style gallery. For finer control — individual line thickness, marker shape, or axis scale numbers — right-click the element and choose Format [Element] to open the side pane.

Line Chart Vs Scatter Chart — Which Should You Use?

Line charts and scatter charts look similar but serve different purposes. A line chart expects evenly spaced, continuous time data on the horizontal axis. A scatter chart plots two numeric variables against each other and works for showing correlation without fixed intervals. Picking the right one prevents misleading visuals.

Chart Type Best For Axis Requirement
Line Chart Trends over time — months, quarters, years Evenly spaced, continuous categories on the horizontal axis
Scatter Chart Correlation between two numeric variables Two numeric axes with no fixed interval requirement
Line With Markers Showing individual data points alongside the trend line Same as line chart — evenly spaced time data
Stacked Line Chart Comparing multiple series that add to a whole over time Same as line chart, with cumulative values per interval
100% Stacked Line Showing each series as a percentage of the total per interval Same as line chart, with relative proportions per interval

Common Mistakes And How To Fix Them

Even with a simple tool like Excel’s line chart, a few predictable errors produce confusing results. The table below covers the ones that happen most often and the fastest way to correct each.

Mistake What It Looks Like Fix
Missing headers in the selected range Excel uses the first row of data as a series label or plots numbers as categories Re-select the data with the header row included, then check Chart Design > Select Data
Non-continuous categories on the axis The line chart shows gaps or uneven spacing between points Switch to a scatter chart or fill in the missing time intervals before plotting
Multiple series plotted as one overlapping line Two columns of data appear on the same line instead of separate lines In Select Data, add each series individually with its own name and range
Chart stays blank after insertion Excel shows an empty plot area with no lines Verify the selected range contains numeric values, not text stored as numbers
Gridlines or axis labels are missing The chart lacks reference lines that make the data readable Click the chart, use Chart Elements to check Axes and Gridlines

Making A Line Graph In Excel — Start To Finish

The whole process comes down to four actions in order. Run through them once and the result is a chart that communicates your data without needing a second pass.

  1. Arrange the data. Time labels in one column, values in the next, headers on top.
  2. Select and insert. Highlight the range, go to Insert > Insert Line or Area Chart, and choose a subtype.
  3. Customize the chart. Use Chart Design to pick a style and Chart Elements to add or remove titles, gridlines, and labels.
  4. Add depth if needed. Drop in a trendline through Add Chart Element > Trendline when you want to highlight the overall direction.

The chart is now ready to copy into a report, presentation, or email. No extra formatting required unless you want to match a specific brand palette or slide layout — and when you do, the Format pane handles those tweaks in seconds.

References & Sources

Please use a real email you check. If it's fake or mistyped, your message won't reach us and we can't reply — wrong addresses are rejected automatically.