How to create a line graph in Excel from a data table

You will turn a plain table of numbers into a line graph on the same sheet, then label and format it so other people can read it. It suits anyone who needs to show results in a report, a class project or a work summary. You only need Excel and a few rows of data.

YouTube video: How to Create a Graph in Excel

Caption availability is unknown. Check the CC control in the YouTube player.

Video length
1 min 34 s
Time to do it
10 minutes
Difficulty
Easy
Steps
10

What you need

Steps

  1. Open Excel and type your data into a table. Put labels in the top row or the left column, such as months and sales figures, and keep each number in its own cell.

  2. Click any cell inside the table, then click the Insert tab on the ribbon at the top of the window.

  3. Open the chart list. In older versions choose All Chart Types or Other Charts; in Excel 2013 and later use the Recommended Charts or Insert Chart button.

  4. Pick Line in the list on the left, choose a style you like, then click OK. A chart appears on the sheet.

  5. Right click the chart and choose Select Data. A window opens where you set the range the graph reads from.

  6. Click the first cell of your table and drag to the last cell so the whole range fills the Chart data range box.

  7. Use Switch Row and Column to choose which values run along the horizontal axis. Use Add or Remove to include or drop extra series.

  8. Click Hidden and Empty Cells if you want blank cells left as gaps, then click OK to close the window.

  9. Go to the Design tab and pick a chart layout or colour style. On the Layout tab set the chart title, axis titles and legend position.

  10. Use the Format tab to change font, size, spacing and alignment. Drag the chart edges to resize it, then click a cell to finish.

Tips and common mistakes

Include the header row and label column in your selection so Excel names the axis and legend for you.

If dates plot as separate dots, format that column as Date before you build the graph.

A blank chart usually means the selection was lost, so reopen Select Data and drag the range again.

Right click a single chart element and choose Format to fix spacing without rebuilding the whole graph.

Questions

How do I add a title to my graph?

On the Layout tab choose Chart Title, then pick Above Chart or Centered Overlay. In newer versions you can also click the title box on the chart and type straight into it.

Why are the numbers on my axes the wrong way round?

Excel guessed which direction your data runs. Open Select Data and click Switch Row and Column to swap the series between the axes.

Can I change the chart type after making it?

Yes. Right click the chart and choose Change Chart Type, then pick a bar, column or pie chart and click OK.

The notes are drafted automatically from video details and general task knowledge. How the guide was prepared

Report a correction

More in School & Learning

See all