Getting Duplicates identified, return value "duplicate" across multiple columns.

Viau1337

New Member
Joined
Jul 26, 2022
Messages
13
Office Version
  1. 365
Platform
  1. Windows
I'm presently working on a sheet where i want to test value of left cell against a range of data also found on the left side of it and mark it as duplicate if it is found within that range.

I managed to get it working for the first column, however when i try to apply again in a new column, it marks everything as a duplicate.

The formula I'm using in F column is =IF(COUNTIF($E$2:$E2, $E2)>1, "Duplicate", "")
Screenshot_20220727-174146_Messenger.jpg

Then in column g i run something that will only run if cell on immediate left is not blank.
Screenshot_20220727-174116_Messenger.jpg

Then, i want to run my formula again, in h, to test if there are duplicates again.
Screenshot_20220727-174102_Messenger.jpg

Formula used is
=IF(COUNTIF($E$2:$G2, $G2)>1, "Duplicate", "")

However, said formula returns false duplicates , I think its seeing the empty fields as duplicates?
Also i noticed that it doesn't mark duplicates either or only some of them..

Any idea?

Cheers
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
It's not the empty fields, I just don't think COUNTIF works that way (across multiple columns). You can try creating a helper column to concatenate all of the cells in each row and then use a COUNTIF against that helper value within that column, or perhaps something like this SUMPRODUCT formula:

=IF(SUMPRODUCT(($E$2:$E2=E2)*($F$2:$F2=F2)*($G$2:$G2=G2))>1,"Duplicate","")
 
Upvote 0
Solution

Forum statistics

Threads
1,215,563
Messages
6,125,560
Members
449,237
Latest member
Chase S

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top