简体   繁体   English

Excel中的条件格式

[英]conditional formatting in Excel

I'm using conditional formatting such as: 我正在使用条件格式,例如:

=$B2>=LARGE($B$2:$B$40,3)

This will result in the 3 largest or highest amounts. 这将导致3个最大或最高金额。 But is there a formula that will result in automatically producing the top 10, or 9, or 8, or etc.? 但是是否有公式可以自动产生前10位,9位或8位等? So I won't have to go back and change the format based on criteria for that given week? 因此,我不必回去根据给定一周的条件更改格式吗?

In other words, I'm looking a formula to replace the "3" that will look at the range and produce the top 10, or 9, or 8, or etc. 换句话说,我正在寻找一个替换“ 3”的公式,该公式将查看范围并产生前10个,9个或8个等。

Any help appreciated! 任何帮助表示赞赏!

Try Top/Bottom Rules, Top Ten Items... and select a value in the left hand window to suit (and change formatting if desired). 尝试“顶部/底部规则”,“前十项...”,然后在左侧窗口中选择一个适合的值(并根据需要更改格式)。

To exclude values of 0 from the highlighting, use Top 10 for 10 items but also Format only cells that contain, Cell Value, equal to, =0 and set no format. 要从突出显示中排除值0 ,请对10个项目使用“前10个”,但也要仅对包含“单元格值”等于= 0且不设置格式的单元格进行格式化。 Make sure this rule is at the top of any others, applies to a suitable range and that Stop If True is checked: 确保此规则位于其他规则的顶部,适用于适当的范围,并且选中“如果为真则停止”:

SO21292676的例子

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

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