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
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.
Highlight the last duplicate row/cell with a help column
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 in the column header of Helper column, uncheck 1 in the drop down list, and then click the OK button. See screenshot:
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:
5. Delete the Helper column by right clicking this column and selecting the Delete from the right-clicking menu.
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:
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.
Highlight the last duplicate row/cell with Kutools for Excel
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 - Includes more than 300 handy tools for Excel. Full feature free trial 30-day, no credit card required! Free Trial Now!
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:
Kutools for Excel - Includes more than 300 handy tools for Excel. Full feature free trial 30-day, no credit card required! Get It Now
Demo: highlight the last duplicate row/cell in Excel
Related articles:
Best Office Productivity Tools
Supports Office/Excel 2007-2021 and 365 | Available in 44 Languages | Easy to Uninstall Completely
Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need Is Just A Click Away...
Supercharge Your Excel Skills: Experience Efficiency Like Never Before with Kutools for Excel (Full-Featured 30-Day Free Trial)
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, 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! (Full-Featured 30-Day Free Trial)
