基于是或否的值的条件格式 [英] Conditional Formatting of a value based on Yes or NO

查看:171
本文介绍了基于是或否的值的条件格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个ROWS,一个具有值,另一个。我希望根据相应列第2行中的还是 NO 来对ROW 1中的值进行着色。例如:

I have two ROWS, one has values and the other Yes or NO. I want the values in ROW 1 to be colored according to whether Yes or NO in ROW 2 in the corresponding column. For example:


   ROW 1  XXXX|XXXX|XXX|XXXX  
   ROW 2  YES | NO |YES| NO

没有条件说明行1应该是或不是,这就是事实。

There are no conditions to why ROW 1 should be yes or no, it's just the way it is.

有可能吗?

推荐答案

在条件格式中,请使用选项:

In conditional formatting, use this option:

并编写以下公式:

=If(B2="Yes",1,0)

并假设您的数据是这样的:

And assuming your data is like this:

因此,Row1中的高亮显示值会有所不同在Row2中。

希望对您有所帮助。

注意:

请记住,您仅在 A2 ,然后将格式复制并粘贴到其他单元格即可。

So, the highlight in Row1 changes depending on the value in Row2.
Hope this helps.
Note:
Remember, you only apply the formatting in A2 then just copy and paste format to other cells.

这篇关于基于是或否的值的条件格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