How to Rotate Box and Whisker Plot in Excel?

What Is a Box and Whisker Plot?

In Excel, a box and whisker plot is a graphical depiction of a dataset’s numerical values. It displays the minimum, maximum, first quartile, second quartile (median), and third quartile as five numbers that represent the data as its whole. The median among them is a measure of the middle, whereas the others are measurements of dispersion. Therefore, a box plot displays the dataset’s center and the degree of dispersion from it.


How to Rotate a Box and Whisker Plot in Excel: 4 Easy Methods

Consider the following dataset that contains the Annual Results of a school, with the Name, Physics, Chemistry, and Mathematics columns.

 How to Rotate Box and Whisker Plot in Excel


Step 1 – Calculate the Particulars for a Box and Whisker Plot

  • Add a new dataset below the original one to put five values for each of the subject columns: minimum, quartile 1, median, quartile 3, and maximum.
  • Calculate the minimum marks obtained in Physics by using the following formula.
=MIN(C5:C14)

Here, the MIN function calculates the minimum value among the cells C5:C14.

Related Particulars Calculation to Create a Box and Whisker Plot

  • Hit Enter.

  • Use the Fill Handle to AutoFill to the right.

Related Particulars Calculation to Create a Box and Whisker Plot

  • Input the following formula to get the Quartile1 value.
=QUARTILE.EXC(C5:C14,1)

The QUARTILE.EXC function returns the quartile of the above dataset based on the first 25% values.

  • Hit the Enter button to get the Quartile1 value.

Related Particulars Calculation to Create a Box and Whisker Plot

  • AutoFill the cells for Quartile1.

  • Apply the following formula to calculate the median value.
=MEDIAN(C5:C14)

  • Press Enter.

Related Particulars Calculation to Create a Box and Whisker Plot

  • AutoFill the row.

  • Use the following formula to get the Quartile3 value.
=QUARTILE.EXC(C5:C14,3)

  • Hit Enter.

Related Particulars Calculation to Create a Box and Whisker Plot

  • Use the Fill Handle to AutoFill.

  • Input the following formula to get the maximum value.
=MAX(C5:C14)

  • Hit the Enter button.

Related Particulars Calculation to Create a Box and Whisker Plot

  • AutoFill the connected cells.

Related Particulars Calculation to Create a Box and Whisker Plot


Step 2 – Find the Differences Between the Particulars

  • Insert another small dataset for five more values for each column.
  • Input the following formula to get the value Up to Quartile1.
=C18

Find Differences Between Particulars

  • Apply the formula below to get the Median – Quartile1 value.
=C19-C18
C19 = Median
C18 = Quartile1

  • Input the formula below to get the Quartile3 – Median value.
=C20-C19

C20 = Quartile3
C19 = Median

  • Find the Whisker at Bottom using the following formula:
=C18-C17
C18 = Quartile1
C17 = Minimum

Find Differences Between Particulars

  • Find the Whisker at Top by using the following formula:
=C21-C20

C21 = Maximum
C20 = Quartile3

  • Select all five values.
  • Use the Fill Handle to AutoFill to the right.


Step 3 – Create a Box and Whisker Plot

  • Select the cells in Up to Quartile1, Median – Quartile1, Quartile3 – Median and their headers.
  • Go to the Insert tab.
  • Click on Insert Column or Bar Chart from the ribbon.
  • Choose Stacked Column.

Create a Box and Whisker Plot

  • Select the lower quartile for all the bars.
  • Click on Add Chart Element from the ribbon.
  • Go to Error Bars and pick More Error Bars Options.

On the right side, a Format Error Bars wizard will appear.

  • Choose Both as Direction.
  • From the End Style section, pick Cap.
  • To enter the Error Amount according to the dataset, select Custom and then click on Specify Value.

Create a Box and Whisker Plot

A Custom Error Bars wizard will come forward.

  • As we are dealing with Quartile1, select all the cells in Whisker at Bottom in the Negative Error Value option.

  • Select the top quartile for all the bars.
  • Click on Add Chart Element from the ribbon.
  • Go to Error Bars and pick More Error Bars Options.

A Format Error Bars wizard will appear on the right side.

  • Choose Both as Direction.
  • From the End Style section, pick Cap.
  • Select Custom and then click on Specify Value to enter the Error Amount according to the dataset.

Create a Box and Whisker Plot

A Custom Error Bars wizard will appear.

  • As we are dealing with Quartile3, select all the cells in Whisker at Top in the Positive Error Value

  • Select all the lower quartile boxes.
  • Apply No Fill from the Fill option.

Create a Box and Whisker Plot

  • Apply No Outline from the Outline option.

Create a Box and Whisker Plot

  • Select all the horizontal lines and press the Delete button to have them removed.

We have our desired box and whisker plot.

Create a Box and Whisker Plot


Step 4 – Rotate the Box and Whisker Plot

  • Select the created box and whisker plot.
  • Go to the Insert tab.
  • Click on Insert Column or Bar Chart from the ribbon.
  • From the available options in the 2-D Bar section, choose Stacked Bar.

Rotate Box and Whisker Plot

This rotates the chart.

Rotate Box and Whisker Plot


Download the Practice Workbook


Related Articles


<< Go Back to Box and Whisker Plot in Excel | Excel Charts | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Naimul Hasan Arif
Naimul Hasan Arif

Naimul Hasan Arif, a BUET graduate in Naval Architecture and Marine Engineering, has been contributing to the ExcelDemy project for nearly two years. Currently serving as an Excel and VBA Content Developer, Arif has written more than 120 articles and has also provided user support through comments His expertise lies in Microsoft Office Suite, VBA and he thrives on learning new aspects of data analysis. Arif's dedication to the ExcelDemy project is reflected in his consistent contributions and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo