To make a 2D line chart in Excel, select your data range, go to Insert > Charts > Line, and pick the basic 2D line style. This creates a chart that plots one or more series over a horizontal axis, which is ideal for showing trends over time. You need Excel 2016 or later (or Microsoft 365) and a table with at least two columns: one for categories (like dates) and one or more for values.
What You'll Need
- Excel 2016 or later, or Microsoft 365 (Windows or Mac). The steps are nearly identical; any differences are noted.
- A data table with a header row. The first column should contain categories (dates, months, labels) and the remaining columns should contain numeric values.
- No add-ins or special tools are required.
Step-by-Step
- Prepare your data. Enter your categories in the leftmost column and your values in the columns to the right. For example, put months in column A and sales figures in column B. Include a header row so Excel can label the axes and legend automatically. Ensure the value cells contain numbers, not text.
- Select the data range. Click the first cell of your table (including the header) and drag to the last cell, or press Ctrl+A (Windows) or Command+A (Mac) after clicking inside the table. Do not include blank rows or columns.
- Insert the chart. Go to the Insert tab on the ribbon. In the Charts group, click the Line chart icon. A gallery of line chart types appears.
- Choose a 2D line style. From the gallery, select the first option under 2D Line — usually labeled "Line" or "Line with Markers." Avoid the 3D Line options. The chart appears on your worksheet.
- Position and resize the chart. Drag the chart by its border to move it. Drag a corner handle to resize it. You can also place it on a separate sheet by right-clicking the chart and choosing Move Chart > New sheet.
- Add axis titles (optional but recommended). Click the chart, then click the plus sign (+) that appears at its top-right corner (Chart Elements). Check "Axis Titles" and type descriptive labels for the horizontal and vertical axes.
- Adjust the legend. If you have multiple series, the legend appears automatically. Use the Chart Elements menu to move it to the bottom or right, or uncheck it if you have only one series.
- Format the axes if needed. Right-click the vertical axis and choose Format Axis. You can set the minimum and maximum bounds, change the number format, or adjust tick marks. Right-click the horizontal axis to change label intervals or reverse the category order.
- Change the chart style. With the chart selected, go to the Chart Design tab (called Chart Design on Windows, Chart Design on Mac). Browse the Chart Styles gallery to apply a different color scheme or layout. You can also use Change Colors to pick a palette.
- Save your work. Press Ctrl+S (Windows) or Command+S (Mac) to save the workbook. The chart is embedded in the file.
Common Mistakes
- Including blank cells or text in value columns. Excel may treat the series as text and plot nothing. Remove blanks or convert text to numbers.
- Selecting the wrong range. If you select only the value column without the category column, Excel uses 1, 2, 3… as the horizontal axis. Always include the category column.
- Using a 3D line chart by accident. The 3D options are in the same gallery but distort the data. Stick to the 2D section.
- Forgetting to label axes. A chart without axis titles is hard to interpret. Add them via Chart Elements.
- Overcrowding with too many series. More than three or four lines can become unreadable. Consider splitting into multiple charts or using a different chart type.
Tips
- Use a line chart with markers when you have few data points, so each value is visible. Use a plain line for many points to avoid clutter.
- Press Alt+F1 (Windows) or Option+F1 (Mac) to create an embedded chart instantly from the selected data. The default type may be a column chart; change it via Change Chart Type.
- To plot a series on a secondary axis, right-click the series, choose Format Data Series, and select Secondary Axis. This is useful when values have very different scales.
- Keep your data table clean: one header row, no merged cells, and consistent date formats.
- Use a scatter chart with straight lines if your horizontal axis is numeric and you need precise X‑Y plotting; a line chart treats categories evenly spaced.
Troubleshooting
- The chart is blank or shows only one point. Check that the value cells are numbers, not text. Select the range and look at the status bar; it should show a sum or count. If not, convert text to numbers using Text to Columns or VALUE().
- The horizontal axis shows 1, 2, 3 instead of my labels. You likely selected only the value column. Reselect the range including the category column, or right-click the chart and choose Select Data to add the category axis labels.
- The line is flat or missing. The values may be zero or blank. Check for hidden rows or filtered data; Excel by default does not plot hidden rows. Unhide or clear filters.
- The chart does not update when I change data. Ensure the chart is linked to the correct range. Right-click the chart and choose Select Data to verify the range references. If you copied the chart, it may be linked to the original sheet.
- Excel crashes or freezes when inserting a chart. Save your work, close Excel, and reopen. If the problem persists, start Excel in safe mode (hold Ctrl while launching on Windows) to disable add-ins, then re-enable them one by one.
Frequently Asked Questions
Can I make a 2D line chart on Excel for Mac?
Yes. The steps are the same: select data, go to Insert > Charts > Line, and pick a 2D style. Menu labels may differ slightly by version.
How do I change a line chart to a different type?
Right-click the chart and choose Change Chart Type. Select a different line style or another chart type from the list.
Why does my line chart show dates as numbers?
Excel may treat dates as serial numbers. Right-click the horizontal axis, choose Format Axis, and set the Number category to Date.
Can I add a second line to an existing chart?
Yes. Right-click the chart and choose Select Data > Add. Specify the series name and values. The new line appears automatically.
What is the difference between a line chart and a scatter chart with lines?
A line chart treats categories as evenly spaced labels, while a scatter chart plots numeric X and Y values. Use scatter when both axes are numeric and spacing matters.
How do I remove gridlines from a line chart?
Click the chart, then use the Chart Elements (+) button and uncheck Gridlines. Or go to Chart Design > Add Chart Element > Gridlines and select None.