Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to highlight the last duplicate row/cell in Excel?

If you select cells and click Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values in Excel, all duplicate cells will be highlighted. But this article will introduce some methods to highlight only the last duplicate cells in the specified column, highlight entire rows based on the last duplicates in the specified column, and highlight the last duplicate rows in Excel.

Highlight the last duplicate row/cell with a help column

Highlight the last duplicate row/cell with Kutools for Excel

doc highlight last duplicate 0

Automatically highlight active row and column with Kutools for Excel

When selecting a cell in Excel, normally only the active cell is highlighted. However, Kutools for Excel's Reading Layout utility can automatically highlight the entire row and column of active cell automatically. Full Feature Free Trial 60-day!

ad reading layout 1



This method will guide you to highlight the last duplicate cells in the specified column or highlight the entire rows based on the last duplicates in the specified column. Please do as follows:

1. Select a blank cell besides original range, says Cell E2, type the formula =COUNTIF($A$2:A2,A2) (A2 is the first data of specified column you will check duplicates) into it, and drag this cell’s AutoFill Handle down to the range as you need.

And then the helper column is added besides the original range. See screenshot:

2. Select the helper column, and click Data > Filter.

3. Click the Arrow button doc highlight last duplicate 4in the column header of Helper column, uncheck 1 in the drop down list, and then click the OK button. See screenshot:

doc highlight last duplicate 3

4. Select all filtered out rows (or cells) in the specified column or all filtered out rows, click Home > Fill Color, and then specify a fill color from the drop down list. See screenshot:

doc highlight last duplicate 5

5. Delete the Helper column by right clicking this column and selecting the Delete from the right-clicking menu.

doc highlight last duplicate 6

So far we have highlighted the rows based on the last duplicates in the specified column (or highlighted the last duplicate cells in the specified column). See screenshot:

doc highlight last duplicate 0

Note: This method will highlight duplicates cells/rows except the first duplicate one. For example there are three “Black Tea” in the specified column, this method will highlight the second and the third “Blank Tea” cells in the column, or highlight rows based on the second and the third duplicates.


If you have Kutools for Excel installed, you can apply its Select Duplicate & Unique Cells utility to highlight the last duplicate cells in the specified column, highlight entire rows based on the last duplicates in the specified column, or highlight the last duplicate rows in the specified range.

Kutools for Excel - Combines more than 300 Advanced Functions and Tools for Microsoft Excel

1. Select the specified column you will check duplicates, and click Kutools > Select > Select Duplicate & Unique Cells. See screenshot:

2. In the opening Select Duplicate & Unique Cells dialog box, please do as above screenshot shown:

(1) Check the Duplicates (Except 1st one) option in the Rule section;

(2) Check the Fill Backcolor option and specify a fill color from below drop down list;

(3) It’s optional to check the Select entire rows option.

For only highlighting last duplicate cells in the selected column, please do not check this Select entire rows option; for highlighting the entire rows based on the last duplicates in the selected column, please check this Select entire rows option.

In our case, we check the Select entire rows option.

3. Click the Ok button to apply this utility. And then a dialog box comes out and reminds you the number of selected rows. Just click the OK button to close it.

And then only the entire rows with the last duplicate cells in the specified column have been highlighted. See screenshot:

Notes:

(1) Above steps will highlight duplicates cells/rows except the first duplicate one. For example there are three “Black Tea” in the specified column, this method will highlight the second and the third “Blank Tea” cells in the column, or highlight rows based on the second and the third duplicates.

(2) The Select Duplicate & Unique Cells utility can also select and highlight the last duplicate rows in the specified range. See screenshot:

doc highlight last duplicate 11

Kutools for Excel - Includes more than 300 handy Excel tools. Full feature free trial 60-day, no credit card required! Get it now!


In this Video, the Kutools tab and the Kutools Plus tab are added by Kutools for Excel. If need it, please click here to have a 60-day free trial without limitation!




Recommended Productivity Tools for Excel

Kutools for Excel Helps You Always Finish Work Ahead of Time, and Stand Out From Crowd

  • More than 300 powerful advanced features, designed for 1500 work scenarios, increasing productivity by 70%, give you more time to take care of family and enjoy life.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Brings Tabbed Browsing and Editing to Microsoft Office, Far More Powerful Than The Browser's Tabs

  • Office Tab is designed for Word, Excel, PowerPoint and Other Office Applications: Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.