Smart Systems for Home

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

Graph Two Columns in Excel: 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 data in both columns, go to the Insert tab, and select the desired chart type (such as a Column or Line chart) from the Charts group. This process transforms raw numerical data into a visual representation, allowing you to identify trends, correlations, and outliers that are often invisible in a spreadsheet grid. Whether you are tracking monthly sales against targets or comparing temperature changes over time, visualizing two variables side-by-side is the most effective way to communicate data insights.

What You'll Need

  • A computer with Microsoft Excel installed (Windows, macOS, or the Web version).
  • A dataset consisting of two adjacent columns.
  • Column headers (labels) at the top of each column to ensure the chart is automatically labeled.
  • Consistent data types (e.g., ensure all values in a numerical column are formatted as numbers, not text).

Step-by-Step

  1. Prepare Your Data: Organize your data so that the two columns you wish to graph are next to each other. Typically, the left column represents the X-axis (the independent variable, such as dates or categories) and the right column represents the Y-axis (the dependent variable, such as revenue or quantity). Ensure there are no completely empty rows or columns within the data range, as this can cause gaps in your graph.
  2. Select the Data Range: Click on the top-left cell of your data (usually the header of the first column). Hold the left mouse button and drag the cursor down to the bottom-right cell of the second column. Alternatively, you can click the first cell and press Ctrl + Shift + Down Arrow, then Shift + Right Arrow. Including the headers in your selection is critical because Excel uses these labels to automatically generate the chart title and legend.
  3. Navigate to the Insert Tab: Once the data is highlighted, move your cursor to the top ribbon menu and click on the Insert tab. Note that menu labels may differ slightly depending on your version of Excel (e.g., Excel 365 vs. Excel 2019) or your operating system.
  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 Region).
    • Line Chart: Ideal for showing trends over time (e.g., Stock Price by Day).
    • Scatter Plot: Used to find correlations between two sets of numbers (e.g., Height vs. Weight).
    Click the icon for the chart type you prefer and select a specific style from the dropdown menu (such as 2-D Clustered Column).
  5. Verify the Axis Assignment: Excel will automatically generate the chart. Check if the X-axis (horizontal) and Y-axis (vertical) are correct. If Excel has swapped them, or if it is treating your X-axis numbers as a data series instead of labels, you will need to adjust the data source.
  6. Customize the Chart Elements: Click on the chart to reveal the Chart Design and Format tabs in the ribbon. Use the "Add Chart Element" button on the far left of the Chart Design tab to add axis titles, data labels, or a trendline. This ensures that anyone viewing the graph understands exactly what the numbers represent.
  7. Finalize the Layout: Click and drag the corners of the chart area to resize it. You can also click and drag the chart to move it to a different part of the worksheet or onto a new sheet entirely for better visibility.

Common Mistakes

One of the most frequent errors is failing to include headers in the initial selection. When you skip the headers, Excel assigns generic names like "Series 1" to your data, forcing you to manually edit the legend later, which is time-consuming and prone to error.

Another common mistake is selecting non-adjacent columns without using the correct modifier key. If your data is in Column A and Column D, simply dragging the mouse will select Columns B and C as well, cluttering the graph with irrelevant information. To avoid this, select the first column, hold the Ctrl key (Windows) or Command key (Mac), and then select the second column.

Users often choose the wrong chart type for their data. For example, using a Line chart for categorical data (like "Fruit Type") can be misleading because a line implies a continuous connection or a progression over time. In such cases, a Column chart is the correct choice. Conversely, using a Column chart for 365 days of data will result in an unreadable, crowded mess; a Line chart is far superior for high-density time series.

Lastly, formatting issues often trip up beginners. If a column of numbers is formatted as "Text," Excel may treat those numbers as labels rather than values. This results in a graph that looks empty or has an incorrectly scaled Y-axis.

Tips

To make your graphs more professional, remove the gridlines if they aren't providing essential value. This creates a cleaner look and puts the focus entirely on the data trend. You can do this by clicking a gridline and pressing the Delete key.

Use "Quick Analysis" for a faster workflow. In newer versions of Excel, after you select your two columns, a small icon appears at the bottom-right of the selection. Clicking this allows you to preview various charts instantly before officially inserting them into the sheet.

For datasets that change frequently, convert your data range into an official Excel Table (Ctrl + T) before creating the graph. When you add new rows of data to a Table, the associated chart will update automatically, eliminating the need to manually re-select the data range every time you add a new entry.

If you are presenting the data to an audience, use the "Chart Styles" gallery in the Chart Design tab. These pre-set color palettes and formatting options are designed to be visually appealing and high-contrast, ensuring readability on projectors or in PDF reports.

Troubleshooting

The graph is blank or shows no data: This usually happens when the data is formatted as text. Select the column, go to the Home tab, and change the Number Format dropdown from "Text" to "General" or "Number." If a small green triangle appears in the corner of the cells, click the warning icon and select "Convert to Number."

Excel is graphing the X-axis as a second line: This is common when the X-axis contains numbers (like years). Excel thinks both columns are values to be plotted. To fix this, right-click the chart, choose "Select Data," and look at the "Horizontal (Category) Axis Labels" section on the right. Click "Edit" and select the range of cells that should be the labels.

The axes are swapped: If your categories are on the Y-axis and values are on the X-axis, go to the Chart Design tab and click "Switch Row/Column." This toggles how Excel interprets the data structure.

The chart is too small to read: Instead of just dragging the corners, you can move the chart to its own dedicated sheet. Right-click the chart and select "Move Chart," then choose "New sheet." This allows the graph to occupy the full screen, which is ideal for detailed analysis.

Frequently Asked Questions

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

Yes. Select the first column, hold the Ctrl key (Windows) or Command key (Mac), and then select the second column. Then proceed to the Insert tab as normal.

How do I change the colors of the bars or lines?

Click on the data series (the bar or line) within the chart to select it. Right-click and choose "Format Data Series," where you can find the "Fill & Line" bucket icon to change colors and line thickness.

What is the difference between a Line chart and a Scatter plot for two columns?

A Line chart treats the X-axis as a sequence of labels (even if they are numbers). A Scatter plot treats both the X and Y axes as numerical values, plotting the exact coordinates of each point. Use Scatter plots for scientific data.

How do I add a second Y-axis for columns with different scales?

If one column has values in the millions and the other in the tens, you need a secondary axis. Right-click the data series that needs the change, select "Format Data Series," and under "Series Options," select "Secondary Axis."

Can I update the graph automatically when I change the data?

Yes, Excel charts are dynamic. Any change made to the cells in the selected range will be reflected in the graph instantly. If you add new rows, however, you must either update the data range in "Select Data" or use an Excel Table.