Skip to main content

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.

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 - Packed with over 300 essential tools for Excel. Enjoy a full-featured 30-day FREE trial with no credit card required! Download 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:

doc highlight last duplicate 11

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy a full-featured 30-day FREE trial with no credit card required! Get It Now


Kutools for Excel: Over 300 handy tools at your fingertips! Start your 30-day free trial with no feature limitations today. Download Now!

Best Office Productivity Tools

Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

kte tab 201905


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!
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations