简体   繁体   English

Excel 2016 条件格式基于下面的单元格

[英]Excel 2016 conditional formatting based on cell below

I have a table with a weekly schedule.我有一张每周时间表的桌子。 Row 2 shows the dates in the week, and row 1 shows the corresponding week day: =TEXT(B2;"dddd") , =TEXT(C2;"dddd") etc.第 2 行显示一周中的日期,第 1 行显示相应的工作日: =TEXT(B2;"dddd")=TEXT(C2;"dddd")等。

I have a rule that highlights the date if it is today, using the "built-in" condition.我有一个规则,使用“内置”条件突出显示日期(如果是今天)。

I want the cell above (with the week day) to have the same formatting.我希望上面的单元格(带有工作日)具有相同的格式。 How do I accomplish this?我该如何实现?

See the image below in explanation of my comment above.. Even if the row 1 is text, if you select both rows in "Applies to" option, it will apply.请参阅下面的图片来解释我上面的评论。即使第 1 行是文本,如果您在“适用于”选项中选择两行,它也会适用。 Note that the column in relative(not fixed by $) in the formula reference.请注意,公式引用中的相对列(未由 $ 固定)。

在此处输入图片说明

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

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