Smart Systems for Home

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

How to Graph 2 Columns in Excel: A Step-by-Step Guide

· 7 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 graph two columns in Excel, highlight the two columns of data you want to visualize, go to the Insert tab, and select the desired chart type (such as a Column or Line chart) from the Charts group. This process converts raw numerical or categorical data into a visual representation, making it easier to identify trends, correlations, and outliers that are often invisible in a standard spreadsheet grid.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or macOS).
  • A dataset organized into two adjacent columns.
  • Clear headers for each column (e.g., "Date" and "Sales") to ensure the chart labels are automatically generated correctly.

Step-by-Step

  1. Prepare Your Data: Ensure your data is clean. Your first column should typically contain the independent variable (the X-axis, such as dates, names, or categories), and the second column should contain the dependent variable (the Y-axis, such as totals, percentages, or measurements). Ensure there are no completely empty rows or columns between your two data sets, as this can cause Excel to break the data into multiple series or leave gaps in your graph.
  2. Select the Data Range: Click and hold the left mouse button on the top-left cell of your first column (including the header). Drag your cursor across to the second column and down to the last row of data. Note that labels may differ slightly by version, device, or region, but the selection process remains consistent across Excel for Windows, Mac, and Web.
  3. Navigate to the Insert Tab: With the data still highlighted, click on the Insert tab located in the top ribbon menu. This tab contains all the tools necessary for adding visual elements to your workbook.
  4. Choose Your Chart Type: In the Charts group, you will see several icons. For two columns of data, the most common choices are:
    • Column or Bar Chart: Best for comparing discrete categories (e.g., Sales by Employee).
    • Line Chart: Ideal for showing trends over time (e.g., Monthly Revenue).
    • Scatter Plot: Best for showing the relationship between two sets of numbers to see if one affects the other.
    Click the icon for the chart type you prefer and select the specific sub-style (e.g., 2D Clustered Column).
  5. Position the Graph: Once you click the chart type, the graph will appear as an object floating over your cells. Click and drag the border of the chart to move it to a clear area of your worksheet. Use the corner handles to resize the chart to make it more readable.
  6. Add and Edit Chart Elements: Click on the chart to reveal the Chart Design and Format tabs in the ribbon. To add a title or axis labels, click the green plus sign (+) icon (Chart Elements) on the top right of the chart area. Check the boxes for Axis Titles and Chart Title, then click the text boxes on the graph to type in your custom labels.
  7. Refine the Visuals: Use the Chart Styles section in the Chart Design tab to change the color scheme or the background style. If you want to change the data range after the graph is created, right-click the chart and choose Select Data... to adjust the range of cells being used.

Common Mistakes

One of the most frequent errors is selecting empty cells around the data. If you highlight several empty columns or rows, Excel may attempt to plot those empty spaces, resulting in a graph with a large blank area or a missing legend. Always ensure your selection is tight to the data boundaries.

Another common mistake is the incorrect placement of data. Excel generally assumes the leftmost column is the X-axis (horizontal) and the rightmost column is the Y-axis (vertical). If you put your numbers in the first column and your labels in the second, Excel may try to graph the labels as a data series, leading to a confusing or empty chart. If this happens, you will need to swap the columns or use the "Switch Row/Column" button in the Chart Design tab.

Users often forget to include headers in their selection. While Excel can create a graph without headers, it will assign generic names like "Series 1" and "Category 1." Including the top row of your data in the selection allows Excel to automatically populate the legend and axis titles with your actual category names, saving you the manual effort of renaming them later.

Finally, mixing data types within a single column is a recipe for failure. This prevents the software from calculating the scale of the Y-axis, often resulting in a flat line or an error message stating that the data cannot be plotted.

Tips

To make your graphs more professional, use the Quick Layout tool found under the Chart Design tab. This allows you to instantly apply a pre-set arrangement of titles, legends, and data labels without having to add each element individually.

If you have a very large dataset, avoid plotting every single point on a line graph, as this can create a "jagged" look that is hard to read. Instead, consider using a PivotChart. By creating a PivotTable first, you can group your data (for example, grouping daily dates into months) before graphing, which smooths out the trend line and makes the data more digestible.

For those presenting data to executives, try removing the gridlines. By clicking on a gridline and pressing the Delete key, you create a cleaner, more modern aesthetic that puts the focus entirely on the data trend rather than the background structure of the chart.

Utilize the Conditional Formatting of your data before graphing if you need to highlight specific points. While the graph shows the trend, having a highlighted cell in the spreadsheet helps you quickly cross-reference the peak or valley in your graph with the exact raw number in your table.

Troubleshooting

If your graph appears blank or shows only one flat line, first check your data formatting. Select your numerical column, right-click, choose Format Cells, and ensure the category is set to Number or General. If the numbers are stored as text (often indicated by a small green triangle in the corner of the cell), Excel cannot graph them. You can fix this by selecting the cells and clicking the warning icon to select Convert to Number.

If the X-axis is showing numbers (1, 2, 3, 4) instead of your labels (January, February, etc.), the chart is not recognizing your first column as labels. To fix this, right-click the chart, select Select Data..., and look at the Horizontal (Category) Axis Labels section on the right. Click Edit and then highlight the range of cells containing your labels.

When the chart looks "squashed" or the scale is misleading, you can manually adjust the axis. Right-click the numbers on the Y-axis and select Format Axis. In the pane that appears, you can change the Minimum and Maximum bounds. For example, if all your data points are between 90 and 100, setting the minimum to 80 instead of 0 will make the differences between your data points much more visible.

If you add new rows of data to your spreadsheet but they aren't appearing on the graph, you have a static range. To avoid manually updating the graph every time you add data, convert your data range into an official Excel Table first. Select your data and press Ctrl + T (Windows) or Cmd + T (Mac). Now, any chart created from this table will automatically expand to include new rows as you type them in.

Frequently Asked Questions

Can I graph two columns that are not next to each other?

Yes. Hold the Ctrl key (Windows) or Command key (Mac) while selecting the first column, then continue holding the key and select the second column. Excel will treat these as a contiguous range for the purpose of the graph.

How do I change the chart from a bar chart to a line chart after creating it?

You do not need to delete the chart. Click on the chart to select it, go to the Chart Design tab, and click Change Chart Type. Select the new style from the list and click OK.

Why is my X-axis showing dates as numbers?

This happens when Excel doesn't recognize the cell format as a date. Highlight the column, go to the Home tab, and change the number format dropdown from "General" to "Short Date." The graph should update automatically.

How can I add a second Y-axis for different scales?

If your two columns have wildly different scales (e.g., one is 0-10 and the other is 0-10,000), right-click the data series you want to move, select Format Data Series, and check the box for Secondary Axis.

Can I make the graph update automatically when I change the numbers?

Yes, Excel graphs are dynamic by default. Any change you make to the values in the selected cells will be reflected in the graph immediately without needing to refresh or redraw the chart.