ExcelTip.com
ExcelTip.com
Account Icon Account Icon Account Icon
Google Exceltip.com
JOIN OUR NEWSLETTER
  and receive for joining:
Free eBook Learn More!
Free Excel ADD-IN
Free Weekly Excel Tip
4 e-books in cd-rom
F1 Formulas & Functions
F1 Formulas & Functions
F1 EXCEL
F1 eBook (Spanish)
F1 EXCEL
Financial Statements.xls
 

» Checking For Duplicate Values Within A Range
Problem:

Columns A & B contain two lists of values.
We want to create a formula that will check whether there is any duplication of values within either list (blank cells are to be ignored).

Solution:

Use the COUNTA, SUMPRODUCT, and COUNTIF functions as shown in the following formula:
=IF(COUNTA(A2:A7)=SUMPRODUCT((A2:A7<>"")/COUNTIF(A2:A7,A2:A7&"")),"No Duplicates","Duplicates")
The formula will return "Duplicates" if the list contains duplicate values, otherwise it will return "No Duplicates".



List1____List2
1________1
2
3________B
A________2
________3
1________4


Screenshot // Checking For Duplicate Values Within A Range

Checking For Duplicate Values Within A Range
Rate this tip
12 34 5
  RATING: 2.96
  VIEWS: 27675

READER COMMENTS (view all comments)


Turn off looking for linked spreadsheets
DHeacock wrote on May 26, 2005 10:44 EST
I frequently open sheets sent to me from our field office that have multiple links to sheets located there only.
I must click on the box seeking these sheets several times for each spreadsheet that I open. I would like this turned off.
How do I do it?
Text to columns
DHeacock wrote on May 26, 2005 10:47 EST
I download data from a DB into excel and then convert text to columns.
Some of the well data goes into the proper columns but most don't and usually inserts unwanted columns (in the middle of data) that I have to manually remove.
Since I do this every day, can I control the columns so all the wells make the columns properly?
Reply: DHeacock
Alan wrote on May 29, 2005 23:57 EST
Hi DHeacock,

[QUOTE=DHeacock]I frequently open sheets sent to me from our field office that have multiple links to sheets located there only.
I must click on the box seeking these sheets several times for each spreadsheet that I open. I would like this turned off.
How do I do it?[/QUOTE]You should only get that message once upon opening each workbook, but you say that it is happening multiple times for each one?

You could use code to open them without updating links, but to be honest, I find it hard to believe that it is worth the effort - easier just to press 'N' each time you open a workbook.

HTH, but if not, post back and we'll help with the code option, but I seriously doubt the effort is worthwhile for you,

Alan.
Reply: DHeacock
Alan wrote on May 29, 2005 23:59 EST
Hi DHeacock,

[QUOTE=DHeacock]I download data from a DB into excel and then convert text to columns.
Some of the well data goes into the proper columns but most don't and usually inserts unwanted columns (in the middle of data) that I have to manually remove.
Since I do this every day, can I control the columns so all the wells make the columns properly?[/QUOTE]How are you downloading the data? Are you using MS Query? Also what do you mean by 'wells'?

Thanks,

Alan.
AMAZING FORMULA
MAJID JALALI wrote on June 03, 2005 03:55 EST
Really exciltip.com is one the best websit in application software this is GOD GIFT FOR ME and I m thankfull my
God ..........................
Duplicate Entries
Victoria wrote on December 31, 1969 19:00 EST
Hi. I use excel to hold lists of phone numbers for telemarketing. I'm currently using the semi-manual way of CTRL F to find duplicate numbers.
I've been told that there is a formula you can set up that will detect and highlight duplicate entries within a specified column. I was wondering what is the formula, and how do i set it up?
Thanks
Victoria
New Records Entry indentification?
BHARATHBOSS wrote on June 22, 2006 10:33 EST
Hi,

Please help me with the problem.

I get a list of new records everyday in the morning.
that gets updated automatically from the last saved record.

How do i identify the fresh record set

thanks

bharath

SSP wrote on December 31, 1969 19:00 EST
In exceltip.com i found many solution of my problems

Thanx excel tip...

Regard
SS Patel
Locate and Mark Duplicate Entry
Tom Read wrote on December 31, 1969 19:00 EST
I have a list of business names with duplicate business names within the list. I would like to instruct excel to identify those listings which are the same as another without any prompting of what to look for. For example if BHP PTY LTD appears on line A200 and also on A5078 I would like to make those duplicates with true, duplicate or some other refference.
duplicate values
jciii_uy wrote on February 08, 2007 11:08 EST
Columns A:B contain two lists of values.
How could we create a formula that will check whether each of the lists contains duplicate values (disregarding blanks)?

My Question is...

After determining that there are duplicates, can we make a colorcoding of the items found to be duplicate especially if we are talking of voluminous items?

thank you and best regards.

sincerely,

jC

EXCELTIPS is the best....

oldchippy wrote on February 09, 2007 17:53 EST
Take a look at this link, it may help

[url]http://www.j-walk.com/ss/excel/usertips/tip073.htm[/url]



REGISTERED USERS - Click here to post comments


GUESTS (Click here to register)
Name
Comment Title
Comments

Yes, You Can Time the Market!

Rich Dad's Guide to Investing: What the Rich Invest in, That the Poor and the Middle Class Do Not!

The 22 Immutable Laws of Branding

The Interpretation of Financial Statements

Microsoft Outlook 2002 for Dummies

VBA for Modelers: Developing Decision Support Systems Using Microsoft« Excel

RELATED MICROSOFT EXCEL TIPS


Convert PDF Files to Excel






Excel VBA books
Accounting books
Business Plans
MS Office books
Taxes books

VIEW ALL BOOKS


  Advertise With Us                               

Tips

Add-In in VBA | Applications - Word, Outlook in VBA | Array Formulas | Cells, Ranges, Rows, and Columns in VBA | Counting | Custom Functions | Custom Functions in VBA | Database Formulas | Database in VBA | Date & Time Formulas | Date & Time in VBA | Events in VBA | Excel 2003 | Excel Chart | Excel Consolidating | Excel Counting | Excel Custom Functions using VBA | Excel Customizing | Excel Data | Excel Dates | Excel Editing | Excel Files | Excel Filter | Excel Format | Excel Formula | Excel General | Excel Grouping and Outlining | Excel Importing Text Files | Excel Information | Excel Keyboard Shortcuts | Excel Loan Formulas | Excel Macros - VBA | Excel Pivot Tables | Excel Printing | Excel Range Name | Excel Security - Protection | Excel Sorting | Excel Style | Excel Subtotals | Excel Summing | Excel Text | Excel Time | Excel Tools | Excel Worksheet, Workbook | Files, Workbook, and Worksheets in VBA | Financial Formulas | Formating in VBA | General Topics in VBA | Import and Export in VBA | Information Formulas | Keyboard & Other Shortcuts in VBA | Keyboard Formula Shortcuts | Links between Worksheet and Workbooks | Links in VBA | Logical Formulas | Lookup Formulas | Mail - Send and Receive in VBA | Menus, Toolbars, Status bar in VBA | Modules, Class Modules in VBA | Other Q&A Formulas | Printing in VBA | Protecting in VBA | Summing | Text Formulas | User Forms, Input boxes in VBA | Using Loops | Working with Formulas |

Tips by Version

Microsoft Excel 97 | Microsoft Excel 2000 | Microsoft Excel 2002 | All Microsoft Excel Versions | New in Excel 2002 | New in Excel 2003 - Office 11

Website

Home | Tip of Hour | Recommended Tips | Most Viewed Tips | Tips by Version | Submit a Tip | My Tips
Microsoft Excel Tutorials | Excel Links | Write for Us | About Us | Search Results | Tip Archives | Excel Forum | Excel Forum Archives

Excel Book

Excel 97 Book | Excel 2000 Book | Excel 2002 Book | Excel XP Book | Book Store

Terms and Conditions of use
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Copyright © 2003 ExcelTip.com
Microsoft, Microsoft Excel is a U.S. registered trademark of Microsoft Corporation
Site Developed By: Varien