How to Graph Data in Excel: Step-by-Step Guide
In this article
To graph data in Excel, put your numbers in clean columns with headers, select the range, then choose Insert > Charts and pick the chart type that matches your data. Excel plots the selection instantly, and you can refine titles, labels and colors from the Chart Design and Format tabs. The whole job takes a minute or two once your data is laid out properly. Most problems people run into are not chart problems at all, they are layout problems, so the setup below is worth reading before you click anything.
What You'll Need
- A copy of Excel for Windows, Mac, the web or mobile. Menu labels can differ slightly by version, platform and region, so if a name does not match exactly, look for the closest equivalent.
- Your data in a single worksheet, ideally one table, arranged so each row is a record and each column is a variable.
- One header row at the top, with a short label per column and no blank rows or columns inside the data block.
- Numbers stored as numbers. Text that looks like a number, such as amounts with apostrophes or stray spaces, will plot as zero or be skipped.
Step-by-Step
- Lay out the data as a table. Put labels across the top and values underneath. For a chart showing sales by month for two regions, column A holds the month names, column B holds Region 1 sales and column C holds Region 2 sales. Do not merge cells, do not add a totals row in the middle of the block, and do not leave a blank row separating the header from the data.
- Make sure dates and numbers are real values. If a date column is left-aligned by default, Excel likely treats it as text. Select the column, then use Data > Text to Columns and finish the wizard to convert, or reformat the cells to a date or number format. A quick test: right-align is the default for numbers, left-align for text.
- Select the range including the headers. Click the top-left cell of your data and drag to the bottom-right, or click any cell inside the block and press Ctrl+A (Cmd+A on Mac) once. If you use Ctrl+A a second time it selects the whole sheet, which produces a messy chart, so check the highlight before moving on.
- Open the chart gallery. Go to the Insert tab and find the Charts group. Hovering over a chart type shows a preview of what your selection will look like, which is a fast way to test options without committing.
- Pick the type that fits the question. Use a column or bar chart to compare categories, a line chart to show change over time, a pie or doughnut chart for parts of a single whole (keep it to a handful of slices), a scatter chart to show the relationship between two numeric variables, and a combo chart when two series have very different scales, such as units and revenue.
- Insert it. Click the icon, then choose the exact layout from the drop-down. The chart appears on the same sheet as a floating object. If you would rather have it on its own tab, right-click the chart and choose Move Chart, then select New sheet.
- Check that Excel read the axes correctly. Excel usually detects headers, but if the first row appears as a data series, click the chart, open Chart Design > Select Data, and set the correct range. You can also tick the option for the first row and column to be labels in that dialog.
- Fix swapped rows and columns. If your months appear in the legend instead of along the bottom axis, use Chart Design > Switch Row/Column. This is the single most common fix for a chart that looks wrong but has correct data.
- Add a clear title. Click the placeholder title and type something descriptive, such as "Monthly Sales by Region, First Half". A title should say what is measured, where and when.
- Label the axes and add units. Click the plus button beside the chart (or Chart Design > Add Chart Element) and turn on Axis Titles. Include the unit in the vertical axis title, for example "Revenue (thousands of dollars)", otherwise readers guess the scale.
- Turn on data labels only where they help. For a handful of bars or pie slices, labels remove the need to read the gridlines. For a dense line chart they clutter it, so leave them off and rely on the axes.
- Simplify. Delete gridlines you do not need, remove the legend when there is only one series (it is redundant), and trim the number of colors. Use one accent color for the series you want to emphasize and a muted gray for the rest.
- Format axes when values do not start at zero. Right-click the value axis, choose Format Axis, and set the minimum. Truncating the axis exaggerates differences, so only do it deliberately and say so in the title or a note.
- Keep the chart linked to the data. Charts update automatically when the underlying cells change, but they do not expand to include newly added rows. If you expect to add rows, convert the source to a table first with Insert > Table (Ctrl+T) and build the chart from that, so new data is picked up.
- Copy it somewhere useful. Select the chart, copy, and paste into Word, PowerPoint or Outlook; it stays linked by default, and you can choose Paste Special to paste it as a picture if you want a fixed image.
Common Mistakes
- Selecting entire columns. Clicking column letters (A, B, C) pulls in every cell in the sheet, so the chart ends up with a decade of empty space. Select only the cells with data.
- Burying the chart source. Named columns such as "Q1" and "Q2" are fine, but blank header cells make Excel invent names like Series1 and Series2, which readers cannot decode.
- Using a pie chart for too many slices. Anything beyond about five or six categories becomes unreadable. A sorted bar chart does the job better.
- Plotting numbers stored as text. The chart flatlines at zero even though the cells show values. Convert the column to numeric format first.
- Adding a totals row into the chart range. The total dwarfs every other bar and squashes the detail. Keep totals out of the plotted range.
- Mixing units on one axis. Dollars and percentages on the same axis produce a misleading picture. Use a secondary axis or a separate chart.
- Leaving the default look. The generic title "Chart 1" and rainbow colors tell the reader nothing and make the point harder to see.
Tips
- Sort your source data before charting when order matters. A bar chart of categories is far easier to read sorted by value.
- Use a table as the data source so formatting, filters and chart ranges grow with the data.
- Use keyboard shortcuts to speed things up: Alt+F1 inserts a chart on the current sheet from the selected range, and F11 inserts one on a new chart sheet. On Mac, use Fn with these keys if your keyboard requires it.
- Choose chart styles from Chart Design > Chart Styles rather than formatting each element by hand.
- Keep a consistent color for the same category across multiple charts in a report.
- Make the chart readable in black and white by varying line style or marker shape, not just color.
- Save a chart you like as a template (right-click the chart, choose Save as Template) and reuse it for future reports.
Troubleshooting
The chart is blank or shows zeros. Your selected cells are probably text. Select the column, check the alignment and the format, and convert with Data > Text to Columns or by setting the cell format to Number. Look for leading apostrophes and stray spaces from pasted data.
The chart shows the wrong categories. Use Chart Design > Select Data and correct the range for both the series values and the horizontal axis labels. Verify that the legend entries point at the right columns.
The lines look scrambled. Excel plots one line per series and connects points in row order. If your source rows are not in date order, sort the data first. If Month is being treated as a value instead of a category, change the axis type under Format Axis.
New rows are missing from the chart. Charts do not auto-expand by default. Either drag the blue range handles on the worksheet to cover the new rows or rebuild the chart from a table.
Dates on the axis look cramped. Right-click the axis, open Format Axis, and adjust the units or the label interval so Excel shows fewer labels.
Excel is slow with a large chart. Plot a summary of the data, not every row. PivotTables are the standard way to condense thousands of rows into chartable totals.
If that did not work, close and reopen the workbook and check for pending updates in your Microsoft account or Office app, since chart bugs are sometimes fixed in updates. Rebuilding the chart from a clean range often resolves stubborn formatting problems faster than repairing the existing chart.
Frequently Asked Questions
How do I graph two sets of data on one chart?
Select both columns, including the shared labels, and insert the chart. If the two series have very different scales, use Chart Design > Change Chart Type and put one series on a combo chart with a secondary axis.
Why does my chart not update when I change a number?
It should, as long as the edited cell is inside the chart's source range. If it does not, the chart may be pasted as a picture or linked to a different workbook. Check with Chart Design > Select Data.
How do I add a trendline?
Right-click a data series and choose Add Trendline, or use the plus button beside the chart. Trendlines work on scatter, line, column and bar charts, not on pie charts.
Can I make a chart from data on another sheet?
Yes. Insert the chart, then use Chart Design > Select Data and pick the range on the other sheet. Excel handles cross-sheet references without any special setup.
How do I graph data in Excel on a phone?
The mobile app has a reduced chart toolset. Select the range, open the Insert menu and choose Charts, then pick a type. For full formatting control, make the chart on a computer or in Excel for the web.
What is the difference between a chart and a graph in Excel?
Excel uses the two words interchangeably; the ribbon calls them charts. A scatter chart is the type closest to a traditional mathematical graph, since it plots one value against another.