Removing Duplicates at a Reduced Precision Level

Written by Allen Wyatt (last updated September 10, 2022)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021


Tanya has a worksheet that contains registration data for her company. One of the data columns indicates the results of a formula derived from equipment registration measurements. The data is precise out to 5 decimal places, though the format shows only 2 decimal places on-screen. Tanya would like to remove duplicate rows where, at 2 decimal places, the data is identical. She knows she could use the Remove Duplicates tool, but it compares out to 5 decimal places instead of just the 2 decimal places she desires. So, Tanya is searching for the easiest way to remove the duplicates.

The simplest approach is to modify the formula that shows the results in your column—simply wrap the existing formula in the ROUND function. For instance, let's say that the existing formula is very simple, such as =A1+B1. To wrap this existing formula in the ROUND function, you would change the formula to this:

=ROUND(A1+B1,2)

This rounds the results of your formula to 2 decimal places, which matches what you are displaying on-screen. You can now use the Remove Duplicates tool to get rid of the data you don't need.

If you prefer to use a helper column (so you don't modify the original formula), the formula in the helper column would be this, assuming the original five-decimal-place formula is in column D:

=ROUND(D1,2)

One you remove the duplicates based on the helper column, you could then delete the helper column as it is no longer needed.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (12972) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Seeing Excel's Program Window

Have you ever opened Excel to find that the window you saw yesterday is not the same as it is today? Sometimes, for ...

Discover More

Making Banners in Word

Word can be used for printing a variety of document types. You may want to use the program to print a festive banner for ...

Discover More

Double-Spacing Your Document

Need to produce a quick double-spaced printout of your document? You can do it by using the simple steps in this tip.

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Understanding Scope for Named Ranges

When you add a named range to a worksheet, you can specify if you want that named range to apply to the workbook or only ...

Discover More

Averaging Based on Multiple Criteria

When you need to determine an average based on a very small selection of cells from a large dataset, based on multiple ...

Discover More

Identifying Digit-Only Part Numbers Excluding Special Characters

When working with data in Excel, you often need to determine if that data meets criteria that you specify. This tip ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is one less than 9?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.