This tutorial shows you how to create and customize bar graphs in Excel, including sorting data automatically. We'll cover creating various bar chart types, adjusting bar width and colors, and handling negative values.
Bar graphs, alongside pie charts, are frequently used for comparing numerical data like percentages, frequencies, or measurements across different categories. A specialized bar graph, the Gantt chart, is common in project management.
This tutorial explores:
- Bar chart fundamentals
- Creating bar charts in Excel
- Different bar chart types
- Customization:
- Adjusting bar width and spacing
- Handling negative values
- Sorting data in bar charts
Bar Chart Basics
A bar graph (or bar chart) uses rectangular bars to represent data categories, with bar lengths proportional to the data values. They can be vertical or horizontal (vertical bar graphs are called column charts in Excel).
The image below shows a standard 2-D clustered bar chart with three data series (grey, green, blue) and four categories (Jan-Apr).
Creating Bar Charts in Excel
Creating a bar chart is straightforward: select your data, go to the "Insert" tab, and choose your desired bar chart type from the "Charts" group.
The image below shows creating a standard 2-D bar chart.
The resulting chart (shown below) displays one data series if your data has a single numerical column; multiple columns create multiple data series, each with a different color.
To view all available bar chart types, click "More Column Charts..." and select from the subtypes. Adjust layout and style using the "Design" tab's "Quick Layout" and "Chart Styles" options.
Excel Bar Chart Types
Excel offers several bar chart subtypes:
-
Clustered Bar Charts: Compare values across categories.
-
Stacked Bar Charts: Show the proportion of individual items to the whole.
-
100% Stacked Bar Charts: Show the percentage contribution of each value to the total in each category.
-
Cylinder, Cone, and Pyramid Charts: Similar to rectangular bar charts, but with different shapes. In Excel 2013 and later, create a 3-D bar chart and then change the column shape in the "Format Data Series" pane.
Customizing Bar Graphs
Customize your chart title, axes, data labels, legend, gridlines, and more using standard Excel chart formatting options.
Changing Bar Width and Spacing
Right-click a data series, choose "Format Data Series...", and adjust the "Gap Width" and "Series Overlap" (2-D) or "Gap Depth" (3-D) sliders to control bar width and spacing.
Bar Charts with Negative Values
Excel handles negative values, but you may need to adjust the vertical axis label position ("Low" in "Format Axis...") and use different colors for negative bars ("Invert if Negative" in "Format Data Series...").
Sorting Data on Bar Charts
By default, Excel reverses the order of data categories in bar charts. To sort correctly, sort your source data accordingly (ascending for ascending order on the chart, and vice versa).
To sort without changing source data, in "Format Axis...", select "At maximum category" and "Categories in reverse order". This also affects data series order.
To reorder data series independently, use the "Select Data Source" dialog or edit data series formulas.
This comprehensive guide helps you master Excel bar graph creation and customization.
The above is the detailed content of How to make a bar graph in Excel. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Grouping by month in Excel Pivot Table requires you to make sure that the date is formatted correctly, then insert the Pivot Table and add the date field, and finally right-click the group to select "Month" aggregation. If you encounter problems, check whether it is a standard date format and the data range are reasonable, and adjust the number format to correctly display the month.

Quick Links Check the File's AutoSave Status

To set up the repeating headers per page when Excel prints, use the "Top Title Row" feature. Specific steps: 1. Open the Excel file and click the "Page Layout" tab; 2. Click the "Print Title" button; 3. Select "Top Title Line" in the pop-up window and select the line to be repeated (such as line 1); 4. Click "OK" to complete the settings. Notes include: only visible effects when printing preview or actual printing, avoid selecting too many title lines to affect the display of the text, different worksheets need to be set separately, ExcelOnline does not support this function, requires local version, Mac version operation is similar, but the interface is slightly different.

The tutorial shows how to toggle light and dark mode in different Outlook applications, and how to keep a white reading pane in black theme. If you frequently work with your email late at night, Outlook dark mode can reduce eye strain and

It's common to want to take a screenshot on a PC. If you're not using a third-party tool, you can do it manually. The most obvious way is to Hit the Prt Sc button/or Print Scrn button (print screen key), which will grab the entire PC screen. You do

MicrosoftTeamsrecordingsarestoredinthecloud,typicallyinOneDriveorSharePoint.1.Recordingsusuallysavetotheinitiator’sOneDriveina“Recordings”folderunder“Content.”2.Forlargermeetingsorwebinars,filesmaygototheorganizer’sOneDriveoraSharePointsitelinkedtoaT

Finding the second largest value in Excel can be implemented by LARGE function. The formula is =LARGE(range,2), where range is the data area; if the maximum value appears repeatedly and all maximum values ??need to be excluded and the second maximum value is found, you can use the array formula =MAX(IF(rangeMAX(range),range)), and the old version of Excel needs to be executed by Ctrl Shift Enter; for users who are not familiar with formulas, you can also manually search by sorting the data in descending order and viewing the second cell, but this method will change the order of the original data. It is recommended to copy the data first and then operate.

TopulldatafromthewebintoExcelwithoutcoding,usePowerQueryforstructuredHTMLtablesbyenteringtheURLunderData>GetData>FromWebandselectingthedesiredtable;thismethodworksbestforstaticcontent.IfthesiteoffersXMLorJSONfeeds,importthemviaPowerQuerybyenter
