Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

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

Author Kelly Last modified

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

highlight the last duplicate row


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.

apply a formula to check duplicates

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

fill formula to other cells

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

click Filter from the Data Tab

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

uncheck 1 in the Filter drop down

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:

Fill Color for the filtered rows

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

delete the helper column

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:

the last duplicates are highlighted

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 - Packed with over 300 essential tools for Excel. Enjoy permanently free AI features! Download now!

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

click Select Duplicate & Unique Cells of kutools
set options in the dialog box

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.

a dialog box comes out to remind the number of selected rows

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

the last duplicate rows are highlighted

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:

select and highlight the last duplicate rows

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now


Demo: highlight the last duplicate row/cell in Excel

 

Related articles:

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
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
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

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


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!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

Excel Word Outlook Tabs PowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in