How to Make a Line Plot in Excel: Step-by-Step
In this article
To create a line plot (line chart) in Excel, select your data, go to the Insert tab, click Insert Line or Area Chart, and choose Line. That's the core action. This guide walks through the full process, including formatting, common errors, and fixes, so you get a clean, accurate chart every time.
What You'll Need
- A computer with Microsoft Excel (2016 or later; the steps are similar in older versions and Excel for the web).
- Your data organized in a table with at least two columns: one for the horizontal axis (e.g., dates, months, categories) and one or more columns for the values you want to plot.
- Basic familiarity with selecting cells and using the ribbon.
Step-by-Step
- Prepare your data. Arrange your data in columns. For example, put dates in column A and sales figures in column B. If you have multiple series (e.g., sales and expenses), put each series in its own column to the right. Ensure there are no blank rows or columns within the data range, as Excel may interpret them as separate series or gaps.
- Select the data. Click and drag to highlight all cells that contain the data, including the headers (e.g., A1:B12). If your data has headers, include them – Excel will use them for the legend and axis labels.
- Open the Insert tab. In the ribbon at the top, click Insert. Look for the Charts group.
- Choose the line chart type. Click the icon that looks like a line chart (often labeled Insert Line or Area Chart). A dropdown will appear with options: Line, Line with Markers, and Stacked Line. For a standard line plot, select the first option, Line. Excel will insert the chart on the same worksheet.
- Check the chart. After insertion, review the chart. The horizontal axis should show your categories (e.g., months), and the vertical axis should show your values. If the chart looks wrong (e.g., it plots the wrong data as the axis), right-click the chart and choose Select Data to adjust the series and axis ranges.
- Format the chart (optional but recommended). With the chart selected, use the Chart Design and Format tabs that appear in the ribbon. You can change the chart title by double-clicking it and typing a new one. To add axis titles, click the + button next to the chart (or go to Chart Design > Add Chart Element) and check Axis Titles.
- Adjust the axis scale (if needed). If the vertical axis starts at a value that makes the line look flat, right-click the axis numbers, choose Format Axis, and set a different Minimum or Maximum bound. For example, if your data ranges from 50 to 60, set the minimum to 40 to show the variation more clearly.
- Save your work. Press Ctrl+S (or Cmd+S on Mac) to save the file. If you plan to use the chart in another program, you can copy it (select the chart, press Ctrl+C) and paste it into Word, PowerPoint, or an image editor.
Common Mistakes
- Selecting the wrong data range. If you include empty cells or extra columns, Excel may create unwanted series or gaps. Always double-check the selected range.
- Using a line chart for non-continuous data. Line charts imply a sequence. If your categories are not ordered (e.g., product names), a bar chart might be more appropriate. But if you must use a line, sort the data first.
- Ignoring the “Select Data” option. When the chart doesn't look right, many users try to delete and recreate it. Instead, right-click and choose Select Data to fix the series mapping.
- Forgetting to include headers. Without headers, Excel uses “Series1”, “Series2”, etc., which makes the chart hard to read.
- Overcomplicating with 3D or stacked options. Stick to the basic Line type unless you specifically need stacked lines.
Tips
- Use Line with Markers if your data points are sparse or you want to highlight individual values.
- To compare multiple series, select multiple columns before inserting the chart. Excel will automatically assign different colors.
- Format the line to be thicker (right-click the line > Format Data Series > Line > increase Width) for better visibility in presentations.
- Add a trendline if you want to show the overall direction: right-click the line, choose Add Trendline, and select linear or moving average.
- For dates on the horizontal axis, ensure they are formatted as dates (not text). If they are text, Excel will treat them as evenly spaced categories, which may misrepresent the timeline.
Troubleshooting
If your line plot doesn't appear as expected, try these fixes in order:
- Check the data selection. Click the chart and look at the highlighted range in the worksheet. If it's wrong, right-click the chart and choose Select Data to edit the range.
- Verify the chart type. Sometimes users accidentally choose a Stacked Line or 100% Stacked Line which shows cumulative values. To change, right-click the chart, choose Change Chart Type, and pick the standard Line.
- Check for hidden rows/columns. If you have hidden data, Excel might not plot it. Unhide rows/columns by selecting the surrounding columns, right-clicking, and choosing Unhide.
- Ensure the axis is correct. If your dates appear as numbers like 44000, the cells are not formatted as dates. Right-click the axis, choose Format Axis, and set the Number format to Date. Alternatively, reformat the source cells as dates.
- Restart Excel. If the chart is not updating after data changes, close and reopen the file. This often fixes rendering glitches.
Frequently Asked Questions
How do I add a second line to my line plot?
Select the chart, go to the Chart Design tab, click Select Data, then click Add to include another series. Specify the series name (e.g., “Expenses”) and the values range.
Can I create a line plot from a pivot table?
Yes. Select a cell inside the pivot table, go to the Insert tab, and choose Line. The chart will use the pivot table's data. Note that the chart may not update automatically if the pivot table changes; you may need to refresh the pivot table.
Why does my line chart show gaps for missing data?
Excel treats blank cells as gaps by default. To connect the line across gaps, right-click the chart, choose Select Data, click Hidden and Empty Cells, and select Connect data points with line.
How do I change the horizontal axis labels?
Right-click the chart, choose Select Data, and in the Horizontal (Category) Axis Labels section, click Edit and select the range that contains your labels.
Can I make a line plot on Excel for mobile?
Yes, the Excel mobile app supports creating charts. Select your data, tap the Insert menu (usually a plus icon), choose Charts, and pick Line. The steps may vary slightly by device.
What if my line plot looks like a bar chart?
That likely means you selected a bar chart type. Right-click the chart, choose Change Chart Type, and select Line from the list.