How to Flip Bar Chart in Excel (2 Easy Ways)

Method 1 – Formatting Axis to Flip Bar Chart

Step 1:

  • Select the cell range B4:C12.

Handy Ways to Flip Bar Chart in Excel

Step 2:

  • Go to the Insert tab of the ribbon.
  • Click on the little arrow that is on the lower right side of the Charts group.

Handy Ways to Flip Bar Chart in Excel

Step 3:

  • The Insert Chart dialogue box appears.
  • From the All Charts tab go to Bar.
  • We chose Clustered Bar.
  • Press OK.

Handy Ways to Flip Bar Chart in Excel

Step 4:

  • You will see a bar chart in the worksheet.

Handy Ways to Flip Bar Chart in Excel

Step 5:

  • Name the chart as Sales per Year.

Handy Ways to Flip Bar Chart in Excel

Step 6:

  • Double-click on the lower axis of the chart.

Handy Ways to Flip Bar Chart in Excel

Step 7:

  • The Format Axis window panel will appear.
  • Go to Text Options.
  • Under the Axis Options label, mark the box named Values in reverse order.

Handy Ways to Flip Bar Chart in Excel

Step 8:

  • You will now be able to flip the bar chart after reversing the order.

Handy Ways to Flip Bar Chart in Excel

Read More: How to Create a 3D Bar Chart in Excel


Method 2 – Applying VBA to Flip Bar Chart in Excel

Step 1:

  • Draw a bar chart by using the following data set.
  • Follow Step 1 to Step 5 from Method 1.

Handy Ways to Flip Bar Chart in Excel

Step 2:

  • Go to the Developer tab of the ribbon.
  • Choose the Visual Basic command from the Code group.

Handy Ways to Flip Bar Chart in Excel

Step 3:

  • You will see the VBA.
  • From the Insert tab select Module.

Sample Data Set

Step 4:

  • Enter the following code..
Sub Flip_Bar_Chart_in_Excel()
'Activating the chart that we want to flip
ActiveSheet.ChartObjects("Chart 3").Activate
'Selecting chart axis
ActiveChart.Axes(xlValue).Select
'Giving command to flip the bar chart
ActiveChart.Axes(xlValue).ReversePlotOrder = True
End Sub

Sample Data Set

VBA Breakdown

  • The function name is Flip_Bar_Chart_in_Excel.
  • ChartObjects(“Chart 3”).Activate: Select and activate the chart that we want to flip.
  • Axes(xlValue).Select: Select the horizontal axis of the chart.
  • Axes(xlValue).ReversePlotOrder = True: The bar chart will be flipped through this command.

Step 5:

  • Save the VBA code and press F5 or the play button to run it.

Sample Data Set

Step 6:

  • The VBA code will reverse the axis order of the bar chart thus flipping it.

Sample Data Set


Download Practice Workbook


Related Articles


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

Get FREE Advanced Excel Exercises with Solutions!
Md. Araf Bin Jayed
Md. Araf Bin Jayed

I am Araf. I have completed my B.Sc in Industrial and Production Engineering from Ahsanullah University of Science and Technology. Currently I am working as an Excel & VBA Content Developer in Softeko. With proper guideline and aid of Softeko I want to be a flexible data analyst. With my acquired knowledge and hard work, I want to contribute to the overall growth of this organization.

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo