To make a chart in Excel with two variables, put your data in two adjacent columns (or rows) with clear headers, select the range, then choose Insert > Charts and pick a chart type that suits your variables. For two numeric variables, a scatter chart is usually the best choice; for two categories or a category plus a value, a clustered column or line chart works well. Excel will plot the first column on the horizontal axis and the second on the vertical axis, or both as series, depending on the chart type you choose. The steps below walk through the most reliable approach on Excel for Windows and Mac; the ribbon labels can differ slightly by version, device, or region, but the chart types and options are essentially the same.
What You'll Need
- Excel installed on your computer (Windows or Mac). The browser version works too, but some chart formatting options are limited.
- Your data arranged in two columns or two rows, with one header per column or row.
- Numeric data for at least one variable; the other can be numeric or categorical.
- A clear idea of what you want to show: a relationship between two numbers, a comparison across categories, or a trend over time.
Step-by-Step
- Lay out your data. Put the two variables in adjacent columns, for example A1: Month, B1: Sales. Fill the rows below with your values. Keep one header row only; do not merge cells or leave blank rows inside the data range.
- Select the data range. Click the top-left cell of your data (including the header) and drag to the bottom-right cell, or press Ctrl+A (Windows) or Command+A (Mac) while inside the range. If your data has headers, make sure they are included.
- Open the Insert tab. On the ribbon, click Insert. The Charts group shows recommended chart types and a dialog launcher (the small arrow at the bottom-right of the group).
- Choose a chart type. For two numeric variables where you want to see a relationship, click Insert Scatter (X, Y) or Bubble Chart and pick Scatter. For a category plus a value, choose Clustered Column. For a trend over time, choose Line. If you are unsure, click Recommended Charts and review the previews.
- Check the axes. Excel usually places the first column on the horizontal (category) axis and the second column as the vertical value axis. If the axes look swapped, right-click the chart and choose Select Data, then edit the series to point to the correct columns.
- Add axis titles. Click the chart, then click the + button (Chart Elements) at the top-right of the chart and tick Axis Titles. Type a label for each axis so readers know what the numbers mean.
- Add a chart title. In the same Chart Elements menu, tick Chart Title and type a short, descriptive title such as Sales by Month.
- Format as needed. Right-click any element (axis, data series, legend) and choose Format to adjust number formats, colors, or marker styles. Keep formatting minimal so the data stays readable.
- Move or resize the chart. Drag the chart by its border to reposition it, or drag a corner handle to resize. To place it on its own sheet, right-click the chart and choose Move Chart > New sheet.
- Save and verify. Save the workbook, then click a data point and confirm the formula bar shows the correct cell reference. If it does not, your range selection was off and you should reselect and recreate the chart.
Common Mistakes
- Including blank rows or subtotals in the range. Excel treats them as data points, which distorts the chart. Remove blanks or use a contiguous range.
- Mixing text and numbers in the same column. A column with numbers stored as text will plot as zero or be ignored. Check for green error triangles and convert to numbers.
- Choosing the wrong chart type. A pie chart cannot show two numeric variables; a line chart implies a sequence that may not exist. Match the chart to the question.
- Forgetting headers. Without headers, Excel names series Series1 and Series2, making the legend meaningless.
- Leaving the default title. A chart titled Chart Title tells the reader nothing; replace it with a specific description.
Tips
- Use a scatter chart when both variables are numeric and you want to see correlation or clustering.
- Sort your data before charting if the order matters, especially for line charts.
- Keep the number of data points reasonable; too many points make a scatter chart hard to read.
- Use a table (Insert > Table) as the source so the chart updates automatically when you add rows.
- Press F11 (Windows) to create a chart on a new sheet instantly from the selected range.
- Double-click any chart element to open its formatting pane and adjust it precisely.
Troubleshooting
- The chart is empty or shows zeros. Your selected range likely contains text where numbers should be. Recheck the cells and convert text to numbers.
- The axes are reversed. Right-click the chart, choose Select Data, and swap the X and Y series ranges.
- The legend shows Series1 and Series2. Your headers were not included in the selection. Reselect the range including the header row and recreate the chart.
- The chart does not update when data changes. The chart may be linked to a fixed range. Convert the source to a table or update the range in Select Data.
- Excel will not create the chart at all. Close and reopen the workbook, then try again. If the problem persists, copy the data to a new workbook and chart it there.
Frequently Asked Questions
Can I chart two variables where one is text and one is a number?
Yes. Use a column or bar chart. The text column becomes the category axis and the number column becomes the value axis.
What is the best chart for two numeric variables?
A scatter (X, Y) chart. It plots each pair as a point and makes relationships and outliers easy to see.
How do I add a second vertical axis?
Right-click the series you want on the secondary axis, choose Format Data Series, and select Secondary Axis. This is useful when the two variables have very different scales.
Can I make a chart from two columns that are not next to each other?
Yes. Hold Ctrl (Windows) or Command (Mac) while selecting each column, then insert the chart.
Why does my line chart connect points that should not be connected?
Line charts treat the horizontal axis as a sequence. If your data has gaps, use a scatter chart with straight lines or leave the gaps as blanks.
Does the chart update if I change the data?
Yes, if the chart is linked to the cells. Changes to values in the source range update the chart automatically; adding new rows requires extending the range or using a table.