简体   繁体   中英

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. 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. I'm probably at most, pasting about 100 rows and about 8 columns.

Is there a way to make the sheet more efficient? Will creating a macro speed up the 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.

Thanks!

Change your COUNTIFS so it doesn't search the entire column, but a limited range. For example, 1000 rows:

=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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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