Formula to search row of semicolon separated values against a list

Atreust

New Member
Joined
Sep 19, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi there,

I have a list of email addresses that are owners of SP sites. Some are single email addresses, some are multiple and separated by a semicolon, and some are blank. I have a list of active personnel in another row (each email address has it's own cell in the row, there are just under 1000) that I'd like to compare to the list of owners. When it matches active personnel, I'd like to delete the row so that we can identify orphaned groups. I had a formula that worked for the cells with only one email address, but it didn't work when there are multiple.

Thanks in advance.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
@Atreust , Welcome to the forum.

You will get a faster response if you provide some examples of your data (anonymized).
Mr. Excel forum has a tool, xl2bb add in (link below) which allows you to copy and paste mini worksheets into a post. If you are unable to do that then you can also post your data as a table.

Thanks in advance for helping the forum help you!
 
Upvote 0
Thank you! I'm looking to add a formula in the Keep/Delete column. If there is one of the Current Personnel (Column C) in the Owners column, then I'd like Column B to read Delete. If the owners column is blank or there are no Current Personnel, then I'd like it to read Keep.


Hopefully this makes sense.
 
Upvote 0
try this:

Mr excel questions 60.xlsm
ABCDEF
1OwnersKeep/DeleteCurrent Personnel
2john@gmail.com; jason@gmail.com; sarah@gmail.comDeleteDeletejason@gmail.com
3matt@hotmail.comDeleteDeletesarah@gmail.com
4KeepKeepmatt@hotmail.com
5sarah@gmail.comDeleteDeletegreg@gmail.com
6john@gmail.comKeepKeepnatalie@hotmail.com
7leslie@hotmail.com; jack@gmail.comKeepKeep
Atreust
Cell Formulas
RangeFormula
B2:B7B2=IF(SUM((--(ISNUMBER(FIND($E$2:$E$6,A2)))))>0,"Delete","Keep")
 
Upvote 0
try this:

Mr excel questions 60.xlsm
ABCDEF
1OwnersKeep/DeleteCurrent Personnel
2john@gmail.com; jason@gmail.com; sarah@gmail.comDeleteDeletejason@gmail.com
3matt@hotmail.comDeleteDeletesarah@gmail.com
4KeepKeepmatt@hotmail.com
5sarah@gmail.comDeleteDeletegreg@gmail.com
6john@gmail.comKeepKeepnatalie@hotmail.com
7leslie@hotmail.com; jack@gmail.comKeepKeep
Atreust
Cell Formulas
RangeFormula
B2:B7B2=IF(SUM((--(ISNUMBER(FIND($E$2:$E$6,A2)))))>0,"Delete","Keep")
Thank you very much! This worked aside from one issue. Is there a way to make it so it is not case sensitive? Our email format usually has FirstnameLastname@gmail.com but some in this list are firstnamelastname@gmail.com and they are reading incorrectly.

Thanks again.
 
Upvote 0
try:

Excel Formula:
=IF(SUM((--(ISNUMBER(FIND(UPPER($E$2:$E$6),UPPER(A2))))))>0,"Delete","Keep")
 
Upvote 1
Solution
I am happy you found a solution!
Best Wishes!
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,974
Members
449,095
Latest member
Mr Hughes

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