How to Create a Graph with Multiple Variables in Excel

Charts & pivot tables · Updated November 23, 2026

Creating a graph with multiple variables in Excel lets you compare several data series on a single chart, making trends and relationships easier to spot. The quickest way is to select your data (including headers) and insert a chart from the Insert tab. For most multi-variable data, a line chart or clustered column chart works best. This guide covers the steps for Excel for Microsoft 365 on Windows, with notes for Mac and Excel for the web.

What You’ll Need

  • Excel for Microsoft 365, Excel 2021, Excel 2019, or Excel for the web (steps are similar).
  • Data organized in a table or range, with each variable in its own column and each row representing a data point (e.g., time period or category).
  • Headers in the first row that describe each variable (e.g., Month, Sales, Expenses, Profit).

Step-by-Step

  1. Organize your data – Put your data in columns. For example, column A has the x-axis labels (like months), and columns B, C, D each contain a different variable (like Sales, Expenses, Profit). Ensure there are no blank rows or columns within the data range.
  2. Select the data – Click and drag to select all cells that contain data, including the header row and the label column. For example, select A1:D13 if you have 12 months of data.
  3. Insert a chart – Go to the Insert tab on the ribbon. In the Charts group, choose a chart type. For multiple variables, a Line Chart (Insert Line or Area Chart) or a Clustered Column Chart (Insert Column or Bar Chart) is usually best. Click the chart type, then select the specific style (e.g., Line with Markers). Excel will create the chart on the same sheet.
  4. Check the chart – Excel should automatically assign the first column as the horizontal (category) axis and each subsequent column as a separate series. If it didn’t, you can adjust the data source (see next step).
  5. Adjust the data source (if needed) – Right-click the chart and select Select Data. In the dialog box, under Legend Entries (Series), you can add, edit, or remove series. Under Horizontal (Category) Axis Labels, click Edit and select the range that contains the x-axis labels (e.g., A2:A13). This is also where you can switch rows and columns if your variables are in rows instead of columns.
  6. Add a chart title – Click on the chart title (or go to Chart Design tab > Add Chart Element > Chart Title) and type a descriptive title like “Monthly Sales, Expenses, and Profit”.
  7. Label the axes – Go to Chart Design > Add Chart Element > Axis Titles. Add a title for the horizontal axis (e.g., “Month”) and the vertical axis (e.g., “Amount in $”).
  8. Customize the legend – The legend (which shows which color corresponds to which variable) is usually placed at the right or bottom. To move it, go to Chart Design > Add Chart Element > Legend and choose a position.
  9. Format the chart – Click on any element (like a data series) and use the Format pane (right-click > Format Data Series) to change colors, add data labels, or adjust line thickness. For a cleaner look, you can remove gridlines by selecting them and pressing Delete.
  10. Save and update – If your data changes, the chart updates automatically. To add more variables later, edit the source data range via Select Data or simply extend the selection and press Ctrl+T to create a table, which makes the chart auto-expand.

Common Mistakes

  • Using a 3D chart – 3D charts distort data and are hard to read. Stick to 2D line or column charts.
  • Not including headers – Without headers, Excel uses generic names like “Series1” and you lose clarity.
  • Mixing data types – If one column is text and another is a number, Excel may plot incorrectly. Ensure all variables are numeric (except the axis labels).
  • Leaving blank cells – Blank cells in the data range can cause gaps in line charts. Fill them with #N/A if you want to skip them, or leave them empty if you want a gap.
  • Forgetting to switch rows/columns – If your variables are in rows, you must click Switch Row/Column in the Select Data dialog.

Tips

  • Use a combo chart – If your variables have different units (e.g., sales in dollars and quantity in units), create a combo chart: select the data, insert a chart, then go to Chart Design > Change Chart Type and choose Combo. Assign one series to a secondary axis by checking the box.
  • Add data labels – For exact values, right-click a series and select Add Data Labels. This is helpful for small datasets.
  • Format the axis – Right-click the vertical axis, choose Format Axis, and set the number format (e.g., currency) to make the chart more readable.
  • Use a table – Convert your data range to a table (Ctrl+T) before inserting the chart. Then, when you add new rows, the chart automatically includes them.
  • Keep it simple – Limit to 4-5 variables to avoid clutter. If you have more, consider separate charts or a pivot chart.

Troubleshooting

  • All variables appear as one series – This happens when Excel doesn’t recognize your headers. Go to Select Data and check the series names. If they are “Series1”, click Edit under Legend Entries and select the header cell for each series.
  • The x-axis labels are numbers instead of text – If your label column contains numbers (e.g., years), Excel may treat them as a data series. In Select Data, ensure the Horizontal Axis Labels range is set to the label column, and that the label column is not included in the series range.
  • Chart doesn’t update when I add new data – If you didn’t use a table, the chart has a fixed range. Right-click > Select Data and expand the range, or convert to a table.
  • Secondary axis not working – In a combo chart, make sure you assign the series to the secondary axis in the Change Chart Type dialog. Also, verify that the secondary axis is visible (right-click the axis and select Format Axis).
  • On Mac, the ribbon looks different – In Excel for Mac, the Insert tab is similar, but the Chart Design tab is called Chart Design as well. Right-click options are the same. If you can’t find Select Data, it’s under the Chart Design tab on Mac too.
  • Excel for the web missing features – The web version supports basic charts and Select Data (under the chart’s ⋯ menu). Combo charts are available, but some formatting options are limited.

Frequently Asked Questions

  1. Can I graph more than 3 variables? – Yes, but the chart becomes harder to read. Excel can handle many series, but for more than 5, consider using a pivot chart or splitting into multiple charts.
  2. How do I put two variables on different scales? – Use a combo chart and assign one series to a secondary axis. Right-click the series, choose Format Data Series, and select Secondary Axis.
  3. What if my data is in rows instead of columns? – Select the data, insert a chart, then go to Chart Design > Switch Row/Column to flip the orientation.
  4. Why does my line chart have gaps? – Gaps appear when there are empty cells. To connect the line across gaps, right-click the series, choose Select Data, click Hidden and Empty Cells, and select Connect data points with line.
  5. Can I use a scatter plot for multiple variables? – Yes, a scatter plot is great if you have two numeric variables and want to show correlation. For more variables, you can add size or color (bubble chart), but it gets complex.
  6. How do I update the chart when I add new data? – The easiest way is to convert the data range to a table (Ctrl+T) before creating the chart. Then the chart will automatically include new rows.

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.