简体   繁体   中英

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.

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.

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.

And you can Put that in the Conditionally formating Like this:

在此输入图像描述

在此输入图像描述

I Hope that can Help you

Let the reference be in cell A1. Put the following formula in B1 and apply conditional formating checking for >0:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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