Computer >> Computer tutorials >  >> Software >> Office

How to Combine Two Bar Graphs in Excel (5 Ways)

If you are trying to combine two bar graphs in Excel, then you will find this article useful. A combination of two bar graphs is requisite when you want to compare them easily. So, let’s dive into the main article.

Download Workbook

5 Ways to Combine Two Bar Graphs in Excel

For a company, we have some Selling Prices and Profits for different years and then we have represented them in two different bar graphs. Using the following methods we will combine these two different graphs into one.

How to Combine Two Bar Graphs in Excel (5 Ways)

We have used Microsoft Excel 365 version here, you can use any other versions according to your convenience.

Method-1: Copying the Data Source for Second Graph to Combine Two Bar Graphs in Excel

Here, we have the following dataset containing Selling Prices and Profits,

How to Combine Two Bar Graphs in Excel (5 Ways)

and using them we have created two different bar graphs. We will now combine them by copying and pasting any one data source.

How to Combine Two Bar Graphs in Excel (5 Ways)

Steps:
➤ Firstly, select any one graph (here we are selecting Profit graph), and press the DELETE key.

How to Combine Two Bar Graphs in Excel (5 Ways)

So, now we have only one bar graph for Selling Price, and the next task is to copy the data source of the Profit column and paste it here.

How to Combine Two Bar Graphs in Excel (5 Ways)

➤ Select the Profit column and press CTRL+C.

How to Combine Two Bar Graphs in Excel (5 Ways)

➤ Select the graph and press CTRL+V.

How to Combine Two Bar Graphs in Excel (5 Ways)

In this way, you will be able to combine those two graphs into one.

How to Combine Two Bar Graphs in Excel (5 Ways)

For better visualization, you can extend the chart area by dragging the bottom corner to the right.

How to Combine Two Bar Graphs in Excel (5 Ways)

So, this is the final look of our combined bar graphs for Selling Prices and Profits with respect to the Years.

How to Combine Two Bar Graphs in Excel (5 Ways)

Read More: How to Combine Two Graphs in Excel (2 Methods)

Method-2: Using Clustered Bar Option to Combine Two Bar Graphs

The following dataset contains the data of the Selling Prices and Profits,

How to Combine Two Bar Graphs in Excel (5 Ways)

which are plotted in two different bar graphs. To combine them here we will use the Clustered Bar option.

How to Combine Two Bar Graphs in Excel (5 Ways)

Step-01:
➤ To plot a new graph you can delete the separated two charts.
➤ Select the whole dataset and go to the Insert Tab >> Charts Group >> Insert Column or Bar Chart Dropdown >> Clustered Bar Option.

How to Combine Two Bar Graphs in Excel (5 Ways)

Step-02:
After having the chart, we will modify it to remove the bar for the data of the year column and use this range as a horizontal axis label.
➤ Select the chart, place your mouse icon upon the chart, and then Right-click.

How to Combine Two Bar Graphs in Excel (5 Ways)

➤ Now, choose the option Select Data.

How to Combine Two Bar Graphs in Excel (5 Ways)

Then, the Select Data Source dialog box will appear.
➤ Uncheck the year box from the options of the Legend Entries.
➤ Click on the Edit option from the Horizontal Axis Labels group on the right side.

How to Combine Two Bar Graphs in Excel (5 Ways)

After that, you will get the Axis Labels dialog box.
➤ Select the range of the year column in the Axis label range box and press OK.

How to Combine Two Bar Graphs in Excel (5 Ways)

Again, press OK in the Select Data Source dialog box.

How to Combine Two Bar Graphs in Excel (5 Ways)

So, we will have the following bar graph then.

How to Combine Two Bar Graphs in Excel (5 Ways)

➤ Change the Chart Title to Selling Price & Profit by selecting it and typing this name.

How to Combine Two Bar Graphs in Excel (5 Ways)

Finally, we will have the following combined bar graph for the Selling Prices and the Profits with respect to the years.

How to Combine Two Bar Graphs in Excel (5 Ways)

Read More: How to Combine Graphs in Excel (Step-by-Step Guideline)

Method-3: Using Stacked Bar Option to Combine Two Bar Graphs in Excel

Here, we will use the Stacked Bar option to plot a chart for the Selling Prices and Profits with respect to the years,

How to Combine Two Bar Graphs in Excel (5 Ways)

instead of plotting them separately.

How to Combine Two Bar Graphs in Excel (5 Ways)

Steps:
➤ To plot a new graph you can delete the previous two charts.
➤ Select the whole dataset and go to the Insert Tab >> Charts Group >> Insert Column or Bar Chart Dropdown >> Stacked Bar Option.

How to Combine Two Bar Graphs in Excel (5 Ways)

After that, the following chart will appear.
To modify this chart to show the bars for only the Selling Prices and the Profits with respect to the years you can follow Step-02 of Method-2.

How to Combine Two Bar Graphs in Excel (5 Ways)

Finally, we will have the combined stacked bar graph, where instead of showing different portions like Selling Price and Profit side by side we are having different parts to the whole comparison over years.

