Skip to content

Lesson 25 of 92 · Free Excel Course

Excel

How to Make a Graph in Excel: Column, Line, Pie and Bar Charts

Make a graph in Excel step by step: column, line, pie and bar charts, titles, axis labels, data labels and the right chart for your data, with a practice file.

A table of numbers tells you what happened; a chart shows it at a glance. In this lesson you'll make the four charts people use most (column, line, pie and bar) from small, real-looking data, then add titles, axis titles and data labels, change the chart type, and learn which chart suits which job. Excel calls them charts in its menus, but a chart and a graph are the same thing here, so whichever word you use, you're in the right place.

Step 1: set up your data

Excel builds a chart straight from your cells, so a tidy layout does half the work. Here's the data for the first examples: monthly sales for two shops.

A1Month
ABC
1MonthNorthSouth
2Jan$1,200$900
3Feb$1,500$1,100
4Mar$1,350$1,250
5Apr$1,800$1,300
6May$2,100$1,600
7Jun$1,950$1,750
A1:C7 selected, headings included. Labels in column A, one series (shop) per column.

Follow four rules:

  1. Labels in the first column (Jan, Feb...) and headings in the first row (North, South). Excel uses the headings as series names in the legend and the first column as the axis labels.
  2. One series per column. Each thing you want as its own bar colour or line gets its own column of numbers.
  3. No blank rows or columns inside the block, and no merged cells.
  4. Leave out totals. A Total row would be drawn as one more month, towering over the rest.

Select the whole block, headings included. If you click a single cell inside tidy data, Excel usually picks the block for you.

Step 2: insert the chart

The easiest route on Windows is Recommended Charts:

  1. Select A1:C7.
  2. Go to the Insert tab and click Recommended Charts.
  3. Click each suggestion on the left to preview it. Clustered Column is first for this data.
  4. Click OK.
Sales by month$0$500$1,000$1,500$2,000$2,500JanFebMarAprMayJunSales ($)MonthNorthSouth
Sales by month
MonthNorthSouth
Jan$1,200$900
Feb$1,500$1,100
Mar$1,350$1,250
Apr$1,800$1,300
May$2,100$1,600
Jun$1,950$1,750
Clustered column chart of A1:C7: one pair of columns per month, North in blue and South in orange.

You can also pick a type yourself from the Charts group on the Insert tab: the small buttons such as Insert Column or Bar Chart, Insert Line or Area Chart and Insert Pie or Doughnut Chart each open a menu of styles. All Charts (inside Recommended Charts) lists every type.

Three faster ways:

  • Alt+F1 drops Excel's default chart (usually clustered column) onto the same sheet instantly.
  • F11 puts the same chart on its own new chart sheet, a full-screen tab with no cells.
  • Quick Analysis (Windows): after you select data, click the small button at the bottom-right corner of the selection, or press Ctrl+Q, open Charts and hover to preview.

On a Mac: select the data, click the Insert tab, then Recommended Charts or a chart type button. F11 makes a chart sheet; if your Mac uses F11 for something else, press Fn+F11. In Excel for the web: select the data and choose a type from the Charts group on the Insert tab. Alt+F1 inserts a chart. Microsoft notes Recommended Charts in the web app is for Microsoft 365 subscribers in some languages only.

Add a chart title, axis titles and data labels

A new chart has a placeholder that says "Chart Title" and no axis titles. Fix that first: a chart without labels makes readers guess.

On Windows:

  1. Click the chart. Three buttons appear by its top-right corner.
  2. Click the + button (Chart Elements).
  3. Tick Chart Title, Axis Titles and, if you want numbers on the bars, Data Labels. Hover over an item and click its arrow for placement options.
  4. Click each placeholder on the chart and type: "Sales by month", "Month" and "Sales ($)".

The same list controls the Legend: tick or untick it, and use its arrow to move it to the Right, Top, Left or Bottom. With two or more series, keep the legend; with one series, the chart title says enough and you can remove it.

On a Mac: click the chart, then Chart Design > Add Chart Element and choose Chart Title, Axis Titles, Data Labels or Legend. In Excel for the web: click the chart, then Chart > Format to open the Format pane. Expand Chart Title for the title, select an axis and turn on Axis title, and select a series to switch on Data Labels.

To remove any element, click it on the chart and press Delete. Data labels stay linked to the cells, so they change when the numbers do.

Change the chart type or switch rows and columns

You never need to rebuild a chart to try a different look.

  1. Click the chart.
  2. On the Chart Design tab, click Change Chart Type (or right-click the chart and choose it).
  3. Pick the new type, such as Line, and click OK. Titles and data stay.

On a Mac, it's the same Chart Design > Change Chart Type button. In Excel for the web, select the chart and pick a new type from Insert > Charts.

