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


How to remove duplicates but leaving lowest value in another column in Excel?

For instance, there are two columns, A and B, column A includes some duplicate values, and column B contains some numbers, have you any way to remove duplicates from column A but leaving the lowest values in column B as below screenshot shown? This article will give you a favor.
doc remove duplicates leave lowest 1

Remove duplicate but keep lowest/highest value with Remove Duplicates and formula

Remove duplicate but keep lowest/highest value with Kutools for Excel good idea3

To remove duplicate but keep lowest value, you can apply Remove Duplicates function and a formula.

1. Select and copy column A which contains the duplicate values, and paste them to another place. See screenshot:
doc remove duplicates leave lowest 2

2. Then select the values in the pasted list, and click Data > Remove Duplicates, and check Continue with the current selection option from the popped out dialog. Click Remove Duplicates, then in the Remove Duplicates dialog, check the column you want to remove duplicates from. See screenshot:
doc remove duplicates leave lowest 3

3. Then click OK, and a dialog pops out to remind you how many duplicates have been removed, click OK to close it.
doc remove duplicates leave lowest 4

4. Select a cell next to the list you have removed the duplicates from, enter this formula =MIN(IF($A$2:$A$12=D2,$B$2:$B$12)), press Shift + Ctrl + Enter keys, and drag fill handle down to the cell you need. See screenshot:
doc remove duplicates leave lowest 5

Now all duplicates have been removed but the lowest values leaved in another column based on the duplicates.
doc remove duplicates leave lowest 6


1. If you want to remove all duplicates but leave the highest ones, you can apply this formula =MAX(IF($A$2:$A$12=D2,$B$2:$B$12)), remember to press Shift + Ctrl + Enter keys.

2. In the above formulas, A2:A12 is the original list you need to remove duplicates from.

If you have Kutools for Excel, you can quickly remove duplicates but only keep the lowest or highest value with its Advanced Combine Rows function.

Kutools for Excel, with more than 120 handy functions, makes your jobs easier.

After installing Kutools for Excel, please do as below:( Free Download Kutools for Excel Now!)

1. Before applying Kutools, you had better to have a copy of the original data. Then select the range cells you want to remove duplicates, and click Kutools > Content > Advanced Combine Rows. See screenshot:
doc remove duplicates leave lowest 7

2. In the Advanced Combine Rows dialog, select the column you want to remove duplicates from, and then click Primary Key to set it as primary key column, and then select the column you want to leave the lowest or highest values in, and click Calculate to select Min or Max as you need. See screenshot:
doc remove duplicates leave lowest 8

3. Click Ok, then the duplicate values have been deleted but keep the lowest one.
doc remove duplicates leave lowest 9

Tip.with Kutools for Excel’s Advanced Combine Rows, you also can remove duplicate values and then sum numbers in another column as below screenshot shown.If you want to have a free trial of the Extract Text function, please go to free download Kutools for Excel first, and then go to apply the operation according above steps.
doc remove duplicates leave lowest 10

Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
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.