简体   繁体   English

条件格式减慢了Excel

[英]Conditional Format Slows Down Excel

I'm using excel Conditional Formatting to find duplicate rows by searching through multiple columns, and if those columns match in another row, it'll highlight those duplicate rows. 我正在使用excel条件格式通过搜索多个列来查找重复的行,如果这些列在另一行中匹配,它将突出显示那些重复的行。 The problem is, that when I use that conditional formatting, it really slows down the sheet. 问题是,当我使用条件格式时,它确实减慢了工作表的速度。 Selecting from a drop-down list takes 3-5 seconds, and copy and pasting takes a few seconds. 从下拉列表中选择需要3-5秒,复制和粘贴需要几秒钟。 I'm probably at most, pasting about 100 rows and about 8 columns. 我可能最多,粘贴大约100行和大约8列。

Is there a way to make the sheet more efficient? 有没有办法让表格更有效率? Will creating a macro speed up the Excel? 创建宏会加速Excel吗?

Here's the formula. 这是公式。

=COUNTIFS($B:$B,$B1,$C:$C,$C1, $E:$E,$E1,$F:$F,$F1,$G:$G,$G1,$I:$I,$I1) > 1

and it applies $A:$I. 它适用$ A:$ I。

Thanks! 谢谢!

Change your COUNTIFS so it doesn't search the entire column, but a limited range. 更改您的COUNTIFS,使其不搜索整个列,但搜索范围有限。 For example, 1000 rows: 例如,1000行:

=COUNTIFS($B1:$B1000,$B1,$C1:$C1000,$C1, $E1:$E1000,$E1,$F1:$F1000,$F1,$G1:$G1000,$G1,$I1:$I1000,$I1) > 1

That should improve the performance substantially. 这应该会大大改善性能。 If your data has too dynamic of a size for that to work, switch to using tables and when you select the whole column table you'll get a field-based formula which only selects the cells needed. 如果您的数据太大而无法使用,请切换到使用表格,当您选择整个列表时,您将获得一个基于字段的公式,该公式仅选择所需的单元格。

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

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