[英]Using Conditional Formatting in Excel to only format the cell if 2 conditions are met
After a bit of consternation I managed to come up with a pretty simple solution to highlight cells in a range if a cell in a different range has the same value:有点惊慌失措之后,我设法想出了一个非常简单的解决方案,如果不同范围内的单元格具有相同的值,则突出显示范围内的单元格:
=MATCH(RC,'Interactive Calendar'!C2,0)>0
What I'd like to do next, and I'm having some difficulty figuring it out, is to check if C3
in the Interactive Calendar sheet has a specific value based around location.我接下来想要做的,但我很难弄清楚,是检查交互式日历表中的
C3
是否具有基于位置的特定值。
So IF =MATCH(RC,'Interactive Calendar'!C2,0)>0 AND
the corresponding cell in 'Interactive Calendar'!C3="Brisbane"
, then format the cell.所以
IF =MATCH(RC,'Interactive Calendar'!C2,0)>0 AND
'Interactive Calendar'!C3="Brisbane"
的相应单元格,然后格式化单元格。 There are three locations, Melbourne, Brisbane and Sydney so the plan was to have 3 different formatting rules across the same area.共有三个地点,墨尔本、布里斯班和悉尼,因此计划在同一区域拥有 3 种不同的格式规则。
用:
=AND(ISNUMBER(MATCH(RC,'Interactive Calendar'!C2,0)),INDEX('Interactive Calendar'!C3,MATCH(RC,'Interactive Calendar'!C2,0))='Brisbane")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.