Step 1: Calculate the number summaries
Assuming your data is in list use formulas MIN, MAX & PERCENTILE to calculate summaries like below:
To calculate 25th percentile (Q1) use = PERCENTILE(list, 25%)
Step 2: Make a bar chart from Q1, Median & Q3
Just select the 25th percentile, median & 75th percentile values and create a bar chart.Make sure that your chart shows 3 different colored bars not 3 bars in one color.
Step 3: Set series overlap to 100%
Select any bar, press CTRL+1 (right click > format series) and adjust series overlap to 100%
Step 4: Adjust series order so that you can see all the bars
If you cannot see all the bars, right click on chart, click on “Select data”.
Now, adjust the series order using arrow keys so that you can see all the bars. See this demo:
Step 5: Make 25th percentile (Q1) bar invisible
Select the bar corresponding to Q1 and fill it with white color. If you make it transparent, it will not work. So make it all white.
Step 6: Add error bars to Q1 & Q3 series
Just select Q1 (25th percentile) bar and add error bar (any type) from layout ribbon.
Repeat for Q3 series as well.
Step 7: Set up error values in your data
Add an extra column in your data area and use simple formulas to calculate error values, like below:
Step 8: Set up custom error values for Q1 & Q3
Select the error bar for Q1 (25th percentile) and,
- Press CTRL+1 to format them
- Enable only minus (negative) error bar with no cap.
- Select Custom as error amount and point to the calculated value.
Repeat for Q3, but choose positive error bar instead.
Step 9: Format the box plot to your taste
Remove any legend, axis, labels that you do not need. Change colors to suit your taste and mood. Make the whiskers subtle and knock off the grid lines. You are good to go.
Hi,推荐文件给你 "盒形图.xls" http://vdisk.weibo.com/s/jWiCZ