简体   繁体   English

带有更新公式的 Excel 条件格式

[英]Excel Conditional Formatting with updating formula

I have a matrix in excel (pictured below) that I need the following conditions for: (1) A cell should be orange if a time fraction and Tj are provided on the same row, AND a Ball name is provided on its respective column (2) A cell should be blue if, on the same row, any previous current input is <= .5* the first current input on the same row, regardless of if a ball name is provided (3) A cell should be blue if no time fraction or Tj are provided on the same row, or if no ball name is given in its respective column (4) The cells must default to blue when nothing is entered At the moment, the cells are filled blue, so I understand that I need to only format when the cells should become orange, but I'm having some trouble working out the logic for conditional formatting, and as its a large table, I would like to avoid having to enter a conditional format for each individual cell.我在 excel 中有一个矩阵(如下图所示),我需要以下条件:(1)如果在同一行上提供时间分数和 Tj,并且在其各自的列上提供球名称,则单元格应为橙色( 2) 如果在同一行上,任何先前的当前输入 <= .5* 同一行上的第一个当前输入,则单元格应为蓝色,无论是否提供球名称 (3) 单元格应为蓝色,如果在同一行上没有提供时间分数或 Tj,或者如果在其各自的列中没有给出球名称 (4) 当没有输入任何内容时,单元格必须默认为蓝色 目前,单元格填充为蓝色,所以我明白我只需要在单元格变为橙色时进行格式化,但是我在计算条件格式的逻辑时遇到了一些麻烦,并且由于它是一个大表,我想避免必须为每个单独的单元格输入条件格式。 Is there a way to say, for instance, (cell) = AND(tfrac <> "", tj <> "", Ballname <> "") format(orange), and then have the row/column numbers change for each cell, to that cell's respective column/row letter/number?有没有办法说,例如,(cell) = AND(tfrac <> "", tj <> "", Ballname <> "") format(orange),然后让每个行/列号改变单元格,该单元格各自的列/行字母/数字? Thanks!谢谢!

在此处输入图片说明

If you are new to conditional formatting, you can follow this answer I gave to a different question: Is it possible to have excel highlight cells that don't conform to my desired format (ex. date as 6.2.2021 vs the desired 6/2/2021)?如果您不熟悉条件格式,则可以按照我对另一个问题的回答进行操作: 是否可以让 excel 突出显示不符合我所需格式的单元格(例如,日期为 6.2.2021 与所需的 6/ 2/2021)? which will show you how to go about it.这将告诉你如何去做。

As to the actual conditional logic for the formula that will be used, I would try something like:至于将使用的公式的实际条件逻辑,我会尝试以下操作:

=AND($time<>"", $tj<>"", ballname="what_you_want")

在此处输入图片说明

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

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