简体   繁体   English

Excel手动单元格值等于要与其他条件一起使用的单元格范围内

[英]Excel Manual Cell Value Equals to In Range of Cells to be Used With Other Condition

In conditional formatting you can select a range of cells such as A1:C3 go to highlighted cell rules and equal to, so that for example any 0 would be red.在条件格式中,您可以选择一系列单元格,例如 A1:C3 转到突出显示的单元格规则并等于,例如,任何 0 都会是红色的。

But I want to combined this condition with another one and so I have to write my own formula using and AND for example I tried:但是我想将这个条件与另一个条件结合起来,所以我必须使用 and 来编写我自己的公式,例如我试过:

=AND($A$1:$C$3=0, $D$5=5) 

But this will apply the condition to all the cells in the range only if all the cells in the range equal 0 and D5 is equal to 5.但是,只有当范围内的所有单元格都等于 0 且 D5 等于 5 时,这才会将条件应用于范围内的所有单元格。

However, I want it to only apply it to the cells that equal 0 without having to make a rule for every cell in the range.但是,我希望它仅将其应用于等于 0 的单元格,而不必为范围内的每个单元格制定规则。

Use:利用:

=AND(A1=0,$D$5=5)

The conditional formatting will iterate the range itself.条件格式将迭代范围本身。 One rule for the whole range with the formula relatively referencing the upper left cell.整个范围的一个规则,公式相对引用左上角单元格。

在此处输入图像描述

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

相关问题 Excel - 如果单元格范围等于列表中的值,我想填充另一个单元格的值 - Excel - if a range of cells equals a value from a list I want to populate the value of another cell Excel COUNTIFS单元格等于单元格范围,而范围内的单元格等于另一个范围 - Excel COUNTIFS cell equals range of cells AND cell from range equals another range 当其他像元值等于特定值时为像元着色 - Color cells when other cell value equals specific value Excel在单元格等于值时执行获取相邻单元格的时间 - Excel Do while to obtain adjacent cells when cell equals value Excel:当其他单元格等于定义的值时,删除整行 - Excel: delete entire row when other cell equals a defined value Excel公式可将一个单元格与选定范围内的其他单元格进行比较 - Excel formula to compare a cell with other cells in a selected range Excel在检查单元格范围后返回单元格中的值 - Excel to return a value in a cell after checking a range of cells Excel:仅根据一个单元格的值或公式填充一系列单元格 - Excel: Fill a range of cells with a value or formula depending on only one cell 如何从 excel 表中的单元格值获取单元格范围? - How to get a cells range from cell value in excel sheet? Excel使用一系列单元格返回与相邻单元格对应的值 - Excel using a range of cells to return value corresponding to an adjacent cell
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM