Excel 2 Line Graph: Step-by-Step Guide
In this article
To make a 2 line graph in Excel, put your two data series in adjacent columns with a shared category column (for example, Month in column A, Series 1 in B, Series 2 in C), select the whole range including headers, then go to Insert > Charts > Insert Line or Area Chart and pick a line style. Excel plots both columns as separate lines on one chart. From there you can add a legend, axis titles, and data labels to make it readable.
What You'll Need
- Excel for Windows, Mac, or Excel for the web (the Insert > Charts group is in all three; exact button labels can differ slightly by version, device, and region).
- Two columns of numeric data, ideally with a shared category column (dates, months, labels) to the left.
- Column headers above each series so Excel names the lines automatically.
Step-by-Step
- Lay out the data in three columns. Put your categories (months, quarters, days) in column A starting at A1. Put the first series in column B and the second series in column C, with a header in B1 and C1. For example: A1 = Month, B1 = Sales, C1 = Returns. Rows 2 and down hold the values. Keep the numbers as true numbers, not text with spaces or currency symbols typed in a way Excel treats as text.
- Select the entire range including headers. Click A1 and drag to the bottom-right cell of your data, or press Ctrl+Shift+End (Windows) or Cmd+Shift+End (Mac) after clicking A1. The selection should cover all three columns and every data row.
- Insert the chart. Go to the Insert tab, find the Charts group, click the Line chart icon, and choose a line style. The first option (Line) draws a plain line for each series; Line with Markers adds dots at each data point, which is easier to read when you have few points. Excel places the chart on the sheet.
- Confirm both series are plotted. Look at the legend. It should show two entries, one per header. If only one line appears, Excel probably treated the second column as something else, or the header row was not included. Right-click the chart and choose Select Data to check the Series list.
- Set the category axis correctly. In the Select Data Source dialog (right-click the chart > Select Data), the Horizontal (Category) Axis Labels box should point at your category column (for example, A2:A13). If it shows 1, 2, 3 instead of your months, click Edit next to that box and select the category range.
- Add a chart title and axis titles. Click the chart, then click the + button (Chart Elements) at the top-right of the chart frame. Tick Chart Title, Axis Titles, and Legend. Type a title that says what the chart shows. Label the vertical axis with units (for example, "Units sold") so the scale is not ambiguous.
- Format the two lines so they are distinguishable. Click one line, then right-click > Format Data Series. Change the line color, and if needed the line style (dashed vs solid) or marker style. Do the same for the second line. Avoid relying on color alone if the chart may be printed in black and white; a dashed line for one series helps.
- Adjust the vertical axis scale if one series dwarfs the other. Right-click the vertical axis > Format Axis and set Minimum and Maximum bounds, or leave them automatic. If the two series have very different magnitudes, consider a secondary axis: right-click the series that needs it > Format Data Series > Plot on Secondary Axis. Note that a secondary axis can mislead readers if the scales are not labeled clearly.
- Move and size the chart. Drag the chart by its border to reposition it, or drag a corner handle to resize. For a cleaner layout, place it on its own sheet: right-click the chart > Move Chart > New sheet.
- Save and, if needed, export. Save the workbook as .xlsx. To share the chart as an image, right-click the chart border > Save as Picture (Windows) or copy and paste it into another app. Excel for the web can copy the chart into other Office apps but has fewer formatting options than the desktop version.
Common Mistakes
- Selecting only the value columns and leaving out the category column. The lines plot, but the horizontal axis shows 1, 2, 3 instead of your labels. Always include the category column in the selection.
- Leaving out the header row. Excel then names the series "Series1" and "Series2" and may plot the header text as a data point. Include row 1 in the selection.
- Numbers stored as text. If values were pasted from another system, they may be left-aligned text. The line may appear flat or missing. Select the column, use Data > Text to Columns > Finish, or multiply by 1 in an empty cell and paste back as values.
- Blank cells treated as zero. A blank cell in a line chart can drop the line to zero or create a gap depending on settings. Right-click the chart > Select Data > Hidden and Empty Cells to choose how gaps are handled.
- Using a stacked line chart by accident. Stacked lines add the series together, which is rarely what you want for two independent series. Choose the plain Line option.
Tips
- Keep the category labels short; rotate them (right-click axis > Format Axis > Text direction) if they overlap.
- Use a line with markers when you have fewer than about 12 data points, and a plain line for longer time series.
- Add data labels sparingly; a cluttered chart is harder to read than one with a clean axis.
- If you update the data often, convert the source range to a table (select it, press Ctrl+T). Charts based on a table expand automatically when you add rows.
- For a quick visual check, hover over a line to see the point value in a tooltip; this works in both desktop and web versions.
Troubleshooting
- Only one line appears. Check that both columns are selected and that the second column contains numbers, not text. Open Select Data and confirm two series are listed.
- The lines look flat or missing. The values may be text, or the axis scale may be set too wide. Right-click the vertical axis > Format Axis and reset bounds to Automatic.
- The horizontal axis shows numbers instead of labels. In Select Data, set the Horizontal (Category) Axis Labels to your category range.
- The chart does not update when data changes. Confirm the chart's source range covers the cells you edited. If you added rows below the original range, either extend the range in Select Data or convert the data to a table first.
- Labels overlap or are cut off. Resize the chart, reduce font size on the axis, or rotate the labels. On a crowded chart, consider showing every other label.
- The chart looks different on another computer. Fonts and default chart styles can vary by Excel version and platform. If exact appearance matters, save as PDF or an image before sharing.
Frequently Asked Questions
Can I plot two lines with different vertical axes?
Yes. Right-click the series you want on the secondary axis, choose Format Data Series, and select Plot on Secondary Axis. Label both axes clearly so readers are not misled.
How do I add a third line later?
Add the new values in the next column with a header, then right-click the chart > Select Data > Add and point to the new range. Or, if the chart is based on a table, type the new column inside the table and the chart updates automatically.
Why does my line chart show a gap?
A blank cell in the source data creates a gap by default. Right-click the chart > Select Data > Hidden and Empty Cells and choose whether to show gaps, connect data points, or treat blanks as zero.
Can I make a 2 line graph in Excel for the web?
Yes. Select the range, go to Insert > Chart, and choose Line. The web version has fewer formatting options than the desktop app, but the basic two-series line chart works the same way.
How do I change the line colors?
Click a line, right-click, and choose Format Data Series. Pick a line color and, if you like, a dash style. Repeat for the second line.
Can I copy the chart into Word or PowerPoint?
Yes. Click the chart border, copy, and paste into the other app. You can paste it as a picture or keep it linked to the workbook so it updates when the data changes.