简体   繁体   English

如果第二个大于3,则有条件地格式化单元格,或者根据另一个单元格的内容填充单元格。

[英]Conditionally format a cell, or populate a cell based on the contents of another cell, if the 2nd if greater than 3.

I have a six digit reference in one cell. 我在一个单元格中有一个六位数的引用。

On the same worksheet I would like to format a cell if the 2nd digit of the number is greater than 3. 在同一工作表上,如果数字的第二个数字大于3,我想格式化一个单元格。

I don't mind using a lookup rather than a conditional format. 我不介意使用查找而不是条件格式。 Because, I ideally I would like to put a cross "x" in the box, or at the very least grey out the box with formatting, if the 2nd digit in the referenced cell is greater than 3. 因为,理想情况下,如果引用单元格中的第二个数字大于3,我希望在框中放置一个十字“x”,或者至少在格式化框中显示灰色。

You can do this with that Formula: 您可以使用该公式执行此操作:

=0+Left(Right(A1;2);1) >3

在此输入图像描述

Her You can see it gets True (Wahr) or False(Falsch) when the 2nd digit is greater then 3. 当第二个数字大于3时,你可以看到它变为真(Wahr)或False(Falsch)。

And you can Put that in the Conditionally formating Like this: 你可以把它放在有条件的格式中像这样:

在此输入图像描述

在此输入图像描述

I Hope that can Help you 我希望能帮助你

Let the reference be in cell A1. 让参考在单元格A1中。 Put the following formula in B1 and apply conditional formating checking for >0: 将以下公式放在B1中并对> 0应用条件格式化检查:

=if(right(left(A1;2);1)*1;1;0) = IF(右(左(A1; 2); 1)* 1; 1; 0)

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

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