How to Make a Graph with Multiple Variables in Excel

Charts & pivot tables · Updated November 23, 2026

To make a graph with multiple variables in Excel, the quickest way is to select all your data (including headers) and insert a chart from the Insert tab. For example, if you have time in column A, and two different measurements in columns B and C, selecting A1:C10 and choosing a line or scatter chart will automatically plot both series. This guide covers the steps in detail, including how to use different chart types for different data, how to add a secondary axis, and how to avoid common pitfalls.

What You’ll Need

  • Microsoft Excel for Microsoft 365 on Windows (steps for Mac and Excel for the web are noted where they differ).
  • Data organized in columns or rows, with a clear header row or column. For example, column A could be the independent variable (like date or time), and columns B, C, D could be dependent variables (like sales, profit, and expenses).
  • No extra add-ins are required; the built-in chart tools are sufficient.

Step-by-Step

  1. Prepare your data. Put your independent variable (the one you want on the X-axis) in the first column, and each dependent variable in its own column to the right. Use the first row for headers. Example: A1 = “Month”, B1 = “Sales”, C1 = “Profit”, D1 = “Expenses”. Fill in the data below. Ensure there are no blank rows or columns within the data range, as Excel may not plot them correctly.
  2. Select the entire data range. Click and drag from the top-left cell (A1) to the bottom-right cell (D12, for example). Include the headers, because Excel will use them as series names.
  3. Insert a chart. Go to the Insert tab on the ribbon. In the Charts group, choose a chart type. For time-based or continuous data, a line chart or scatter plot works well. For comparing categories (like product names), a clustered column chart is often clearer. Click the desired chart icon (e.g., Line or Column). Excel will create the chart on the same sheet.
  4. Check the series. By default, Excel should plot each column as a separate series. If it didn’t, right-click the chart and choose Select Data. In the dialog, you can add, edit, or remove series. Under “Legend Entries (Series)”, click Add to manually specify a series name and values, or use the Switch Row/Column button to flip how Excel reads your data.
  5. Customize the axes. Click on the X-axis (horizontal) to select it. Right-click and choose Format Axis. Here you can adjust bounds, units, and tick marks. For the Y-axis, do the same. If your variables have very different scales (e.g., sales in thousands and profit in hundreds), you may need a secondary axis. To add one, click on the series you want on a secondary axis (click the line or bar for that series), then right-click and select Format Data Series. In the panel, choose Secondary Axis. This will create a second Y-axis on the right side.
  6. Add titles and labels. Click on the chart title to edit it. To add axis titles, click the Chart Elements button (the plus sign next to the chart), check Axis Titles, and then type in the text boxes that appear. For example, “Month” for the X-axis and “Amount ($)” for the Y-axis.
  7. Format the legend. The legend shows which color corresponds to which variable. Click on the legend to select it, then drag it to a better position (like top or right) or use the Format Legend pane to change its placement. You can also click on a series name in the legend to edit it directly.
  8. Refine the design. Use the Chart Design tab (which appears when you select the chart) to change the chart style, colors, or layout. You can also right-click on any element (like gridlines or data points) to format them individually.
  9. Update the data. If you add more rows or columns to your data, the chart may not automatically include them unless you use a table or update the range. To update, right-click the chart and choose Select Data, then adjust the range in the “Chart data range” box. Alternatively, convert your data range to a table (select the data, press Ctrl+T on Windows, Cmd+T on Mac) so that charts automatically expand with new data.

Common Mistakes

  • Plotting non-numeric data as a series. If your first column contains text (like month names), Excel might treat it as a series instead of the X-axis. To fix, use the Select Data dialog to set the correct horizontal axis labels.
  • All series on the same scale. When variables have vastly different ranges, a single Y-axis makes one series look flat. Use a secondary axis as described above.
  • Forgetting headers. Without headers, Excel uses “Series1”, “Series2”, etc., which is confusing. Always include headers in your selection.
  • Blank cells in the data. Blank cells can create gaps in line charts or cause missing bars. Fill them with #N/A if you want to skip a point, or ensure the range is contiguous.
  • Using a pie chart for multiple variables. Pie charts can only show one data series. For multiple variables, use a column, line, or bar chart.

Tips

  • Use a table for dynamic ranges. Convert your data to a table (Ctrl+T) before inserting a chart. Any new rows added to the table will automatically appear in the chart, saving you from manual updates.
  • Choose the right chart type. For continuous data (like time), use a line chart or scatter plot. For categorical comparisons, a clustered column chart is usually best. If you have many variables, consider a combo chart (e.g., columns for one variable and a line for another) by going to Insert > Combo Chart.
  • Keep colors consistent. Use the same color for the same variable across multiple charts to avoid confusion. You can set custom colors in the Format Data Series pane.
  • Use axis titles and data labels sparingly. Too many labels can clutter the chart. Only add labels to key points if needed.
  • Save a template. If you create a chart you like, right-click it and choose Save as Template to reuse it later with different data.

Troubleshooting

  • My chart only shows one series. This usually means Excel didn’t recognize your columns as separate series. Right-click the chart, choose Select Data, and click Add to manually add each series. Make sure the “Series values” field points to the correct column.
  • The X-axis labels are numbers instead of text. If your first column contains text, but Excel is treating it as a numeric series, go to Select Data and edit the “Horizontal (Category) Axis Labels” to reference the first column. If your first column is numeric (like years), Excel might plot it as a series; in that case, you may need to use a scatter chart or explicitly set the axis labels.
  • Series appear on the wrong axis. After adding a secondary axis, you might see the series on the wrong side. Right-click the series, choose Format Data Series, and select the correct axis option.
  • Chart doesn’t update when I change data. If you didn’t use a table, the chart range is fixed. Right-click the chart, choose Select Data, and update the range. Or convert to a table as described earlier.
  • Lines are not smooth. For line charts, right-click the line, choose Format Data Series, and check “Smooth line” if you want a smoother curve. For scatter plots, you can add a trendline instead.
  • On Mac, the ribbon looks different. The steps are similar, but the Insert tab is in the top menu bar. Right-clicking works the same, and the Format Data Series pane appears on the right. Keyboard shortcuts use Cmd instead of Ctrl.

Frequently Asked Questions

  • How do I add a secondary axis in Excel? Click on the data series you want on a secondary axis (click the line or bar once to select it), then right-click and choose Format Data Series. In the pane, select Secondary Axis. Excel will add a second Y-axis on the right.
  • Can I make a graph with 3 or more variables? Yes, you can plot as many series as you have columns of data. Just include all columns in your selection, and each will appear as a separate series in the chart.
  • What is the best chart type for multiple variables? For time series, a line chart is clear. For comparing categories, a clustered column chart works well. If you have mixed data types, a combo chart (line + column) can be effective.
  • How do I change the X-axis labels? Right-click the chart, choose Select Data, and under “Horizontal (Category) Axis Labels”, click Edit and select the range of cells you want as labels.
  • Why is my chart showing “Series1” instead of my column headers? This happens when you don’t include the header row in your selection, or when Excel doesn’t detect it. Ensure you select the headers, and in Select Data, edit each series name to reference the header cell.
  • Can I create a graph with multiple variables in Google Sheets? Yes, the process is very similar. Select your data, go to Insert > Chart, and choose a chart type. Use the Chart editor to set series and axes. The main difference is that secondary axes are added via the “Customize” tab in the Chart editor.

Related

Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.

More in Charts & pivot tables

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.