How to Make a Graph in Excel: Step-by-Step Guide
In this article
To make a graph in Excel, select your data, go to the Insert tab, choose a chart type from the Charts group, and Excel will create the graph instantly. You can then customize titles, axes, and styles. This guide walks you through the entire process, from selecting data to formatting a professional-looking chart.
What You'll Need
- Microsoft Excel (desktop version, Excel for the web, or mobile app) with a spreadsheet containing data you want to visualize.
- Data organized in rows or columns, ideally with headers in the first row or column (e.g., categories in one column, values in another).
Step-by-Step
- Open your spreadsheet in Excel. Make sure your data is clean: no blank rows or columns within the data range, and no merged cells in the data area.
- Select the data you want to include in the graph. Click and drag to highlight the cells, including headers. For example, if you have months in column A and sales in column B, select A1:B12.
- Go to the Insert tab on the ribbon at the top of Excel. The ribbon is the toolbar with tabs like Home, Insert, Page Layout, etc.
- Choose a chart type from the Charts group. Common options include:
- Column or Bar for comparing categories.
- Line for trends over time.
- Pie for showing proportions of a whole.
- Scatter for relationships between two variables.
- Click the chart type you want. Excel will insert the graph on the same sheet, usually as a floating object. You can also choose a specific subtype (e.g., stacked column, line with markers) from the dropdown.
- Move or resize the graph if needed. Click on the chart to select it, then drag the edges to resize or drag the whole chart to reposition it on the sheet.
- Add a chart title: Click on the chart, then click the chart title text box (usually says "Chart Title") and type your own title. Alternatively, go to the Chart Design tab (appears when the chart is selected) and click Add Chart Element > Chart Title.
- Label the axes (if applicable): With the chart selected, go to Chart Design > Add Chart Element > Axis Titles. Choose Primary Horizontal and Primary Vertical to add text boxes for each axis, then type the labels (e.g., "Month" and "Sales").
- Customize the style: Use the Chart Design tab to change the chart style (colors, effects) or the Format tab to change individual elements like data point colors, fonts, and gridlines. You can also right-click any element (e.g., the plot area, data series) and select Format to open a pane with options.
- Update the data if you add or change values: Click the chart, then go to Chart Design > Select Data. In the dialog, you can edit the data range or add/remove series. Alternatively, if you add new rows to your original data, the chart may not update automatically unless you change the range.
Common Mistakes
- Selecting blank rows or columns in the data range, which can cause Excel to include empty categories or misread the series.
- Using the wrong chart type for your data (e.g., a pie chart for time series data).
- Not including headers in the selection, so Excel uses generic names like "Series1" instead of your column titles.
- Merged cells in the data range, which can confuse Excel's data interpretation.
- Forgetting to update the chart after adding new data points; the chart may not automatically expand to include new rows.
Tips
- Use keyboard shortcuts: After selecting data, press Alt + F1 to insert a default chart instantly, or F11 to create a chart on a new sheet.
- Switch row/column if your data is laid out differently than you want. With the chart selected, go to Chart Design > Switch Row/Column to swap the axes.
- Use recommended charts: On the Insert tab, click Recommended Charts to let Excel suggest the best type based on your data.
- Format numbers on the axis: Right-click the axis numbers, choose Format Axis, and set number formats (e.g., currency, percentage) for clarity.
- Keep it simple: Avoid too many data series or overly complex formatting; a clean chart is easier to read.
Troubleshooting
If your chart doesn't look right, try these steps in order:
- Check your data selection: Click the chart, then go to Chart Design > Select Data. Verify the data range is correct and includes all headers and values. If not, edit the range.
- Verify the chart type: Sometimes a different chart type is more appropriate. Right-click the chart, choose Change Chart Type, and try another type.
- Look for hidden rows or columns: If your data has hidden rows/columns, Excel may exclude them. Unhide them or reselect the data.
- Check for text vs. numbers: If numbers are stored as text (e.g., left-aligned in cells), Excel may not plot them correctly. Select the cells, look for a warning icon, and convert to number.
- Restart Excel: If the chart is not updating or the ribbon is unresponsive, save your work and restart Excel. This clears temporary glitches.
- Recreate the chart: If all else fails, delete the chart and create a new one from scratch with a fresh data selection.
If your data is on a different sheet, make sure the chart references the correct sheet. You can also move the chart to a new sheet by right-clicking it and choosing Move Chart.
Frequently Asked Questions
How do I change the data range after creating a chart?
Click the chart, go to Chart Design > Select Data. In the dialog, edit the "Chart data range" field or use the range selector icon to reselect cells.
Can I make a graph from non-adjacent columns?
Yes. Hold the Ctrl key while selecting multiple ranges (e.g., column A and column C). Then insert the chart. Make sure the ranges have the same number of rows.
Why does my chart show blank categories?
This usually happens when you select empty cells or when there are blank rows in your data. Reselect the data range to exclude blanks, or use Select Data to remove empty series.
How do I add a trendline to my graph?
Click the chart, go to Chart Design > Add Chart Element > Trendline, and choose the type (linear, exponential, etc.). This works for line, column, and scatter charts.
Can I copy a chart to another program like Word or PowerPoint?
Yes. Click the chart to select it, press Ctrl + C, then paste into the other program with Ctrl + V. Use "Paste Special" if you want to link the chart to the Excel data (so it updates when Excel changes).
Why is my pie chart showing all slices as the same color?
This can happen if the data range includes a total row or if the values are all equal. Check the data selection to ensure only the individual categories are included, not a total. Also, ensure the chart is set to use different colors for each data point (right-click a slice > Format Data Point > Fill > Vary colors by point).