Creating a 2D line chart in Excel takes about a minute: select your data (including the header row and column), go to the Insert tab, click the Line chart icon in the Charts group, and pick the first 2D line style. Excel plots the selected series on a standard two-axis chart. The rest of this guide covers preparing your data correctly, formatting the chart so it reads clearly, and fixing the problems that most often make a line chart look wrong.

What You'll Need

  • Excel for Windows, Excel for Mac, or Excel for the web. The Insert tab and Line chart options exist in all three; exact button labels and ribbon layout can differ slightly by version and platform.
  • Data arranged in columns or rows, with a header row for series names and a header column for category labels (usually dates or time periods).
  • Numbers stored as actual numbers, not text. A column of dates or values formatted as text will not plot correctly.

Step-by-Step

  1. Lay out the data in a clean table. Put your category labels (months, dates, quarters) in the leftmost column and each data series in its own column to the right. For example: A1 blank or "Month", B1 "Sales", C1 "Costs"; A2:A13 the twelve months; B2:C13 the figures. Keep one header row and no blank rows or columns inside the range.
  2. Check that dates and numbers are real values. Click a date cell and look at the formula bar: a real date shows something like 1/15/2024, while text may show an apostrophe or left-align in the cell. Numbers right-align by default; if they sit on the left, they are probably text. Convert them with Data > Text to Columns or by retyping without the apostrophe.
  3. Select the whole range, headers included. Click the top-left cell of the table and drag to the bottom-right, or press Ctrl+A (Cmd+A on Mac) with a cell inside the table selected. Including the header row is what lets Excel name each line automatically.
  4. Go to the Insert tab. In the Charts group, find the Line chart icon (it looks like a small zigzag line). On Excel for the web the Charts group sits on the Insert tab in the same place; on Mac the ribbon layout is similar but the group may be labelled slightly differently.
  5. Choose a 2D line style. Click the Line icon to open the gallery. The first entry, usually labelled "Line" or "2-D Line", is the plain line chart with no markers. The second adds markers at each data point, which helps when you have few points. Avoid the 3D Line option in the same gallery; it distorts the reading of values and is harder to format.
  6. Confirm the chart appears and check the axes. Excel inserts the chart on the same sheet. The horizontal (category) axis should show your months or dates, and the vertical (value) axis should show the numeric scale. If the horizontal axis shows 1, 2, 3 instead of your labels, Excel has treated the first column as a series rather than as categories; fix it with the next step.
  7. Fix swapped rows and columns if needed. Select the chart, then on the Chart Design tab click Switch Row/Column. This flips which dimension is treated as series and which as categories. It is the single most common repair for a chart that looks wrong.
  8. Add or correct the data range. With the chart selected, click Select Data on the Chart Design tab. In the dialog you can add, edit or remove series, and set the Horizontal (Category) Axis Labels by selecting the label column directly. This is also where you fix a series that picked up the wrong header.
  9. Add axis titles and a chart title. Click the chart, then the plus sign (+) at its top-right corner (Chart Elements on Mac and the web). Tick Axis Titles and type meaningful labels such as "Month" and "Revenue (USD)". Tick Chart Title and replace the placeholder with a description of what the chart shows.
  10. Format the lines for readability. Right-click a line and choose Format Data Series to change colour, line thickness or to add markers. Keep colours distinct and avoid relying on red versus green alone, since colour-blind readers may not separate them.
  11. Set the vertical axis to start at zero where appropriate. Right-click the value axis, choose Format Axis, and check the Minimum bound. Excel sometimes starts the axis above zero, which exaggerates differences between lines. For most business charts, zero is the honest baseline.
  12. Move or resize the chart. Drag the chart border to reposition it, or drag a corner handle to resize. To place it on its own tab, right-click the chart and choose Move Chart > New sheet.

Common Mistakes

  • Selecting only the numbers and leaving out the headers. Excel then names the series "Series1" and "Series2" and you lose the legend meaning. Always include the header row and the label column.
  • Leaving blank cells inside the range. A gap in the data creates a break in the line or an interpolated straight segment that misrepresents the trend. Fill gaps or deliberately set how blanks are plotted in Select Data > Hidden and Empty Cells.
  • Dates stored as text. The category axis then shows every label crammed together or treats each date as a separate category in the wrong order. Convert to real dates first.
  • Using a line chart for categories that are not ordered. Line charts imply continuity over time or another ordered scale. For unordered categories such as product names, a column or bar chart is the correct choice.
  • Too many series on one chart. More than about four or five lines becomes unreadable. Split into small multiples or highlight one line and grey out the rest.
  • Truncated value axis. Starting the axis at a high number makes small differences look dramatic. Check the minimum bound before sharing the chart.

Tips

  • Format your source range as an Excel Table (Ctrl+T) before charting. When you add a new row, the chart expands automatically.
  • Use a line with markers when you have fewer than about twelve data points, so each value is visible.
  • Keep the legend at the top or right and delete it entirely if there is only one series; the chart title can carry the meaning instead.
  • For long date ranges, set the category axis to show labels every few months rather than every point: Format Axis > Labels > Specify interval unit.
  • Copy the finished chart and use Paste Special to paste it as a picture into reports where the underlying data should not travel with it.

Troubleshooting

The chart is blank or shows flat lines at zero. The selected range probably contains text where numbers should be. Check the formula bar on a few cells and convert text numbers back to numeric values.

The horizontal axis shows 1, 2, 3 instead of my labels. Excel treated the label column as a data series. Use Switch Row/Column, or open Select Data and set the Horizontal (Category) Axis Labels to your label column.

The lines are in the wrong order or the dates are scrambled. The date column is likely stored as text, so Excel sorts it alphabetically. Convert the column to real dates, then re-create the chart.

Only one line appears when I expected several. The range selection missed a column, or the extra columns are empty. Re-select the full range and confirm with Select Data.

The chart does not update when I change the data. If you built the chart from a fixed range, new rows will not be included. Convert the source to a Table or extend the range in Select Data.

Labels overlap along the bottom. Reduce the label interval in Format Axis, rotate the labels, or switch the axis to show fewer categories.

If none of that resolves it, delete the chart and rebuild it from a freshly selected, clean range. Rebuilding is usually faster than chasing a corrupted chart object.

Frequently Asked Questions

What is the difference between a 2D and a 3D line chart?

A 2D line chart plots values on a flat plane with a horizontal category axis and a vertical value axis. A 3D line chart adds a depth dimension that does not represent any real data, which makes values harder to read accurately. For almost all reporting, use the 2D version.

Can I plot two different units, such as revenue and percentage, on one line chart?

Yes, by adding a secondary axis. Right-click the series you want on the other scale, choose Format Data Series, and select Secondary Axis. The chart then shows a second value axis on the right. Label both axes clearly so readers know which line uses which scale.

How do I add a trendline to a line chart?

Right-click a data series and choose Add Trendline. Pick the type (linear is the default) and tick Display Equation on chart if you need the formula. Trendlines work on a single series at a time.

Why does my line chart connect points across gaps in the data?

Excel's default is to connect across empty cells. To change it, open Select Data and click Hidden and Empty Cells, then choose Gaps or Zero instead of Connect Data Points with Line.

Can I make a line chart in Excel for the web?

Yes. Select the range, open the Insert tab, and choose Line from the Charts group. The web version offers the standard 2D line styles; some advanced formatting options are only available in the desktop apps.