Finding duplicate names

Gordon1963

New Member
Joined
Oct 18, 2017
Messages
18
I have a worksheet and there are company names we shouldn’t process. I have an exceptional list with those company names, so if those names appear in my worksheet, highlight those companies. Here is a sample

Exception list. New List
Lee Company. Pace
Legacy. LCMH
Abc. LCMH
LCMH. Lee Company
Legal Sea

From the example, LCMH should be highlighted twice and Lee Company once. These two companies should also be highlighted on the exception list. There will be approximately 500 exception companies and thousands on the list group. I tried Conditional formatting and if a company appears in the second column more than once, it highlighted it once.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
not clear
2nd column ?

which one of them is NOT highlighted ?

it maybe a countif( $A$1:A1 , A1)>1
is needed , so the 1st count of 1 is ignored
but NOT sure

i'm NOT really following what your expected results are or you data structure
Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0
I tried Conditional formatting and if a company appears in the second column more than once, it highlighted it once.
You used the wrong formula.

Just highlighting doesn't stop the entries from further processing. So it would be better to use a helper column.
Excel Formula:
COUNTIFS(Exception_List,Entry_in_new_list)
 
Upvote 0
not clear
2nd column ?

which one of them is NOT highlighted ?

it maybe a countif( $A$1:A1 , A1)>1
is needed , so the 1st count of 1 is ignored
but NOT sure

i'm NOT really following what your expected results are or you data structure
Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
Hoping this helps
 
Upvote 0
Try:
Book1
AB
1Exception listNewlist
2Lee CompanyPace
3LegacyLCMH
4AbcLCMH
5LCMHLee Company
6LegalSea
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:B6Expression=COUNTIF($A$2:$A$6,B2)>0textNO
A2:A6Expression=COUNTIF($B$2:$B$6,A2)>0textNO
 
Upvote 0
I have a worksheet and there are company names we shouldn’t process. I have an exceptional list with those company names, so if those names appear in my worksheet, highlight those companies. Here is a sample

Exception list. New List
Lee Company. Pace
Legacy. LCMH
Abc. LCMH
LCMH. Lee Company
Legal Sea

From the example, LCMH should be highlighted twice and Lee Company once. These two companies should also be highlighted on the exception list. There will be approximately 500 exception companies and thousands on the list group. I tried Conditional formatting and if a company appears in the second column more than once, it highlighted it once.

I have a worksheet and there are company names we shouldn’t process. I have an exceptional list with those company names, so if those names appear in my worksheet, highlight those companies. Here is a sample

Exception list. New List
Lee Company. Pace
Legacy. LCMH
Abc. LCMH
LCMH. Lee Company
Legal Sea

From the example, LCMH should be highlighted twice and Lee Company once. These two companies should also be highlighted on the exception list. There will be approximately 500 exception companies and thousands on the list group. I tried Conditional formatting and if a company appears in the second column more than once, it highlighted it once.

Column A is the master list. There are no repeat companies in column A. Column B will have company names from column A. These are the companies that should be highlighted. See example above. There are 2 companies in column A highlighted because they appear in column B, however 777DUP appears twice and ABILENE CHRISTIAN UNV also shows up twice so if they had appeared 10 times in column B, they should be highlighted. I tried using Conditional Formatting, but it’s not working the way I have it highlighted now.

1715901094058.png
 
Upvote 0
Column A is the master list. There are no repeat companies in column A. Column B will have company names from column A. These are the companies that should be highlighted. See example above. There are 2 companies in column A highlighted because they appear in column B, however 777DUP appears twice and ABILENE CHRISTIAN UNV also shows up twice so if they had appeared 10 times in column B, they should be highlighted. I tried using Conditional Formatting, but it’s not working the way I have it highlighted now.



Let me see if I can explain another way. Basically twice per week we ran a report with about 3000 company (column 2). In column 1 we have a master list with 500 companies that we are restricted to work on. So we have to make sure that column 1 companies does not show up in column 2. However since we ran this report twice per week, column 1 might have sent us multiple files, so their name would show up as many times that they sent a file. With that said , those companies need to be highlighted in column 2 so we can remove them. So I need to somehow find all companies in column 2 that is a part of the exception list column 1, highlight them and then delete them from the list. Deletion I would want to do it manually.

What ever method conditional formatting or formulas you see is more feasible.
 
Upvote 0
Try:
Book1
AB
1Exception listNewlist
2Lee CompanyPace
3LegacyLCMH
4AbcLCMH
5LCMHLee Company
6LegalSea
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:B6Expression=COUNTIF($A$2:$A$6,B2)>0textNO
A2:A6Expression=COUNTIF($B$2:$B$6,A2)>0textNO


Cubist - Can you explain on setting up the formula. Looking at it, I’m confused
 
Upvote 0

Forum statistics

Threads
1,223,901
Messages
6,175,277
Members
452,629
Latest member
SahilPolekar

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