Smart Systems for Home

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

How to Chart Two Data Sets in Excel

· 8 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 chart two data sets in Excel, put both series in adjacent columns or rows with a shared category column, select the whole block including the labels, then go to Insert > Charts and pick the chart type you want. Excel plots each value column as its own series automatically. The result is a single chart with two lines, two bars or two scatter series sharing one axis, so you can compare them side by side. If the two data sets use very different units, add a secondary axis so the second series is readable. From there you can fix legends, axis titles and labels so the chart says exactly what you mean. The steps below use the desktop version of Excel for Windows or Mac; Excel for the web works almost the same, but a few chart dialogs are simplified and some advanced options are on the desktop only.

What You'll Need

  • Excel on desktop (Microsoft 365, Excel 2021 or 2019) or Excel for the web, plus whichever account you sign in with for your version
  • Your two data sets, ideally already cleaned: no blank rows or columns inside the block, no merged cells, and one value per cell
  • A clear layout: categories down the first column, then one column per data set, or the same structure across rows
  • The same number of categories for both data sets, or matching labels so Excel can pair them correctly
  • Consistent number formats in both columns, so the axis scale stays sensible

Step-by-Step

  1. Lay the data out in a table. Put your categories in column A, the first data set in column B and the second in column C, with a bold header row above. For example A1 = Month, B1 = Sales 2024, C1 = Sales 2025. Keep each data set in its own column rather than typing two values into one cell as text such as "45/38"; Excel will treat that as a label, not numbers, and refuse to plot it. Menu labels can differ slightly by version or region, but the layout rules never change.
  2. Select the whole block including headers. Click A1 and drag to the bottom-right cell of your data, or click any cell inside the block and press Ctrl+A (Cmd+A on Mac) once. The headers in row 1 tell Excel what to name each series and the first column tells it what the categories are.
  3. Insert the chart. Go to Insert > Charts and choose the type that suits the comparison. For two series over time, choose a line chart or a clustered column chart. For two related measurements, choose a scatter chart. Move your pointer over a chart icon to see a preview before clicking. Excel places the chart on the sheet and treats column B and column C as separate series.
  4. Check the legend and categories. If Excel misreads the layout, click the chart, then go to Chart Design > Select Data. In the dialog, confirm the Legend Entries (Series) list shows both data sets and that Horizontal (Category) Axis Labels points at your category column. If a series is missing, use Add to pick its range manually, and use Edit on the axis labels to reselect column A. This one dialog fixes most "only one line shows" problems.
  5. Fix a wrong header row. If Excel used one of your data rows as a series name, open Select Data and correct each series name to the real header cell, or untick the box that treats the first row as headers in your table options. The same applies if your first column was plotted as a series rather than as labels.
  6. Decide whether you need a secondary axis. This matters when the two data sets use different units or wildly different scales, for example revenue in thousands next to a percentage rate. Click the series that needs it, then use Chart Design > Change Chart Type > Combo to give that series its own chart type and tick Secondary Axis. The right-hand axis then scales to that series. Do not add a secondary axis to two series with the same units: it makes a small difference look dramatic and misleads the reader.
  7. Add axis titles and a clear legend. Click the chart, then the plus button at its top-right corner (or use Add Chart Element on the Chart Design tab) and tick Axis Titles and Legend. Type the unit into the vertical axis title, such as "Revenue (USD thousands)", so nobody has to guess the scale. Rename the legend entries by editing the header cells in your sheet rather than by typing over the legend directly.
  8. Clean up the scale. Right-click the value axis and choose Format Axis. Set a minimum and maximum that fit the data instead of letting Excel pick something like 4,000 to 7,000, which exaggerates small changes. Keep both series on the same axis for an honest comparison, and consider starting from zero for bar and column charts, where a truncated axis distorts how long the bars look.
  9. Show the values if the chart is small. For a clustered column chart, use Add Chart Element > Data Labels to print each number on its bar. On a busy two-line chart, labels on every point can crowd the plot area, so use them on the first and last points only or rely on the axis instead.
  10. Format each series so they are easy to tell apart. Right-click a series and choose Format Data Series to set colour, marker shape and, for lines, whether the line is solid or dashed. Pick two colours that stay distinguishable in greyscale and for readers with colour-vision differences, and keep the same colour for the same data set across every chart in a report.
  11. Position and save. Drag the chart where you want it, or use Chart Design > Move Chart to place it on its own sheet. Save the workbook. To reuse the look on your next chart, right-click the chart and save it as a template, then apply that template from Insert > Charts > Templates.

Common Mistakes

  • Selecting only the value columns. If you leave out the category column, Excel numbers the points 1, 2, 3 instead of showing your months or names.
  • Text where numbers belong. A cell that looks like a number but is stored as text is plotted as zero or skipped. A small green triangle in the corner of the cell is the tell; convert it with Text to Columns or by retyping. Extra spaces before a number cause the same problem.
  • Blank rows inside the data. Gaps split your range and Excel may plot only part of it. Delete empty rows rather than hiding them.
  • Merged header cells. Merged cells break series names. Unmerge them and put one label per column.
  • Adding a secondary axis as decoration. Two axes are only honest when the units genuinely differ; otherwise readers compare heights that are not on the same scale.
  • Different category order in each data set. If one set lists January to December and the other starts in March, a scatter or line chart pairs the wrong points. Sort both sets the same way first.

Tips

  • Format your source range as a table (Insert > Table) so the chart grows automatically when you add rows; new columns need to be added to the series manually.
  • Keep one value per row and one series per column. Excel assumes that layout, and fighting it costs more time than fixing the sheet.
  • Double-click any chart text, such as an axis title or legend entry, to edit it in place rather than hunting through menus.
  • Use a line chart for trends over time, a clustered column chart for comparing totals across a handful of categories, and a scatter chart when both axes are measurements.
  • If you will paste a chart into a document, keep the font size at least 9–10 point and skip gridlines that add clutter without helping comparison.

Troubleshooting

If only one series appears, open Select Data and check that both ranges are listed; a common cause is a second column outside the selected block. If the chart is empty, confirm the values are stored as numbers and that the range is not on a hidden sheet. If the legend shows Series1 and Series2, your headers were not included in the selection — reselect from the header row, or rename the series in Select Data. If the axis shows dates as plain numbers, format the axis and choose a date category. If a series plots flat at zero, look for text-formatted cells or formulas returning empty strings. If the chart looks squashed, drag its corner to resize instead of shrinking the fonts. If Excel refuses to open Select Data, click once on the chart's border to select the whole chart rather than a single element inside it. And if the workbook behaves oddly, close and reopen it before changing any settings — that clears most temporary glitches.

Frequently Asked Questions

Can I chart two data sets with different units in Excel?

Yes. Use a combo chart with a secondary axis for the series in the other unit. It is honest when the units genuinely differ; avoid it when both series share the same unit.

Why does my chart show one line instead of two?

Usually the second column was outside the selected range or was stored as text. Fix it in Chart Design > Select Data by adding the missing range or converting the cells to numbers.

How do I add a second data set to an existing chart?

Copy the new column, click the chart, then paste. Alternatively use Select Data > Add and point at the new range, including its header cell.

Can I compare data sets from two different sheets?

Yes. When adding a series in Select Data, switch to the other sheet and select the range there. Both sets still need matching categories to line up correctly.

Does this work in Excel for the web?

The basic steps work, including line, column, scatter and combo charts. A few advanced formatting options exist only in the desktop app, so switch to desktop if a setting is missing.

How do I show the actual numbers on a two-series bar chart?

Turn on Data Labels from Add Chart Element. On a dense line chart, label only the end points so the plot stays readable.