To create a two-line chart in Excel, select your data (including headers), go to the Insert tab, click Line Chart, and choose the first 2-D Line option. This will plot both series as separate lines on the same chart. If your data isn't formatted correctly, Excel may treat one series as categories—so structure your data with categories in one column and each line's values in separate adjacent columns.

What You'll Need

  • Microsoft Excel (desktop version, Excel for the web, or mobile app) with your data ready.
  • Two sets of numeric data you want to compare, plus a shared category column (e.g., dates, months, or product names).

Step-by-Step

  1. Prepare your data: Arrange it in columns. Put the category labels (like months) in the first column, then put the values for the first line in the second column, and the values for the second line in the third column. Each row should represent one category point (e.g., January, February).
  2. Select the data range: Click and drag to highlight all the cells that contain your data, including the headers. For example, if you have headers in row 1 and data from row 2 to 13, select A1:C13.
  3. Insert the line chart: Go to the Insert tab on the ribbon. In the Charts group, click the Line or Area Chart icon (it looks like a zigzag line). From the dropdown, choose 2-D Line (the first option). Excel will create a chart with two lines.
  4. Check the chart: If you see only one line or the categories are wrong, right-click the chart and choose Select Data. In the dialog, ensure each series is listed separately under Legend Entries (Series). If needed, click Edit to set the series name and values correctly.
  5. Format the chart (optional): Click on the chart to open the Chart Design and Format tabs. You can change the chart title by double-clicking it, add axis labels, or change line colors and styles by right-clicking a line and selecting Format Data Series.

Common Mistakes

  • Putting both series in one column: If you have all values stacked in a single column, Excel will treat them as one series. Keep each line's data in its own column.
  • Selecting blank rows or columns: This can cause Excel to misread the data range, leading to empty categories or missing lines.
  • Using non-numeric values: Line charts require numeric values for the Y-axis. If your data is text, Excel won't plot it correctly.
  • Not using headers: Without headers, Excel may use the first data row as series names, making the chart confusing.

Tips

  • Use a date or numeric category column (like years) for best results—Excel will handle the axis scaling automatically.
  • To make the lines easier to distinguish, right-click each line, choose Format Data Series, and change the color or line style (solid, dashed, etc.).
  • Add data labels by right-clicking a line and selecting Add Data Labels to show exact values.
  • If you have many data points, consider using a smooth line option (under Format Data Series > Line > Smooth) for a cleaner look.

Troubleshooting

If only one line appears:

  1. Right-click the chart and choose Select Data.
  2. Under Legend Entries (Series), click Add to manually add the missing series.
  3. In the Edit Series dialog, set the Series name to the header cell of the second column, and the Series values to the range containing that column's data.

If the chart shows categories on the Y-axis instead of the X-axis:

  1. This usually happens when your category column is also numeric. Right-click the chart, choose Select Data, then click Edit under Horizontal (Category) Axis Labels and select the correct category range.

If lines are not visible because values are too different in scale:

  1. Right-click one of the lines, choose Format Data Series, and select Secondary Axis to plot that line on a separate axis with its own scale.

Frequently Asked Questions

Can I create a two-line chart if my data is in separate columns far apart?

Yes. Hold the Ctrl key while selecting non-adjacent columns, then insert the line chart. Alternatively, create the chart with one column and use Select Data to add the other series.

Why does Excel show only one line when I select two columns?

This usually happens if the two columns are not adjacent or if Excel interprets one column as the X-axis. Check the Select Data dialog to confirm both series are listed.

How do I change the line colors?

Right-click on a line, choose Format Data Series, then go to Fill & Line and pick a new color under Line.

Can I add a third line later?

Yes. Right-click the chart, choose Select Data, click Add, and specify the new series name and values.

My chart has lines but the X-axis labels are numbers, not months. How do I fix that?

In Select Data, click Edit under Horizontal (Category) Axis Labels and select the range that contains your month names.

Does this work in Excel Online?

Yes, the steps are essentially the same. The Insert tab and chart options are available in Excel for the web, though some advanced formatting options may be limited.