How to Combine Two Bar Graphs in Excel (5 Ways)

Read More: How to Combine Two Line Graphs in Excel (3 Methods)

Similar Readings

  • How to Consolidate Data in Excel from Multiple Worksheets (3 Ways)
  • How to Combine Two Scatter Plots in Excel (Step by Step Analysis)
  • Excel VBA: Combine Date and Time (3 Methods)
  • How to Combine Name and Date in Excel (7 Methods)
  • Combine Multiple Excel Files into One Workbook with Separate Sheets

Method-4: Using 100% Stacked Bar Option to Combine Two Bar Graphs

The following dataset contains the data of the Selling Prices and Profits,

How to Combine Two Bar Graphs in Excel (5 Ways)

which are plotted in two different bar graphs. To combine them here we will use the 100% Stacked Bar option.

How to Combine Two Bar Graphs in Excel (5 Ways)

Steps:
➤ To plot a new graph you can delete the previous two charts.
➤ Select the whole dataset and go to the Insert Tab >> Charts Group >> Insert Column or Bar Chart Dropdown >> 100% Stacked Bar Option.

How to Combine Two Bar Graphs in Excel (5 Ways)

Afterward, the following chart will appear.
For improving this chart to show the bars for only the Selling Prices and the Profits with respect to the years you can follow Step-02 of Method-2.

How to Combine Two Bar Graphs in Excel (5 Ways)

Eventually, we will have the combined stacked bar graph, where we can see the comparison between the Selling Prices and Profits over the years by noticing their percentages among the whole percentage 100%.

How to Combine Two Bar Graphs in Excel (5 Ways)

Read More: How to Combine Graphs with Different X Axis in Excel

Method-5: Using VBA Code to Combine Two Bar Graphs in Excel

In this section, we will use a VBA code to plot a chart for the Selling Prices and Profits with respect to the years,

How to Combine Two Bar Graphs in Excel (5 Ways)

instead of plotting them separately.

How to Combine Two Bar Graphs in Excel (5 Ways)

Steps:
➤ Go to the Developer Tab >> Visual Basic Option.

How to Combine Two Bar Graphs in Excel (5 Ways)

Then, the Visual Basic Editor will open up.
➤ Go to the Insert Tab >> Module Option.

How to Combine Two Bar Graphs in Excel (5 Ways)

After that, a Module will be created.

How to Combine Two Bar Graphs in Excel (5 Ways)

➤ Write the following code

Sub combiningcharts()

Dim sht As Worksheet
Dim DSource As Range
Dim barChart As Chart
Dim CPosition As Range
Set sht = ThisWorkbook.Worksheets("VBA")

With sht
Set DSource = .Range("B3:D12")
Set CPosition = .Range("A5:E14")
Set barChart = .Shapes.AddChart2(Style:=-1, XlChartType:=xlBarClustered, _
Left:=CPosition.Cells(1).Left, Top:=CPosition.Cells(1).Top, _
Width:=CPosition.Width, Height:=CPosition.Height, _
NewLayout:=False).Chart
End With

barChart.SetSourceData Source:=DSource

End Sub

Here, we have declared sht as Worksheet, DSource, CPosition as Range, barChart as Chart and VBA is the worksheet name which is assigned to the sht. We have assigned the data source range “B3:D12” to the DSource and the range of the area in which we want to plot the chart, “A5:E14”, to the CPosition.

barChart will give our desired chart where XlChartType:=xlBarClustered is used for Clustered type graph but you can use XlChartType:=xlBarStacked for Stacked type graph.

How to Combine Two Bar Graphs in Excel (5 Ways)

➤ Press F5.

Then you will get the following bar graph.
As the Chart Title is not visible, we will bring it here first.

How to Combine Two Bar Graphs in Excel (5 Ways)

➤ Select the chart and click on the Plus (+) icon beside the chart.

How to Combine Two Bar Graphs in Excel (5 Ways)

➤ Check the box for the Chart Title option from the Chart Elements option.

How to Combine Two Bar Graphs in Excel (5 Ways)

Now, we have the Chart Title on the top of our bar graph.

How to Combine Two Bar Graphs in Excel (5 Ways)

For modifying this chart to show the bars for only the Selling Prices and the Profits with respect to the years you can follow Step-02 of Method-2 and the final chart will be like below.

How to Combine Two Bar Graphs in Excel (5 Ways)

Practice Section

For doing practice by yourself we have provided a Practice section like below in a sheet named Practice. Please do it by yourself.

How to Combine Two Bar Graphs in Excel (5 Ways)

Conclusion

In this article, we tried to cover the ways to combine two bar graphs in Excel easily. Hope you will find it useful. If you have any suggestions or questions, feel free to share them in the comment section.

Related Articles

  • How to Merge Multiple Excel Files into One Sheet (4 Methods)
  • Combine Sheets in Excel (6 Easiest Ways)
  • How to Combine Rows in Excel (6 Methods)
  • Combine Columns into One List in Excel (4 Easy Ways)
  • How to Merge Columns in Excel (4 Ways)
  • How to Combine Data from Multiple Sheets in Excel (4 Ways)