简体   繁体   English

根据一系列值设置单元格填充的格式

[英]Format cell fill based on a range of values

Could anyone advise how to format the fill of cell based on percentile ranges? 有人可以建议如何根据百分比范围来格式化单元格的填充格式吗? So for example, I have a row of values. 例如,我有一排值。 I'd like to format the fill on those cells such that I have cell fill colour for three conditions: above the 90th, between 10th and 90th and below the 10th percentile. 我想格式化这些单元格的填充格式,以使我在以下三种情况下具有单元格填充颜色:高于90,高于10,低于90和低于10%。 If I try to create a conditional formatting rule with a 3-color scale, I am not sure how to format the 10th to 90th percentile range. 如果尝试创建3色标的条件格式设置规则,则不确定如何格式化第10到第90个百分位范围。

So basically what I am asking is how to format a row of cells thresholding on a range. 所以基本上我要问的是如何格式化在一定范围内阈值的一排单元格。

Thanks in advance! 提前致谢!

Using Excel 2013, might be slightly different path for older versions. 对于较早版本,使用Excel 2013可能会略有不同。

Highlight the cell range you want. 突出显示所需的单元格范围。

Home -> Conditional Formatting -> New Rule

Under New Rule, there should be 6 options, choose option Format only top or bottom ranked values . 在“新规则”下,应该有6个选项,选择“ Format only top or bottom ranked values选项。 Choose Top , 10 (or whatever number you want), and click the box for % of the selected range . 选择Top10 (或任何您想要的数字),然后单击所选范围百分比的框。

Hit Format and go to Fill, and choose a background color. 点击格式并转到填充,然后选择背景色。

Do the same thing, but now choose Bottom instead of Top. 做同样的事情,但是现在选择“底部”而不是“顶部”。

This will highlight the top x% and bottom y%. 这将突出显示顶部x%和底部y%。 Also, if you're open, you should also try Icon Sets and you can use Green/Yellow/Red circles or arrows to help. 另外,如果您是开放的,则还应尝试使用图标集,并可以使用绿色/黄色/红色圆圈或箭头来提供帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM