Open In App

How to Create a Bar Chart for Comparing Data in Excel?

Last Updated : 29 Feb, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

Excel is powerful data visualization and data management tool which can be used to store, analyze, and create reports on large data. It can be used to visualize data using a graph plot. In excel we can plot different kinds of graphs like line graphs, bar graphs, etc. to visualize or analyze the trend. Let’s learn how to plot a bar chart for comparing data in excel.

Bar Chart for Comparing Data in Excel

Bar graph value is represented using the bars. It is used to compare items side-by-side. Column chart and bar chart is almost same, the only difference is in column chart bar is represented vertically while it is represented horizontally in bar graph. We can easily plot a line chart in excel, following the below steps, For the purpose of demonstration we will compare the sales of three different products over the given years:

Dataset

 

 Step 1: Select the cell containing product data.

Selecting-data

 

Step 2: Select ‘Insert’ Tab from the top ribbon and select the bar chart.

Select-insert-tab

 

Bar chart

Bar-graph-created

 

we can see that each product is shown with different colors. From the graph we can easily visualize and compare the sales for different years. For example, highest sales is of product C (grey) in year 2022.

Steps to make changes in graph

Step 1: Click on chart title (Sales in above graph)

Step 2: Chart format menu will open, make desired changes.

Open-format-menu

 

For example, change the chart title.

Changing-chart-title

 

Output

Output

 

You can see that the chart title is changed now.

Bar chart from pivot table

Suppose we have following table given below, and we want to compare the total expenditure by each individual buyer:

Dataset

 

Steps to create pivot table

Step 1: Select the data and then select pivot table from insert tab.

Selecting-pivot-table

 

Step 2: Select the ‘expenditure by buyer’ option and then select existing sheet option if you want your pivot table to be present in the same sheet.

Selecting-expenditure-by-buyer

 

Step 3: Give the cell value where you want to place the pivot table and then select Insert.

Inserting-pivot-table

 

Step 4: Pivot table will get created.

Pivot-table-created

 

Using this pivot now, we can create line chart. To create line chart follow the steps:

Step 1: Select the pivot table

Selecting-pivot-table

 

Step 2: Click on Insert tab and select bar chart option.

Selecting-bar-chart-option

 

Output

Output

From this chart we can compare the total expenditure by each individual. For example, Rohit jha the maximum expenditure.


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads