How to Keep the Last Duplicate in Excel
Excel cannot keep the last duplicate natively. Use sort + remove, or a preview tool with keep-last option.
Why keep-last is needed
Often the newest row has the latest status—updated email, recent order total, or current address.
Excel workaround: sort then remove
Sort by date descending so the newest row is first, then run Remove Duplicates (which keeps first).
Online tool: Keep last option
Select Keep last in the tool, preview duplicate groups, and confirm which row survives in each group.
Risks and verification
After keep-last dedup, verify that the surviving row has the expected timestamp or version.
Tips
- Sort by updated_at or version column before any manual Excel workaround
- Preview groups to see which row is marked as kept
- Ideal for incremental CRM exports where the latest row wins
- Export marked file first if stakeholders need to audit the decision
Excel Duplicate Removal FAQ
Can Excel keep the last duplicate directly?
Excel's built-in Remove Duplicates keeps the first row by default. To keep the last row, sort first or use a tool with a keep-last option.
How do I keep the newest record?
If you have an updated-at column, sort by time ascending and keep the last duplicate, or choose keep-last in the online tool.
When should I use keep-last?
Use keep-last when newer rows should win, such as latest order status, newest CRM exports, or the most recent contact record.