excel中也能制作盒形图

Step 1: Calculate the number summaries

Assuming your data is in list use formulas MIN, MAX & PERCENTILE to calculate summaries like below:

excel中也能制作盒形图

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.

excel中也能制作盒形图

Step 3: Set series overlap to 100%

Select any bar, press CTRL+1 (right click > format series) and adjust series overlap to 100%

excel中也能制作盒形图

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:

excel中也能制作盒形图

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.

excel中也能制作盒形图

Repeat for Q3 series as well.

excel中也能制作盒形图

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:

excel中也能制作盒形图

Step 8: Set up custom error values for Q1 & Q3

excel中也能制作盒形图
Select the error bar for Q1 (25th percentile) and,

  1. Press CTRL+1 to format them
  2. Enable only minus (negative) error bar with no cap.
  3. 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

相关文章:

  • 2022-12-23
  • 2021-10-23
  • 2022-01-07
  • 2021-07-07
  • 2021-05-07
  • 2021-07-15
  • 2021-07-02
  • 2021-11-20
猜你喜欢
  • 2022-02-08
  • 2021-05-11
  • 2021-07-25
  • 2022-03-14
  • 2021-09-07
  • 2021-09-17
  • 2022-01-20
相关资源
相似解决方案