ISNUMBER SEARCH Help?

BrettOlbrys1

Board Regular
Joined
May 1, 2018
Messages
139
Office Version
  1. 365
Platform
  1. Windows
- Column A: list of 1,000 employee IDs
- Column B: list of job descriptions

I want to only return the list of employee IDs (from column A) that have a partial match in column B.

The matching words would be "North", "South", "West", "Central"

Using the sample data below, E564, E1, and E88 would be excluded, and the resulting list will be everyone else.

What formula is needed to accomplish this?

Sample Data:
Column AColumn B
E967Northeast Sales
E23Southwest Sales
E564Project Manager
E888West Sales
E234West Sales
E1President
E88Project Manager
E478Central Tech
E99Southeast PM
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Since you are using Excel 365, you can use the new "Filter" function to do this.

Here is your example, with the results in blue:
1719323694977.png


You would simply put this formula in cell D2, and it populates the rest of the columns/rows in columns D and E:
Excel Formula:
=FILTER(A2:B10,ISNUMBER(SEARCH("North",B2:B10))+ISNUMBER(SEARCH("South",B2:B10))+ISNUMBER(SEARCH("West",B2:B10))+ISNUMBER(SEARCH("Central",B2:B10)),"")
 
Upvote 0
One more option.
Book1
ABCDE
1IDRegion
2E967Northeast SalesE967Northeast Sales
3E23Southwest SalesE23Southwest Sales
4E564Project ManagerE888West Sales
5E888West SalesE234West Sales
6E234West SalesE478Central Tech
7E1PresidentE99Southeast PM
8E88Project Manager
9E478Central Tech
10E99Southeast PM
Sheet2
Cell Formulas
RangeFormula
D2:D7D2=UNIQUE(TOCOL(IFS(ISNUMBER(SEARCH({"North","South","Central","West"},B2:B10)),A2:A10),2))
E2:E7E2=XLOOKUP(D2#,A2:A10,B2:B10)
Dynamic array formulas.
 
Upvote 0
Another option
Excel Formula:
=FILTER(A2:B100,BYROW(ISNUMBER(SEARCH({"north","south","west","central"},B2:B100)),LAMBDA(br,SUM(--br))))
 
Upvote 0
And one more:
Book1
ABCDE
1Column AColumn B
2E967Northeast SalesE967Northeast Sales
3E23Southwest SalesE23Southwest Sales
4E564Project ManagerE888West Sales
5E888West SalesE234West Sales
6E234West SalesE478Central Tech
7E1PresidentE99Southeast PM
8E88Project Manager
9E478Central Tech
10E99Southeast PM
Sheet1
Cell Formulas
RangeFormula
D2:E7D2=FILTER(A2:B10,BYROW(IFERROR(SEARCH({"North","South","West","Central"},B2:B10),0),LAMBDA(x,SUM(x))))
Dynamic array formulas.
 
Upvote 0
And yet one more (somewhat short) formula...
Excel Formula:
=FILTER(A2:B10,LEN(TEXTAFTER(B2:B10&"x",{"north","east","south","west","central"},,1,,"")))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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