To make a chart in Excel with two data sets, highlight all the relevant columns—including the labels and both sets of data—then go to the Insert tab and select your preferred chart type, such as a Clustered Column or Line chart. This allows you to visually compare two different variables across the same categories, such as comparing sales figures for two different years or tracking temperature and humidity over a week. By grouping your data correctly before inserting the chart, Excel automatically assigns different colors to each data set and generates a legend for easy identification.
What You'll Need
- A computer with Microsoft Excel installed (Windows, macOS, or the Web version).
- A dataset organized in a table format with clear headers.
- Two distinct sets of numerical data that share a common X-axis (such as dates, names, or categories).
Step-by-Step
- Organize Your Data: Before clicking any buttons, ensure your data is laid out logically. The most effective structure is a table where the first column contains your labels (the X-axis categories) and the next two columns contain your numerical data sets. For example, Column A might be "Month," Column B might be "2023 Revenue," and Column C might be "2024 Revenue." Ensure there are no completely empty rows or columns within the data range, as this can confuse Excel's auto-detection tools.
- Select the Data Range: Click and drag your mouse to highlight the entire range of data. This must include the header row (the titles of your columns) and the label column. For instance, if your data spans from cell A1 to C13, click A1 and drag down to C13. Including the headers is critical because Excel uses these labels to automatically name the series in your chart legend.
- Navigate to the Insert Tab: With the data still highlighted, click on the Insert tab located in the top ribbon menu. Note that menu labels and icons may vary slightly depending on whether you are using Excel for Windows, macOS, or the web-based version.
- Choose Your Chart Type: In the Charts group, you will see several icons. For comparing two data sets, the most common choices are:
- Column or Bar Chart: Best for comparing discrete quantities (e.g., comparing the performance of two different products).
- Line Chart: Ideal for showing trends over time (e.g., comparing stock prices of two companies over six months).
- Area Chart: Useful for showing the magnitude of change over time while emphasizing the volume.
- Verify the Data Series: Once the chart appears on your worksheet, look at the legend (usually at the bottom or right). You should see two distinct entries corresponding to your two data sets. If only one set appears, or if the axes are swapped, you may need to adjust the data selection.
- Refine the Chart Layout: Click on the chart to reveal the Chart Design and Format tabs in the ribbon. Use Add Chart Element to add a descriptive Chart Title, Axis Titles (e.g., "Revenue in USD" for the Y-axis and "Month" for the X-axis), and Data Labels if you want the exact numbers to appear above the bars or points.
- Customize Colors and Styles: To make the two data sets more distinguishable, click on one of the data series (the bars or the line) to select it. Right-click and choose Format Data Series to change the fill color, line thickness, or marker style. This is particularly helpful if you are preparing the chart for a presentation where color-coding is important.
Common Mistakes
One of the most frequent errors is failing to include the header row in the initial selection. When headers are omitted, Excel assigns generic names like "Series 1" and "Series 2" to your data sets. While these can be renamed later, it adds unnecessary steps to the process. Another common mistake is selecting non-contiguous data without holding the Ctrl key (Windows) or Command key (Mac). If your two data sets are not next to each other in the spreadsheet, you must select the first set, hold the modifier key, and then select the second set; otherwise, Excel may ignore the gap or include irrelevant data in between.
Users also often choose the wrong chart type for their data. For example, using a Pie Chart for two data sets is impossible because a Pie Chart can only represent a single data series. Attempting to force two sets of data into a Pie Chart will usually result in Excel only graphing the first column of numbers it finds. Additionally, entering data as text (e.g., writing "$500" manually instead of formatting the cell as Currency) can prevent Excel from recognizing the values as numbers, leaving your chart empty or distorted.
Tips
To handle data sets with vastly different scales—for example, one set representing "Number of Users" (in the thousands) and another representing "Conversion Rate" (as a percentage)—use a Secondary Axis. To do this, right-click on the data series that looks "flat" because its values are too small, select Change Series Chart Type, and check the box for Secondary Axis. This adds a second Y-axis to the right side of the chart, allowing both data sets to be visible and meaningful.
For a more professional look, remove the default gridlines by clicking them and pressing Delete. This reduces visual clutter and makes the data points stand out. If you are working with a large amount of data, consider using a PivotChart. By first creating a PivotTable, you can summarize your data sets (e.g., totaling daily sales into monthly sales) before graphing them, which prevents the chart from becoming overcrowded and unreadable.
Troubleshooting
If your chart is blank or the data isn't appearing as expected, first check the formatting of your cells. Select your data and look at the Home tab; if the format is set to "Text," Excel cannot graph the numbers. Change the format to "Number" or "General" and re-insert the chart. If the X and Y axes are swapped (meaning your categories are on the side and your numbers are on the bottom), go to the Chart Design tab and click Switch Row/Column. This is a common fix when Excel misinterprets how your table is structured.
If some data points are missing from the chart, check for hidden rows or columns in your spreadsheet. By default, Excel does not plot data that is hidden. To fix this, right-click the chart, choose Select Data, click the Hidden and Empty Cells button at the bottom left of the dialog box, and select Show data in hidden rows and columns. If the chart is still not reflecting recent changes to your data, ensure that your data range is dynamic or manually update the range in the Select Data menu to include any new rows you have added.
Frequently Asked Questions
Can I add a third data set after the chart is already created?
Yes. Right-click the chart and choose Select Data. In the Legend Entries (Series) box, click Add. You can then select the name for the new series and the range of cells containing the new data.
How do I change the colors of the two data sets?
Click once on any bar or line in the first data set to select the entire series. Go to the Format tab and use the Shape Fill or Shape Outline tool to choose a new color. Repeat the process for the second data set.
What is the best chart for comparing two different units of measure?
A Combo Chart is the best choice. This allows you to set one data set as a Clustered Column and the other as a Line, while assigning the line to a secondary Y-axis so the different scales do not clash.
Why is my legend not appearing?
The legend may be turned off by default or moved off-screen. Go to the Chart Design tab, click Add Chart Element, hover over Legend, and select a position (such as Right or Bottom) to make it visible.
Can I create a chart with two data sets from different sheets?
Yes. When you go to Select Data and click Add, you can navigate to a different worksheet to select the range for your second data set. However, both sets must share the same X-axis labels to align correctly.
How do I make the bars for the two data sets overlap?
Right-click on one of the bars and select Format Data Series. In the panel that opens, adjust the Series Overlap slider. Moving it toward 100% will make the bars overlap completely, while moving it toward -100% will increase the gap between them.