Switch Row/Column (on Chart Design, in the Data group) swaps what goes along the bottom and what becomes a series. Excel puts whichever there are more of on the horizontal axis, so six months beat two shops and the months went along the bottom. Switch it and you get this:

Sales by month$0$500$1,000$1,500$2,000$2,500NorthSouthSales ($)ShopJanFebMarAprMayJun
Sales by month
ShopJanFebMarAprMayJun
North$1,200$1,500$1,350$1,800$2,100$1,950
South$900$1,100$1,250$1,300$1,600$1,750
The same A1:C7 after Switch Row/Column: two groups (North, South) with one column per month.

This view is better for comparing the shops' months side by side; the original is better for seeing each month. In Excel for the web, open the chart's Format pane and, under Data > Source, change Data Fields split by.

Make a line graph with two lines

A line chart is the best way to show change over time. Use the same A1:C7 data: each column of numbers becomes one line.

  1. Select A1:C7.
  2. Click Insert > Insert Line or Area Chart > Line (or Line with Markers).
  3. Add the chart title and axis titles as above.
Sales by month$0$500$1,000$1,500$2,000$2,500JanFebMarAprMayJunSales ($)MonthNorthSouth
Sales by month
MonthNorthSouth
Jan$1,200$900
Feb$1,500$1,100
Mar$1,350$1,250
Apr$1,800$1,300
May$2,100$1,600
Jun$1,950$1,750
Line chart of A1:C7. North peaks in May ($2,100); South rises every month, from $900 to $1,750.

The trend jumps out in a way the column chart hides: South never had a down month. For a third line, add a third column of numbers next to the others and include it in the selection.

Make a pie chart

A pie shows how one whole splits into parts. It takes one column of numbers plus their labels. Here's a monthly budget:

B7=SUM(B2:B6)
AB
1ItemAmount
2Rent$1,200
3Food$500
4Transport$150
5Utilities$200
6Savings$450
7Total$2,500
Select A1:B6 only. Row 7 is the total and must stay out of the pie.
  1. Select A1:B6 (not the Total row).
  2. Click Insert > Insert Pie or Doughnut Chart > Pie.
  3. Click + (Chart Elements) and tick Data Labels to show each slice's share. To show percentages, click the Data Labels arrow, choose More Options and tick Percentage.
Monthly budget48%20%6%8%18%RentFoodTransportUtilitiesSavings
Monthly budget
SliceAmount
Rent1,200
Food500
Transport150
Utilities200
Savings450
Pie of A1:B6: Rent 48%, Food 20%, Savings 18%, Utilities 8%, Transport 6% of $2,500.

Check the maths: Rent is $1,200 of $2,500, so 48%. The slices always add up to 100%, which is exactly why a pie only makes sense for parts of a whole.

Make a bar chart

A bar chart is a column chart turned on its side. Use it when your labels are long, or when you're ranking things. Here are hours spent on five projects:

A1Project
AB
1ProjectHours
2Training18
3Inventory audit24
4Marketing campaign37
5Customer support42
6Website redesign65
Sorted smallest to largest on purpose, so the biggest bar ends up on top.
  1. Select A1:B6.
  2. Click Insert > Insert Column or Bar Chart > Clustered Bar.
  3. Title it "Hours by project" and give the value axis the title "Hours".
Hours by project0204060801824374265TrainingInventory auditMarketing campaignCustomer supportWebsite redesignHoursProject
Hours by project
HoursHours
Training18
Inventory audit24
Marketing campaign37
Customer support42
Website redesign65
Clustered bar chart of A1:B6. Excel draws the first row (Training) at the bottom.

Excel draws a bar chart's first row at the bottom, which surprises everyone. That's why the data is sorted smallest first (see Sort and filter): the biggest project lands on top, where a ranking belongs.

Which chart should you use?

What you want to showBest chartAvoid
Compare a few categoriesColumnPie
Compare many categories or long labels, or a rankingBarColumn with squashed labels
Change over time (months, years)LinePie
Two or three series over timeLine with one line eachMore than about five lines
Parts of one whole (adds up to 100%)Pie, with 6 slices or fewer3-D pie
How one number affects anotherScatter (X Y)Line

Don't use a pie when you have many slices (thin ones become unreadable), when values don't add up to one whole (like sales of three different years, or scores out of 10), or when you want to compare two pies. Use a column or bar chart instead.

Graph X and Y values: the scatter chart

If both columns are numbers, such as hours studied (X) and test score (Y), use a scatter chart. A line chart treats X values as plain labels and spaces them evenly, so 6 and 8 would sit as close together as 1 and 2. A scatter chart puts each point at its real value.

  1. Put the X values in the first column and the Y values in the next.
  2. Select both columns.
  3. Click Insert > Insert Scatter (X, Y) or Bubble Chart > Scatter.

The practice workbook's Study sheet has data to try this on.

Move, resize and copy a chart

  • Move: drag the chart by its border. To give it its own tab, use Chart Design > Move Chart > New sheet.
  • Resize: drag a corner handle; hold Shift to keep its shape.
  • Copy into Word or PowerPoint: click the chart's border, press Ctrl+C, then Ctrl+V in your document. The Paste Options button lets you link the data (the chart updates when the Excel file changes), embed a copy of the workbook, or paste a Picture that never changes.

Keep the chart up to date

Change any number in A1:C7 and the chart redraws at once. New rows are different: type July in row 8 and a normal chart ignores it. The fix is to press Ctrl+T to turn the data into an Excel table before you make the chart (see Excel tables). A chart built from a table grows by itself when you add rows.

Try it yourself

Download the practice workbook. The Your task sheet lists the steps, and the Answer key sheet describes each finished chart.

  1. On Practice, select A1:C7 and make a clustered column chart with Recommended Charts.
  2. Add the title "Sales by month" and axis titles "Month" and "Sales ($)".
  3. Click Switch Row/Column, look at the result, then switch back.
  4. Change the chart type to Line with Markers. You should see two lines.
  5. On Budget, select A1:B6 (not the total) and make a pie with percentage data labels.
  6. On Projects, make a clustered bar chart. Website redesign should be on top.
  7. On Study, make a scatter chart of hours against score.
  8. Press F11 with the Practice data selected and find the new chart sheet.

Common mistakes

  • Including the Total row in a pie. The total becomes a slice worth exactly half the pie:
Monthly budget (wrong)24%10%9%50%RentFoodTransportUtilitiesSavingsTotal
Monthly budget (wrong)
SliceAmount
Rent1,200
Food500
Transport150
Utilities200
Savings450
Total2,500
A1:B7 selected by mistake. Total takes 50% and every real slice shrinks to half its size.
  • Years plotted as a line. If your labels are numbers (2023, 2024, 2025), Excel may draw them as a series. Clear the heading in A1 and redo the chart, or use Select Data to set them as the axis labels.
  • Gaps for missing dates. Real dates get a date axis, so weekends with no data leave empty spaces. Right-click the axis, choose Format Axis, and under Axis Type pick Text axis.
  • Too many series. Ten lines in one chart is a tangle. Show the few that matter or make several small charts.
  • 3-D pies. The tilt makes front slices look bigger than they are. Stick to flat 2-D.
  • A column axis that doesn't start at zero. Excel sometimes starts higher, making small differences look huge. Right-click the axis, choose Format Axis, and set Minimum to 0.
  • No titles. Always add a chart title and axis titles with units.

What's next

You can now turn any tidy range into a column, line, pie, bar or scatter chart and label it properly. Next, Pivot tables summarise big lists in seconds, and they can feed a chart too. Missed the last lesson? Go back to Excel tables, or see the full Excel course.

Frequently asked questions

What's the difference between a graph and a chart in Excel?

In everyday Excel use, nothing. Excel calls everything a chart (the buttons say Insert Chart, Recommended Charts), and most people say graph for the same thing. Strictly, a graph shows how values change against each other, like a line or scatter graph, while chart also covers pies and other shapes. Searching Excel's menus, look for the word chart.

How do I add axis titles in Excel?

Click the chart, click the + (Chart Elements) button at its top-right corner and tick Axis Titles, then click each placeholder and type. On a Mac, use Chart Design > Add Chart Element > Axis Titles. In Excel for the web, select the axis and turn on Axis title in the Format pane. Pie charts have no axes, so they can't have axis titles.

How do I make a line graph with two lines?

Put the labels (such as months) in the first column and each line's numbers in its own column next to it, with a heading on each. Select the whole block, headings included, and choose Insert > Insert Line or Area Chart > Line. Excel draws one line per column and adds a legend. See the two-line example.

How do I graph X and Y values in Excel?

Use a scatter chart, not a line chart. Put the X values in the first column and the Y values in the next, select both, and choose Insert > Insert Scatter (X, Y) or Bubble Chart > Scatter. A scatter chart places each point at its real X value; a line chart spaces every label evenly, even when the numbers aren't evenly spaced.

What is the shortcut to make a chart in Excel?

Select your data and press Alt+F1 to put a default chart on the same sheet, or F11 to put it on a new chart sheet. Alt+F1 also works in Excel for the web. On a Mac, F11 makes a chart sheet (press Fn+F11 if your Mac uses F11 for something else). More are on our Excel shortcuts cheat sheet.

How do I make my chart update when I add new data?

Changing a number in the chart's cells updates the chart straight away. To make it include new rows too, turn the data into an Excel table first (Ctrl+T) and build the chart from the table. Rows you add to the table appear in the chart automatically. See Excel tables.