可见范围内的条件格式? [英] Conditional formatting on visible range?

查看:107
本文介绍了可见范围内的条件格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张表,上面有动作时间,我想突出显示比上面的行多20分钟以上的行。

实际的分钟数不太重要。

I have a table with times of actions and I want to highlight rows that are more than 20-ish minutes more than the one above.
The actual number of minutes is less important.

为此,我使用条件格式,其公式为:

= F3-F2&>; 01766

For that I use conditional formatting with the formula:
=F3-F2>0,01766

到目前为止非常好。

但是现在如果我在表上应用过滤器,该公式将不再起作用,因为它会查看隐藏的行。

只有第一个突出显示是通过条件格式化另一个来突出显示的两个是我做的。

So far so good.
But now if I apply filter on the table the the formula does not work anymore because it looks at the hidden rows.
Only the first highlight is made by the conditional formatting the other two are done by me.

是否可以将条件格式设置为只看可见行?

Is it possible to get conditional formatting to look at the visible rows only?

推荐答案

我只能通过使用特殊的过滤列来提出解决方案指数。在我的示例中,我正在按 1过滤数据,因此我将在L列中添加 1。如果您有多个过滤器,则可以在col L的下一行中添加。

I was able to come up with a solution only by using a special columns for the filtered index. In my example, i am filtering the data by '1', So i will add '1' in Column L. If you have multiple filters, you can add in the next rows in col L.

Col H检查Col E中的单元格是否在过滤器列表中

Col H checks if cell in Col E exists in the filters list

Col我找到了未过滤的最后一行。该公式必须作为数组公式输入,即输入公式并按 Ctrl Shift Enter

Col I finds the last row that is not filtered. The formula has to be entered as an Array Formula i.e. enter the formula and press Ctrl Shift Enter

Col J检查当前行和最后一个未过滤行的Col F中的单元格之间的差是否在20到21分钟之间。此单元格为true时将应用条件格式

Col J checks if the difference between cells in Col F for the current row and the last not filtered row is between 20 and 21 minutes. Conditional formatting is applied for this cell being true

下面的图片未应用任何过滤器

Below image without applying any filter

在将 1添加为过滤器之后

After adding '1' as filter

隐藏的已过滤行

Filtered rows hidden

公式

这是 Google表格

这篇关于可见范围内的条件格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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