Contextures

Excel Box Plot Chart Video

This video shows how to make a Box Plot chart (also called a box and whisker chart) in Excel. Download the workbook, and a full transcript is below the video.

NOTE: For written step-by-step instructions, go to the Box Plot Chart page

Video: Make a Box Plot Chart

To see the steps for creating a simple box plot chart, watch this short video. The full transcript is below the video. Get the completed workbook, to see the formulas and data.

NOTE: For written step-by-step instructions, go to the Box Plot Chart page

Video Timeline

  • 00:00 Box Plot Introduction
  • 00:12 Add Calculations
  • 00:54 Plan the Chart
  • 01:14 Box Size Calculations
  • 02:30 Create Stacked Column Chart
  • 03:17 Add Whiskers at Top
  • 03:51 Add Whiskers at Bottom
  • 04:29 Add Formatting
  • 05:12 Get the Sample File
Simple Box Plot Chart

Box Plot Chart

Video Transcript

In this workbook, I have sales data for stores in two regions, and I'm going to create a box plot, or box and whisker chart, to show how that data is distributed.

Add Calculations

The first step is to do calculations to get some key numbers. So we want to get the minimum, maximum, quartile one, and three, and the median. These just use simple Excel functions.

  • So for the minimum, it's the MIN function, using the data in the east region.
  • For quartile one, it's the QUARTILE function, with one as the second argument.
  • And then the MEDIAN function, QUARTILE, three, and MAX.

Once you have those done, you can copy them across for the west region.

Those numbers will let us create boxes.

Plan the Chart

We're going to create a stacked column chart. It will have three boxes in it.

  1. The bottom one will be hidden,
  2. and then a box going from quartile one to the median,
  3. median to quartile three

And we'll have error bars:

  • one going up to the maximum
  • and one coming down to the minimum.

Box Size Calculations

To figure out the size of these boxes, we're going to do calculations in these cells.

  1. The first thing we're going to do is figure out the height of this hidden box. It goes from the bottom up to the Q1 measurement, so we just have to link to that Q1 measurement cell. Equals Q1, and that tells us how high that hidden box is.
  2. The lower box here goes from Q1 to the median. So in this cell, I'll type equals, median, minus, Q1.
  3. For the upper box, it's going to be Q3 minus the median will give us the height here, so equals Q3, minus median, and that will be six. I'll copy those across for the west region.

The final step is to calculate the length of the whiskers, so the top one is the max minus Q3. Equals max minus Q3. And the bottom one is Q1 minus min. Equals Q1 minus min. And then copy those across.

Create Stacked Column Chart

So we have all the measurements now, and the first step in creating the chart will be to create the stacked column chart.

  • I'm going to select the heading, starting with the blank cell, and across the other two columns.
  • Press the control key and select all the cells with the labels and values for the boxes.
  • On the Insert tab, click the Column Chart, and the Stacked Column.

If you get the wrong layout, here it's using east and west as series.

  • I want that switched, so I'll click Switch Row/Column, and now I have east and west stacked.
  • I'm going to click on that legend and delete it.
  • Now I'll move this chart off to the side a bit, and make it narrower, so that I can see the data in behind.

Add Whiskers at Top

To add the whisker at the top,

  • I'm going to select the top box
  • and on the Design tab of the ribbon, click Add Chart Element, Error Bars, More Error Bar Options.
  • I want a plus.
  • I want this to go up from the top.
  • And scrolling down, I want a custom error amount.
  • Click Specify Value.
  • I'm going to change the positive error value.
  • So I'll delete what's in there, and select the two values for the top whisker.
  • Click OK.

Add Whiskers at Bottom

And next, I'll add error bars to the bottom.

  • This box that's going to be hidden, so I select that
  • Click Add Chart Element, Error Bars, More Error Bar Options
  • and this one will be minus.
  • We want it coming down from the top of this base box.
  • For the error amount, custom, specify value.
  • This time, we're going to delete what's in there as a negative value.
  • And select the two values that we have for whisker bottom
  • Click OK

And it's now coming down from the top of that base box.

Add Formatting

This one, we're going to hide:

  • so I'm going to select it,
  • and on the Format tab, for the Fill, I'll put No Fill.

And as a final step, I will format the other two boxes, so that they're the same color, with a slightly darker border.

  • So I'll select this one and I'll make it a light gray, and slightly darker border.
  • The same thing for the bottom box.
  • And I'll click the same fill color and border color.

So we now have a box plot with whiskers that show the maximum and the minimum.

Get the Sample Chart

Download the completed Excel workbook that was used in this video -- Simple Box Plot Chart. The zipped file is in xlsx format, and does not contain macros.

_____________

Peltier Tech Charts for Excel 3.0

More Tutorials

Box Plot Chart

Charts, Cluster Stack Utility

Charts, Line-Column 2 Axes

Charts, Panel

Charts, Waterfall

VBA Code, Copy to a workbook

Note: These are affiliate links, and I'll earn a small commission if you purchase the chart utility through these links.

About Debra

 

Last updated: September 11, 2022 12:24 PM