How to Create a Bar Graph in Excel with 2 Variables – 3 Easy Methods

 

What Is a Bar Graph?

A bar graph is a method of representing data with rectangular bars.


Types of Bar Graphs in Excel

There are two types of bar graphs: Horizontal (2-D/ 3-D bars) and Vertical (2-D/ 3-D Columns).

how to make a bar graph in excel with 2 variables

Bar graphs can be Clustered Bar, Stacked Bar, and 100% Stacked Bar.


The sample dataset showcases Product, Sales, and Profit.


Method 1 – Using the Bar Chart Feature to Create a Bar Graph with 2 Variables

Steps:

  • Select the data. Here, B4:D9.
  • Go to the Insert tab.

how to make a bar graph in excel with 2 variables

  • In Charts, select Insert Column or Bar Chart.
  • Here, 2-D Bar >> Clustered Bar.

  • Click 2-D Clustered Bar to see the output.

how to make a bar graph in excel with 2 variables

Add Data Labels in Chart Elements or change the Chart Title.

A bar graph with 2 variables is displayed.

how to make a bar graph in excel with 2 variables

Read More: How to Make a Bar Graph with Multiple Variables in Excel


Method 2 – Using the Context Menu Bar to Add a New Variable in a Bar Graph

Steps:

  • Select B4:C9 to create the bar chart with 1 variable.
  • Follow the steps in Method 1

To add a new bar with the data in Profit.

  • Right-Click the chart.
  • Choose Select Data.

how to make a bar graph in excel with 2 variables

 

  • In the Select Data Source dialog box, choose Add.

The Edit Series dialog box will open.

how to make a bar graph in excel with 2 variables

  • Select the Series name. Here, Profit in D4.
  • Enter the Series values. Here, D5:D9.
  • Click OK.

In the Select Data Source dialog box:

  • Click Edit to change the Axis Labels.

how to make a bar graph in excel with 2 variables

 

  • Select the Axis label range. Here, B5:B9.
  • Click OK.

  • Click OK in the Select Data Source box.

how to make a bar graph in excel with 2 variables

The bar chart with 1 variable is displayed.

Change the Chart Title by clicking it. You can also change the Axis Title.

how to make a bar graph in excel with 2 variables

This is the output.

Read More: How to Make a Bar Graph in Excel with 3 Variables


Method 3 – Using the Excel Pivot Chart Options to Create a Bar Graph with 2 Variables

Use a Pivot Chart.

Steps:

  • Select the data range. Here, B4:D9.
  • Go to the Insert tab.
  • In PivotChart >> choose PivotChart.

In the Create PivotChart dialog box:

  • Select Table/Range.
  • Click Existing Worksheet in Choose where you want the PivotChart to be placed.
  • Choose a Location. Here, B12.
  • Click OK.

how to make a bar graph in excel with 2 variables

This is the output.

  • In PivotChart Fields, drag Product to Axis (Categories).

how to make a bar graph in excel with 2 variables

  • Drag Sales and Profit to Values.

 

This is the output.

how to make a bar graph in excel with 2 variables

  • Right-Click the PivotChart to change the chart style.
  • In the Context Menu Bar >> select Change Chart Type.

how to make a bar graph in excel with 2 variables

In the Change Chart Type dialog box:

  • In Bar >> select Clustered Bar.
  • Click OK.

This is the output.
how to make a bar graph in excel with 2 variables

Read More: How to Make a Bar Graph in Excel with 4 Variables


 

Practice Section

Practice here.

how to make a bar graph in excel with 2 variables


Download Practice Workbook

Download the practice workbook here:

 


Related Articles


<< Go Back to Excel Bar Chart | Excel Charts | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Musiha Mahfuza Mukta
Musiha Mahfuza Mukta

Musiha Mahfuza Mukta is a marine engineer who loves exploring Excel and VBA programming. To her, programming is a time-saving tool for dealing with data, files, and the internet. She's skilled in Rhino3D, Maxsurf, C++, MS Office, AutoCAD, and Excel & VBA, going beyond the basics. With a B.Sc in Naval Architecture & Marine Engineering from BUET, she's shifted gears and now works as a content developer. In this role, she creates techy content exclusively focused on Excel... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo