Bar Chart in Excel: Create, Sort and Format Horizontal Bars

Part of the free Module 8: Basic Charts · Lesson 3 of 12 · Full Excel course

Updated on 5 September 2026 · Works in Excel 365, 2021, 2019 and 2016 unless noted.

A bar chart in Excel compares values across categories using horizontal bars, with the category names listed down the left and the values running to the right. It is the best basic chart for long labels, rankings and lists of ten or more items. This lesson builds a clustered bar chart of sales by email ID, then formats it: data labels, one colour per bar, reversed category order, gap width and a dark style.

What a bar chart is and when to use it

A bar chart is a column chart turned on its side. Categories run down the vertical axis and values extend horizontally. Because text reads left to right, a label of any length fits beside its bar without wrapping or tilting, which is why bar charts suit email addresses, full names, product descriptions, countries and survey statements. A bar chart also handles more categories than a column chart because the chart can simply grow taller. The steps below are identical in Excel 2016, 2019, 2021 and Microsoft 365; only the tab names differ slightly in older versions.

Finished clustered bar chart in Excel showing email-ID-wise sales with data labels and a dark background
Finished email-ID-wise sales bar chart

Sample data for the bar chart

Type this small table into a blank sheet, with the headers in row 1 and the five records in rows 2 to 6. The email IDs are deliberately long so you can see why a bar chart beats a column chart for this kind of label.

Email ID (A)Sales (B)
[email protected]48,500
[email protected]62,300
[email protected]35,900
[email protected]71,200
[email protected]54,800
Sample data table of email IDs and sales used to create the bar chart in Excel
Email-ID-wise sales data

Step by step: create a clustered bar chart

  1. Select the data range including the headers, A1:B6. Including the header row lets Excel name the series and the axis automatically.
  2. Go to Insert > Charts > Insert Column or Bar Chart > 2-D Bar > Clustered Bar. Excel drops a chart onto the sheet with one bar per email ID.
Insert tab in Excel with the Insert Column or Bar Chart gallery open and Clustered Bar selected
Insert a clustered bar chart
  1. Right-click any bar and choose Add Data Labels. The sales value appears at the end of each bar, so the reader no longer has to estimate from the axis.
Right-click menu on an Excel bar chart with Add Data Labels highlighted
Add data labels
  1. Right-click a bar again and choose Format Data Series. The Format Data Series pane opens on the right.
Format Data Series command on the right-click menu of an Excel bar chart
Format Data Series
  1. Under Fill & Line > Fill, tick Vary colors by point so each email ID gets its own colour. Use this only when each bar is a separate entity the reader must track; for a plain ranking a single colour is cleaner.
Vary colors by point check box in the Format Data Series pane of an Excel bar chart
Vary colors by point
  1. Click the chart, open the Chart Design tab (called Design under Chart Tools in Excel 2016 and 2019) and pick Style 2 from the Chart Styles gallery.
Chart Styles gallery on the Chart Design tab used to style an Excel bar chart
Chart Styles gallery (layout varies slightly between Excel versions)
  1. For a dark background, select the chart, open the Format tab and in Shape Styles choose Intense Effect – Black, Dark 1 (first column, last row). Switch the axis and label fonts to white so they stay readable.
Shape Styles gallery on the Format tab with the black intense effect applied to an Excel bar chart
Shape Styles on the Format tab

Formatting a bar chart: order, gap width and axis

Three settings turn a default bar chart into a professional one. The most important is category order. Excel plots the first row of your table nearest the origin, which in a bar chart is the bottom, so the chart reads upside down compared with the table.

  1. Right-click the vertical (category) axis and choose Format Axis.
  2. Under Axis Options, tick Categories in reverse order. The first email ID now sits at the top. Excel moves the value axis to the top of the plot at the same time; if you prefer it at the bottom, set Horizontal axis crosses to At maximum category.
  3. Right-click a bar, choose Format Data Series and set Gap Width to between 40% and 60%. The default 150% leaves thin bars with a lot of white space.
  4. To rank the bars, sort the source data on the Sales column (Data > Sort & Filter > Sort Largest to Smallest). With reverse order ticked, the biggest bar is at the top.
  5. If data labels are on, click the horizontal (value) axis and press Delete; the labels carry the numbers and the chart looks cleaner. Keep the value axis starting at zero whenever it is visible.
SettingWhere to find itRecommended value
Categories in reverse orderFormat Axis > Axis Options (vertical axis)Ticked, so row 1 appears on top
Gap WidthFormat Data Series > Series Options40% to 60%
Data labelsRight-click bar > Add Data Labels, or Chart Elements (+)Outside End
Value axis minimumFormat Axis > Bounds (horizontal axis)0
Sort orderSort the source data, not the chartLargest to smallest for rankings

Download the practice file

Download the Bar Chart Excel file to practise with the same data, or click the chart below.

Completed bar chart in Excel, click to download the practice workbook
Click the chart to download the Excel file

When to use a bar chart and when not to

Choose a bar chart when the category names matter and the reader needs to compare sizes at a glance. Choose something else when the message is a trend or a share of a whole.

SituationBar chart?Better choice
Long labels (emails, names, product descriptions)YesBar chart is the best option
Ranking or top-N listYesSorted bar chart
Ten or more categoriesYesBar chart, it can grow taller
Values over time (months, years)NoColumn chart or line chart
Parts of a totalNoStacked bar chart or pie chart
Negative and positive values mixedYes, with careBar chart with the axis at zero and labels inside the base

