In Box Plots we saw how to create box plots using the Box Plots option of the Real Statistics **Descriptive Statistics and Normality** data analysis tool. We now show how to create these box plots manually using Excel’s charting capabilities.

**Example 1**: Create the box plot for Example 1 of Box Plots using Excel’s charting capabilities.

**Figure 1 – Box Plot data**

Select the range containing the data, including the headings (A3:C13). Now create the table in the range E3:H8. The output in column F corresponds to the raw data from column A. Column G corresponds to column B and column H corresponds to column C. In fact once you construct the formulas for the range F4:F8, you can fill in the rest of the table by highlighting the range F4:H8 and pressing Ctrl-R.

The formulas for the cells in the range F4:F8 are as follows:

**Figure 2 – Box Plot table formulas**

Once you have constructed the table, you can create the corresponding box plot as follows:

- Select the data range E3:H7. Notice that the headings are included on the range, but not the last row.
- Select
**Insert > Charts|Column > Stacked Column** - Select
**Design > Data|Switch Row/Column**if necessary so that the x-axis represents the brands - Select the lowest data series in the chart (i.e.
**Min**) and set fill to No fill (and if necessary set border color to No Line) to remove the lowest boxes. This is done by right clicking on any of the three Min data series boxes in the chart and selecting**Format Data Series…**On the resulting dialog box, choose**Fill|No fill**. - Repeat the previous steps for the lowest visible data series (i.e.
**Q1-Min**); i.e. right click on the Q1-Min data series and select**Format Data Series… > Fill|No fill**. Alternatively right click on the Q1-Min data series and press Ctl-Y. - With the Q1-Min data series still selected, choose
**Layout > Analysis|Error Bars > More Error Bar Options**. On the resulting dialog box (Vertical Error Bars menu), click on the**Minus**and**Percentage**radio buttons and insert a percentage error of**100%.** - Click on the
**Q3-Med**data series (the uppermost one) and choose**Layout > Analysis|Error Bars > More Error Bar Options**. On the resulting dialog box (Vertical Error Bars menu), click on the**Plus**and**Custom**radio buttons and then click on the**Specify Value**button. Now specify the range F8:H8, i.e. the last row of the table you created above, in the dialog box that appears (in the**Positive Error Values**field). - Remove the legend by selecting
**Layout > Labels|Legend > None**.

The resulting box plot is

**Figure 3 – Box Plot**

**Observation**: The approach described above works perfectly for non-negative data. When a data set has a negative value, the axis will be shifted upward by –MIN(R) where R is the data range containing the data. Thus if R ranges from -10 to 20, the range in the chart will range from 0 to 30. This is true of the manual approach described above as well as the box plot produced by the supplemental data analysis tool in the Real Statistics Resource Pack. We now show how to manually produce the box plot when one or more data elements are negative.

**Example 2**: Create the box plot for the data in Figure 4 using Excel’s charting capabilities.

Figure 4 contains the same data as in Figure 1 except that we have changed the value in cell B11 to make it negative.

**Figure 4 – Box plot for negative data**

From the data we construct the modified table in range E3:H8 as above and then carry out the following steps to create the chart:

- Select the data range E3:H7. Notice that the headings are included on the range, but not the last two rows.
- Select
**Insert > Charts|Column > Stacked Column** - Select
**Design > Data|Switch Row/Column**if necessary so that axis represents the brands - Select the lowest data series in the chart (i.e.
**Q1**) and set fill to No fill (and if necessary set border color to No Line) to remove the lowest boxes. This is done by right clicking on any of the three Q1 data series boxes in the chart and selecting**Format Data Series…**On the resulting dialog box, choose**Fill|No fill**. - With the Q1 data series still selected, choose
**Layout > Analysis|Error Bars > More Error Bar Options**. On the resulting dialog box (Vertical Error Bars menu), click on the**Minus**and**Custom**radio buttons and then click on the**Specify Value**button. Now specify the range F7:H7, i.e. the second to last row of the table you created above, in the dialog box that appears (in the**Minus Error Values**field). - Click on the
**Q3-Med**data series (the uppermost one) and choose**Layout > Analysis|Error Bars > More Error Bar Options**. On the resulting dialog box (Vertical Error Bars menu), click on the**Plus**and**Custom**radio buttons and then click on the**Specify Value**button. Now specify the range F8:H8, i.e. the last row of the table you created above, in the dialog box that appears (in the**Positive Error Values**field). - Remove the legend by selecting
**Layout > Labels|Legend > None**.

The resulting chart is as follows:

**Figure 5 – Box Plot: alternative approach**

**Observation**: Unfortunately, the data analysis tool in the Real Statistics Resource Pack cannot produce this box plot automatically. When negative data is present there are two choices:

- Produce the box plot manually as described in Example 2
- Use the
**Box Plot**option of the Real Statistics**Descriptive Statistics and Normality**data analysis tool (as described in Box Plots) and either accept that the y-axis will be displaced upwards or simply remove the labels on the y-axis by right clicking on the labels in the y-axis and selecting**Delete**(or by pressing the**Backspace**key)

Hi,

I want to compare two groups over time (t0,t1,t2,t3) in a graph. Is it possible to group the boxplots of both groups together per timepoint? So, on the x-axis the timepoints and per timepoint 2 boxplots (for each group)?

Hope you can help!

Thanks a lot

Josien,

Yes. Put the data in 8 columns. Use the headings t0A, t0B, t1A, t1B, t2A, t2B, t3A, t3B (or something similar) as the column headings.

Charles

Amazing…..

I want the guidance to prepare the comparative boxplot for various 3 treatment on pain scale. we wish to show effect on pain scale before and after Rx1, before and after Rx2 and Before and After Rx3. How to plot in excel?

D,

The Real Statistics Resource Pack provides a data analysis tool that produces boxplots in Excel. See the webpage

Boxplots

If you have Excel 2016, you can use the new box chart capability.

Charles

thank you very much I enjoy of this site

Thank you very much for your nice guidance. I have tried it, and it work.

ok, got it. thank you very much

i am trying to create the Chart of standard error of the means using excel 2013 and finding difficult to follow the following steps

Highlight the sample means (range B19:E19 of Figure 6) and then select Insert > Charts|Line and choose the Line with Markers option.

Under Chart Tools select Layout > Analysis|Error Bars and then More Error Bar Options > Vertical Error Bars

Now select Both, Cap and Custom radio buttons, and click Specify Value

On the dialog box that is displayed enter the range where the standard error is stored (B21:E21 in Figure 6) in both of the boxes that are displayed, and then click OK and then Close.

please help.