How Do I Make A Boxplot In Excel

9 min read

Creating a boxplot in Excel is one of the most effective ways to visualize the distribution of a dataset, allowing you to instantly grasp the median, quartiles, and potential outliers. While Excel did not offer a native boxplot chart type until the 2016 version, the process is now streamlined and accessible to users of all skill levels. Whether you are analyzing test scores, sales figures, or scientific measurements, mastering this chart type will significantly upgrade your data analysis capabilities.

Understanding the Boxplot Anatomy

Before diving into the mechanics, it helps to understand what the chart actually represents. A boxplot (often called a box-and-whisker plot) displays the five-number summary of a dataset:

  • Minimum: The smallest value excluding outliers.
  • First Quartile (Q1): The median of the lower half of the data (25th percentile).
  • Median (Q2): The middle value of the dataset (50th percentile).
  • Third Quartile (Q3): The median of the upper half of the data (75th percentile).
  • Maximum: The largest value excluding outliers.

The "box" spans from Q1 to Q3, representing the Interquartile Range (IQR), which contains the middle 50% of your data. The "whiskers" extend to the minimum and maximum values (typically calculated as 1.In real terms, 5 * IQR from the box edges). Any data points falling outside the whiskers are plotted individually as outliers It's one of those things that adds up. Worth knowing..

Preparing Your Data for Success

The structure of your data determines how smoothly the chart creation process goes. Excel works best when data is organized in a tabular format.

  1. Single Column vs. Multiple Columns: If you are comparing groups (e.g., Sales for Region A, Region B, Region C), place each group in its own column with a header in the first row. If you have a single dataset, a single column with a header is sufficient.
  2. No Blank Rows: Ensure there are no entirely blank rows or columns within your selection. Blank cells can sometimes be interpreted as zeros or gaps, skewing the quartile calculations.
  3. Headers Are Crucial: Always include a header row. Excel uses these headers for the chart legend and axis labels automatically, saving you formatting time later.

Example Structure:

Region A Region B Region C
120 95 200
135 110 210
128 105 190
... ... ...

Step-by-Step: Creating the Boxplot (Excel 2016 and Later)

If you are using Excel 2016, 2019, 2021, or Microsoft 365, you have access to the built-in Box and Whisker chart type. This is the fastest and most reliable method Turns out it matters..

  1. Select Your Data: Click and drag to highlight the entire dataset, including the headers.
  2. figure out to the Insert Tab: Go to the ribbon at the top and click Insert.
  3. Find the Statistical Charts: In the Charts group, look for the icon labeled Insert Statistic Chart (it usually looks like a histogram or bell curve). Click the dropdown arrow.
  4. Select Box and Whisker: Choose Box and Whisker from the list (it is typically the second option under the histogram).
  5. Initial Render: Excel will immediately generate the chart on your worksheet. You will see boxes representing each series (column) you selected.

Customizing the Chart for Clarity

The default chart is functional but rarely presentation-ready. Here is how to refine it using the Chart Design and Format tabs (which appear when the chart is selected) or by right-clicking specific elements.

Adjusting Whisker and Outlier Settings

By default, Excel calculates whiskers based on the 1.5 * IQR rule. You can verify or change this:

  1. Right-click on one of the boxes in the chart and select Format Data Series (or double-click a box).
  2. In the pane that opens on the right, click the Series Options icon (bar chart icon).
  3. Here you can toggle Show inner points, Show outlier points, Show mean markers, and Show mean line.
  4. Quartile Calculation: You can choose between Exclusive (default, uses PERCENTILE.EXC logic) and Inclusive (uses PERCENTILE.INC logic). Exclusive is generally preferred for statistical analysis as it handles outliers better.

Formatting Visual Elements

  • Gap Width: Under Series Options, adjust the Gap Width slider. Lower values make boxes wider; higher values add space between groups.
  • Colors: Click an individual box (click once to select the series, click again to select a specific box) > Right-click > Fill to change colors per category. Using a consistent color palette with high contrast improves readability.
  • Mean vs. Median: The line inside the box is the Median. The "X" marker (if enabled) is the Mean. If your data is skewed, these will not align. Adding the Mean Line (connecting the X markers across groups) is excellent for spotting trends in central tendency.

Adding Chart Elements

Use the + button (Chart Elements) floating next to the chart’s top-right corner:

  • Axis Titles: Label your Y-axis (e.g., "Revenue ($)") and X-axis (e.g., "Quarter").
  • Chart Title: Write a descriptive title (e.g., "Quarterly Revenue Distribution by Region").
  • Legend: Keep it if you have multiple series; remove it if you only have one box to reduce clutter.
  • Data Labels: Generally not recommended for boxplots as they clutter the visual, but you can label the median or mean values if necessary for a report.

The Workaround: Building a Boxplot in Excel 2013 or Earlier