Worked example: top-five sales ranking

A manager wants the five email IDs ranked from highest to lowest sales, with the top performer on the first line. Using the sample data above:

  1. Click any cell in column B and choose Data > Sort & Filter > Sort Largest to Smallest. The rows are now neha.gupta (71,200), priya.verma (62,300), vikram.patel (54,800), rahul.sharma (48,500), amit.kumar.singh (35,900).
  2. Select A1:B6 and insert a Clustered Bar chart as in step 2 above.
  3. Right-click the vertical axis, choose Format Axis and tick Categories in reverse order, so neha.gupta is at the top.
  4. Add data labels, set Gap Width to 50% and delete the value axis.
  5. Click the chart title and type Sales by Email ID (Top 5).

Result: five bars in descending order, the longest at the top with 71,200 at its tip, and every email address fully readable on the left. The total range from 35,900 to 71,200 is obvious without reading a single gridline.

Tips and common mistakes

  • Include the header row. Excel then uses “Sales” as the series name and picks up the category labels; leave it out and you get “Series1” and numbers 1 to 5.
  • Sort the data, not the chart. A bar chart mirrors the sheet order. Sort the table and the chart updates; there is no sort option inside the chart itself.
  • Reverse the category order. Almost every bar chart looks wrong until Categories in reverse order is ticked, because Excel starts at the bottom.
  • Avoid 3-D bars. The perspective shifts the bar ends away from the gridlines and makes values hard to judge.
  • Use one colour for a ranking. Vary colors by point is useful when bars are separate entities; for a top-N list it just adds noise.
  • Convert the source to an Excel Table (Ctrl+T). New rows are added to the chart automatically, which is the simplest dynamic range there is.
  • Keep the value axis at zero. A truncated axis exaggerates small differences and misleads the reader.

Errors and how to fix them

ProblemCauseFix
Chart is upside down compared with the tableExcel plots row 1 nearest the origin (bottom)Format Axis > Categories in reverse order
Bars are very thin with wide gapsDefault Gap Width of 150%Format Data Series > Gap Width 40% to 60%
Labels show 1, 2, 3 instead of email IDsCategory column not selected, or header missingChart Design > Select Data > Edit the Horizontal (Category) Axis Labels
Email IDs are cut off with an ellipsisPlot area too narrow for the label widthWiden the chart, or drag the plot area boundary to the right
Value axis moved to the topReverse order also flips the crossing pointFormat Axis > Horizontal axis crosses > At maximum category
Numbers plotted as a second set of barsSales stored as text or two numeric columns selectedConvert text to numbers; select only the columns you need

Practice exercise

  1. Retype the sample table and build the clustered bar chart, then add data labels and set Gap Width to 50%.
  2. Sort the sales largest to smallest and tick Categories in reverse order so the top seller is on the first line.
  3. Add a third column, Target, with 60,000 in every row, extend the chart to A1:C6 and compare Sales against Target as two bars per email ID.
  4. Convert the range to an Excel Table with Ctrl+T, add a sixth email ID and confirm the chart grows by itself.
  5. Apply the dark Shape Style and change the label font to white, then save the chart as a template for reuse.

Key takeaways

  • A bar chart is a horizontal column chart; use it for long labels, rankings and long lists.
  • The path is Insert > Charts > Insert Column or Bar Chart > 2-D Bar > Clustered Bar.
  • Tick Categories in reverse order so the first row of the table appears at the top.
  • Set Gap Width to 40% to 60% and add data labels, then remove the value axis for a clean look.
  • Sort the source data to rank the bars; the chart follows the sheet order.
  • Keep the value axis at zero and avoid 3-D effects.

Related lessons

Frequently asked questions

Why is my bar chart in the opposite order to my table?

Excel plots the first category nearest the origin, which is the bottom of a bar chart, so the chart looks flipped. Right-click the vertical axis, choose Format Axis and tick Categories in reverse order. If the value axis jumps to the top, set Horizontal axis crosses to At maximum category to move it back down.

How do I make the bars thicker in an Excel bar chart?

Right-click a bar, choose Format Data Series and reduce the Gap Width. The default is 150%, which gives thin bars; 40% to 60% gives solid bars with a small gap. A Gap Width of 0% makes the bars touch, which suits histograms but not category comparisons.

How do I sort a bar chart from largest to smallest?

Sort the source data, not the chart. Click a value cell and use Data > Sort Largest to Smallest, then tick Categories in reverse order so the largest bar sits at the top. If the data is an Excel Table, the chart re-sorts every time you re-sort the table.

Can I show two measures side by side in a bar chart?

Yes. Select the category column plus two value columns, for example Sales and Target, and insert a Clustered Bar chart. Each category then shows two bars in different colours with a legend. For three or more measures consider a stacked bar chart or a separate chart per measure to avoid clutter.

What is the difference between a bar chart and a column chart in Excel?

They plot the same data; a bar chart uses horizontal bars and a column chart uses vertical ones. Use a column chart for time-based categories such as months, because readers expect time to run left to right. Use a bar chart for long text labels, rankings and lists with many categories.

Want the finished version? Ready-made Excel dashboards, trackers and chart templates are available at NextGenTemplates.com.