How to find duplicate values in two columns in Excel using formula

Let’s say you have two lists of values in Excel and want to find out all the common values (ie duplicates) and extract them. In this article, let me explain the formulas for this. Formula for counting number of duplicate values in two columns: Here is the formula to count number of common values between […]
Find out if a number has repetitive digits [formula homework]
Time for a quick formula finesse check. Let’s say you have a number in A1. What formula can you use to find out if it has duplicate digits.
For example, if A1 has 123405, then answer should be FALSE
and if A1 has 123455, then answer should be TRUE
Go ahead and post your answers (formulas, VBA or M script) in the comments section.
Check if 2 ranges have same values (set equality problem)
Hello folks,
Time for another homework problem. Assuming you have 2 ranges of values like below, how do you check if both of them have same set of values?
Compare 2 sets of data by letter or word & highlight mismatches [vba]
We analysts like to compare. If you ever want to keep an analyst busy, just give her 2-3 options. She won’t return to your desk until the cows come home. My wife uses this trick all the time. Picture this:
[In late 2013]
Me: I want to buy a new phone
She: Do you want Nexus 5 or Galaxy S5 or iPhone 5s?
Its late 2014 and I am not done comparing.
So today, let’s talk about an interesting comparison scenario.
Comparing by letter or word
See above demo to understand the concept. Read more to learn how to do this.
Distinct Count & Blanks – Power Pivot Real Life Example
When it comes to analyzing business data, managers are always asking, “so how many distinct x each y is doing?”
And that sends us, data analysts & reporting professionals running from pillar to post figuring out the best way to do it.
- We can use variations of SUMPRODUCT, COUNTIFS etc, but the methods are not flexible..
- We can use VBA, but it would become slow as you add more data.
- We can use Pivot tables, but it only gives half of what we want ie each y part, but not distinct count of x.
- We might as well shave our head with a shovel before manually counting values.
And that brings us to 2 distinctly simple solutions:
- Using Power Pivot & Excel 2010
- Using regular pivot tables in Excel 2013
Today, lets talk about these 2 approaches & see why they are so better than anything else for distinct count situations.
How many values are common in 2 lists? [homework]
Here is a formula challenge for you. Lets say we have 2 lists of values in A1:A10 & B1:B10 Now, how do you find the number of common values in both lists? We just want the count, not list of common values it self. Go ahead and figure out the formula and post your answers […]
Check if a list has duplicate numbers [Quick tip]
A while ago (well more than 3 years ago), I wrote about an array formula based technique to check if a list of values have any duplicates in them.
Today, lets learn a simpler formula to check if a list has duplicate numbers.
Assuming you have some numbers in a range B4:B10 as shown below, we can use MODE + COUNTIF formulas to check if there are any duplicate values in a list.