简体   繁体   English

在 Excel 中使用条件格式仅在满足 2 个条件时设置单元格格式

[英]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.

相关问题 Excel条件格式-如果满足两个条件,则突出显示单元格 - Excel conditional formatting - highlight cell if two conditions are met 条件格式 满足 2 个条件 - Conditional formatting 2 conditions met 仅当指定单元格为空且满足其他条件时才应用条件格式 - Apply conditional formatting only when specified Cell is empty and other conditions are met Excel-具有2个条件的条件格式 - Excel - conditional formatting with 2 conditions 如果在Excel中具有多个条件,则使用嵌套的条件格式 - conditional formatting using nested if with multiple conditions in excel Excel格式化单元格条件 - Excel Formatting Cell Conditions Excel 2010条件格式。 如果它包含2个条件中的1个,则将单元格缩小 - Excel 2010 Conditional formatting. Highlings a cell if it contaons 1 of 2 conditions 在Excel VBA中使用格式条件中的当前月份和年份值进行条件格式 - Conditional formatting in Excel VBA using the current month and year values in the format conditions 在python中使用条件格式突出显示Excel单元格 - Highlighting an excel cell using conditional formatting in python 条件格式(自定义格式),具有Excel中的数字的多个条件 - Conditional formatting(custom format) with multiple conditions for a number in Excel
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM