Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Add Another Line to a Graph in Excel: Easy Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To add another line to a graph in Excel, you need to add a new "Data Series" to your existing chart. This is achieved by right-clicking the chart, selecting Select Data, and clicking Add to define the new range of cells containing your second set of values. Adding multiple lines allows you to compare different data sets—such as sales from two different years or temperature changes across two cities—within a single visual frame.

What You'll Need

  • A computer with Microsoft Excel installed.
  • An existing chart (Line, Scatter, or Area chart) already created in your workbook.
  • The additional data you wish to plot, organized in columns or rows adjacent to your original data.

Step-by-Step

  1. Prepare your data: Ensure the new data you want to add is in a clear column or row. For the best results, the new data should share the same X-axis (horizontal) values as your first line. For example, if your first line tracks "January to December," your second line should also have data for "January to December."
  2. Open the Select Data window: Right-click anywhere on the chart area. From the context menu that appears, select Select Data.... (Note: Menu labels may differ slightly depending on your version of Excel or operating system).
  3. Add a new series: In the Select Data Source dialog box that opens, look at the Legend Entries (Series) section on the left side. Click the Add button.
  4. Name the series: A small Edit Series window will appear. Click inside the Series name box. You can either type a name (e.g., "2024 Sales") or click on the cell in your spreadsheet that contains the header for that data.
  5. Select the values: Click inside the Series values box. Clear any default content (like ={1}) and then use your mouse to highlight the range of cells on your spreadsheet that contains the numerical data for the new line.
  6. Confirm the addition: Click OK on the Edit Series window, and then click OK again on the main Select Data Source window. The new line should now appear on your graph.
  7. Format the new line: To make the new line distinct, right-click the new line on the graph, select Format Data Series, and use the paint bucket icon to change the line color or style (dashed, dotted, etc.).

Common Mistakes

  • Incorrect Range Selection: Selecting the header cell inside the "Series values" box. The "Series values" box should only contain the numbers, while the "Series name" box should contain the header.
  • Mismatched X-Axis: Adding a line that has 12 data points when the original line only has 6. This can cause the line to look distorted or not align with the labels on the horizontal axis.
  • Including Blank Cells: Selecting empty cells at the bottom of a column. This can cause the line to "drop" to zero or disappear toward the end of the graph.
  • Forgetting the Legend: Adding a second line without adding a legend. Without a legend, viewers will not know which line represents which data set.

Tips

  • Use a Secondary Axis: If your second line uses a completely different scale (e.g., one line is "Total Revenue" in millions and the other is "Conversion Rate" in percentages), the second line may look like a flat line at the bottom. To fix this, right-click the new line, select Format Data Series, and choose Secondary Axis.
  • Keyboard Shortcut: If your new data is directly next to your old data in the spreadsheet, you can sometimes simply click and drag the colored selection boxes on the spreadsheet (which appear when you click the chart) to expand the data range.
  • Consistency: Use contrasting colors (e.g., Blue and Orange) to ensure the lines are easily distinguishable for people with color vision deficiencies.

Troubleshooting

If the new line does not appear or looks incorrect, try these steps in order:

  • Check Data Types: Ensure the cells you selected are formatted as "Number" or "General." If the numbers are formatted as "Text," Excel will not be able to plot them on a graph.
  • Verify the Range: Go back to Select Data and double-check that the Series values range exactly matches the number of rows in your original data.
  • Refresh the Chart: Sometimes Excel doesn't update the visual immediately. Try clicking outside the chart and then clicking back into it.
  • Check for Hidden Rows: If your data is in a filtered table or has hidden rows, Excel may not plot those points. Unhide the rows to see if the line appears.

Frequently Asked Questions

Can I add a third or fourth line?

Yes. You can repeat the "Add Series" process as many times as needed to include multiple lines on a single chart.

How do I remove a line after adding it?

Right-click the chart, go to Select Data, select the series you want to remove from the list on the left, and click the Remove button.

Why does my new line look like a series of dots instead of a line?

This usually happens if you are using a "Scatter Plot" instead of a "Line Chart." You can change this by right-clicking the data points and selecting Format Data Series, then enabling "Smoothed line" or changing the marker options.

What if my X-axis labels are wrong after adding a line?

In the Select Data window, look at the Horizontal (Category) Axis Labels section on the right. Click Edit and select the range of cells that contains your correct labels (e.g., dates or names).

Can I mix a bar chart and a line chart?

Yes. After adding the second series, right-click the new line, select Change Series Chart Type, and choose "Line" for one series and "Clustered Column" for the other. This is known as a Combo Chart.