简体   繁体   English

条件格式仅在 Excel 范围内的值

[英]Conditional formatting only values in range in Excel

I have these values in A1:C16 in Excel:我在 Excel 的 A1:C16 中有这些值:

A一个 B C C
NA不适用 NA不适用 NA不适用
3,18E-04 3,18E-04 NA不适用 NA不适用
3,75E-03 3,75E-03 1,03E-10 1,03E-10 NA不适用
5,67E+01 5,67E+01 7,95E+02 7,95E+02 9,61E-16 9,61E-16
9,25E-01 9,25E-01 9,85E-02 9,85E-02 2,04E-01 2,04E-01
7,80E-02 7,80E-02 1,10E-03 1,10E-03 3,04E-01 3,04E-01
5,29E-60 5,29E-60 1,09E-144 1,09E-144 1,61E-251 1,61E-251
3,59E-43 3,59E-43 9,07E-93 9,07E-93 5,62E-230 5,62E-230
1,16E+09 1,16E+09 4,23E+08 4,23E+08 1,43E+09 1,43E+09
8,52E-01 8,52E-01 7,71E-01 7,71E-01 6,95E-01 6,95E-01
9,80E+09 9,80E+09 3,68E+08 3,68E+08 2,79E-04 2,79E-04
2,21E-01 2,21E-01 9,84E-01 9,84E-01 4,99E-02 4,99E-02
4,88E+00 4,88E+00 6,18E-02 6,18E-02 1,89E-02 1,89E-02
1,67E-03 1,67E-03 3,50E-04 3,50E-04 9,68E-03 9,68E-03
6,31E-29 6,31E-29 5,41E-58 5,41E-58 5,04E-98 5,04E-98
8,39E-14 8,39E-14 8,68E-24 8,68E-24 2,84E-15 2,84E-15

What I need to do is to colour scale only values between the minimum value (1,61E-251) and 0,05.我需要做的是仅对最小值 (1,61E-251) 和 0,05 之间的值进行颜色缩放。 Can anyone help me?谁能帮我?

You need to use 2 rules of conditional formatting.您需要使用 2 条条件格式规则。 The first will be formula based and (assuming you are using the range specified in the sample) will use this formula:第一个将基于公式,并且(假设您使用示例中指定的范围)将使用此公式:

=A1>0,05

Note that A1 is the first top left cell of your range and its address is not absolute.请注意,A1 是您范围的第一个左上角单元格,它的地址不是绝对的。 This will make the conditional formatting focus on each cell (not just on cell A1).这将使条件格式专注于每个单元格(不仅仅是单元格 A1)。 You can set the format according to your needs.您可以根据需要设置格式。

The second rule will be a 2-scale color value based conditional formatting.第二条规则将是基于 2 比例颜色值的条件格式。 You'll set the first color to the minimum and the second color to number 0,05.您将第一种颜色设置为最小值,将第二种颜色设置为数字 0,05。

Be sure to respect the rules' order.一定要尊重规则的顺序。 If you swap them, they won't work in the same way.如果您交换它们,它们将不会以相同的方式工作。

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

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