Find where cell does not contain specific text

ywmpp

New Member
Joined
Jul 22, 2014
Messages
16
I have a list of email addresses and I want to find all that are not a particular company's--so I can remove any external e-mail addresses

e.g. find all that do not contain @acme.com

Appreciate your help.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
68,095
Office Version
  1. 365
Platform
  1. Windows
If you use the following formula on them:
Code:
=IFERROR(FIND("acme.com",A1),"not found")
each row that returns "not found" will be the ones that you want.
So you can sort or filter that column to get just the ones you want to return.
 
Upvote 0

ywmpp

New Member
Joined
Jul 22, 2014
Messages
16
Thank you. I realized I have some uppercase text which above is not catching. How can I also flag those?
 
Upvote 0

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
68,095
Office Version
  1. 365
Platform
  1. Windows
Just convert it all to Lower case text within your function for comparison purposes, i.e.
Code:
=IFERROR(FIND("acme.com",LOWER(A1)),"not found")

or use the SEARCH function which is not case sensitive:
Code:
=IFERROR(SEARCH("acme.com",A1),"not found")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,195,838
Messages
6,011,891
Members
441,652
Latest member
FuelGuy

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
Top