MS Excel how to create a macro to find duplicates and highlight them?

后端 未结 5 1299
臣服心动
臣服心动 2020-12-22 13:13

How can I create a macro in MS excel to find duplicates in a spreadsheet and highlight it

5条回答
  •  爱一瞬间的悲伤
    2020-12-22 13:22

    Ross Larson answered this question here: Finding duplicate rows in excel

    Quoting from his answer, "The absolute fastest and easiest way. Conditional formatting, highlight duplicates (on the ID column). Then filter the column (presumably in a table) by the coloring (above the check boxes)."

    Yesterday, I personally tried this out and it worked great. No need to write a macro or fancy VBA script. Just use the Excel out-of-the-box functionality.

    The answer Paul Rayner gave in 2010 has a broken link. The Ross Larson link is still working - at least for now.

提交回复
热议问题