If you are stuck on a legacy version (Excel 2010, 2013), you must build the chart manually using a Stacked Column Chart and error bars. It is tedious but entirely possible No workaround needed..

1. Calculate the Five-Number Summary

Create a small table nearby using these formulas (assuming data in A2:A20):

  • Min: =MIN(A2:A20)
  • Q1: =QUARTILE.INC(A2:A20, 1) (or QUARTILE.EXC)
  • Median: =MEDIAN(A2:A20)
  • Q3: =QUARTILE.INC(A2:A20, 3)
  • Max: =MAX(A2:A20)

2. Calculate Differences for Stacking

A stacked column chart stacks values on top of each other. To make a box, you need the heights of the segments:

  • Bottom Segment (Hidden): Q1 Value
  • Middle Segment (Box Bottom): Median - Q1
  • Top Segment (Box Top): Q3 - Median
  • Lower Whisker: Q1 - Min
  • Upper Whisker: Max - Q3

3. Insert Stacked Column Chart

  1. Select the calculated differences (Q1, Median-Q1, Q3-Median) — not the raw five numbers.
  2. Insert > Stacked Column Chart. 3

4. Build the Box Segments

  1. Create the box body – The middle two segments (Median‑Q1 and Q3‑Median) will form the rectangle of the box.

    • In the stacked column chart, the Median‑Q1 series will appear as the first bar of the box (bottom half) and Q3‑Median as the second bar (top half).
    • Right‑click each of these series > Format Data Series > Series Overlap = 0 % and Gap Width ≈ 50 % (or as narrow as you like). This makes the two halves sit flush, creating a single box.
  2. Hide the bottom segment – The Q1 series is used only to position the box correctly; it should be invisible That's the part that actually makes a difference..

    • Click the Q1 series > Format Data Series > Fill = No fill, Line = No line.
    • You may also set its Series Overlap to 0 % and Gap Width to the same value as the other series so the hidden bar does not affect spacing.

5. Add the Whiskers with Error Bars

The whiskers are the thin lines extending from the box to the minimum and maximum values. Excel’s error‑bar feature works perfectly for this.

  1. Select the series that will carry the whiskers – In a stacked column chart, each segment is its own series. You’ll need two additional series: Lower Whisker (Q1‑Min) and Upper Whisker (Max‑Q3). Add them to the worksheet next to the other differences (e.g., columns G and H).

  2. Insert error bars – Click the chart, go to Chart Design > Add Chart Element > Error Bars > More Error Bar Options.

    • For the Lower Whisker series, choose Minus direction only, Fixed value = the height of the Q1‑Min bar (or use Custom and select the same range for both positive and negative values to get a line that extends downward).
    • For the Upper Whisker series, choose Plus direction only, Fixed value = the height of the Max‑Q3 bar.
  3. Format error bars –

    • Direction: Both whiskers should be a solid line, typically 1‑2 pt wide, in the same color as the box.
    • End Style: Cap the ends with a small marker (the “T” shape) or leave them open, depending on your aesthetic.
    • Color & Transparency: Match the whisker color to the box fill for a cohesive look.

6. Polish the Appearance

  • Box fill: Click the combined box (the two middle series) > Format Data Series > Fill > choose a soft neutral color (light blue, light gray, etc.) with a thin outline (e.g., dark gray).
  • Whisker line: Ensure they are thin (1 pt) and a contrasting color (often the same hue as the fill but darker).
  • Axis labels: Because the Y‑axis now represents cumulative heights, you’ll want to hide or re‑label it. Right‑click the axis > Format Axis > Number > Custom and enter a formula that maps the cumulative values back to the original scale if needed, or simply turn off the axis display for a cleaner look.
  • Legend removal: With only one data series (the box), the legend is unnecessary. Delete it via Chart Elements > Legend > None.

7. Add Labels (Optional)

If you need to annotate the five‑number summary in the report, you can add data labels to the top of each segment:

  1. Click the Upper Whisker series > Add Data Labels > Format the label to show the Max value.
  2. Do the same for the Upper Box Segment (Q3‑Median) to display the Q3 value, and for the Lower Box Segment (Median‑Q1) to show the Median.
  3. Position the labels outside the chart or just above the corresponding elements for clarity.

8. Verify the Boxplot

  • Check alignment: The median line (inside the box) should sit at the correct height relative to Q1 and Q3.
  • Check whisker length: The lower whisker should reach the minimum value; the upper whisker should reach the maximum.
  • Inspect spacing: All boxes for different groups should be evenly spaced; adjust Gap Width if needed.

9. Save as a Template (Optional)

If you anticipate building many boxplots with the same structure, convert the chart to a **Chart

New Releases

Just Dropped

Neighboring Topics

Keep Exploring

Thank you for reading about How Do I Make A Boxplot In Excel. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home