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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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
Thank you. I realized I have some uppercase text which above is not catching. How can I also flag those?
 
Upvote 0
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,214,591
Messages
6,120,424
Members
448,961
Latest member
nzskater

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