Identifying companies with multiple email domains

DaRTH KiRo

New Member
Joined
Jan 24, 2018
Messages
39
Office Version
  1. 2016
Platform
  1. Windows
I have company IDs listed out and repeated in column A, and in column M, I have email domains. Some email domains may be repeated but some companies may have multiple domains for a single company ID. I need to identify the company IDs in column A that have multiple email domains in column M. In the end, I need to identify and remove additional company email domains so that we only have one domain per company. I was unable to come up with anything useful when googling so I was curious if you all could help.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hello DARTH KiRo,
try this...
Insert this formula "=COUNTIFS(A2:$A$10000;A2)" to "N2", set number of max rows in the formula, fill down rows.
After that apply filter over column "N" with criteria "Greater then 1" and delete filtered rows.
In a case you have duplicate ID, apply "Remove duplicates".
 
Upvote 0
Hello DARTH KiRo,
try this...
Insert this formula "=COUNTIFS(A2:$A$10000;A2)" to "N2", set number of max rows in the formula, fill down rows.
After that apply filter over column "N" with criteria "Greater then 1" and delete filtered rows.
In a case you have duplicate ID, apply "Remove duplicates".
Each line designates an email address, from column I, and I do need all of those so I cannot remove duplicates. I just need to identify companies with more than one domain name. Please see my example below. I would want Company2 to be highlighted so I know there is more than one domain name for that company.


Column AColumn IColumn M
Company1AB@company1.comcompany1.com
Company1BC@company1.comcompany1.com
Company1CD@company1.comcompany1.com
Company2DE@company2.comcompany2.com
Company2EF@difcompany.comdifcompany.com
Company3FG@company3.comcompany3.com
 
Upvote 0
Upvote 0
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
How about
+Fluff 1.xlsm
ABCDEFGHIJKLM
1Column AColumn IColumn M
2Company1AB@company1.comcompany1.com
3Company1BC@company1.comcompany1.com
4Company1CD@company1.comcompany1.com
5Company2DE@company2.comcompany2.com
6Company2EF@difcompany.comdifcompany.com
7Company3FG@company3.comcompany3.com
8
9
10
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A10Expression=COUNTIFS($A$2:$A$10,A2,$M$2:$M$10,"<>"&M2)>0textNO
I have been toying around with NOT(ISBLANK) to add to the expression you gave me so that it does not count blank cells in column M. I have not had luck, I tried adding it to the front but it only highlights everything and when I add around M range it errors. Is this something that is possible?
 
Upvote 0
How about
Excel Formula:
=AND(M2<>"",COUNTIFS($A$2:$A$10,A2,$M$2:$M$10,"<>"&M2,$M$2:$M$10,"<>")>0)
 
Upvote 0
Solution
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,208
Members
452,618
Latest member
Tam84

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