Text Search

ADUNCAN

New Member
Joined
Oct 25, 2022
Messages
3
Office Version
  1. 365
Platform
  1. MacOS
Hello,

I'm trying to write a formula which identifies if a specific word is found within a sheet.
I have a cover sheet which needs to be able to identify if the work "REPLENISH" or "REPLACE is present in each of the other sheets within the document and return a "YES" or "NO". Is this possible? Most formulas I've found have only been able to search an individual cell rather than an area on the sheet or an entire sheet.

Thanks in advance.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Like this.

Book1
ABCDEFG
1
2Is "REPLENISH" there?REPLENISH
3Yes
4REPLACE
5Is "REPLACE" there?
6Yes
7
8
Sheet4
Cell Formulas
RangeFormula
A3A3=IF(COUNTIFS($C$1:$G$7,"*"&"REPLENISH"&"*")>0,"Yes","No")
A6A6=IF(COUNTIFS($C$1:$G$7,"*"&"REPLACE"&"*")>0,"Yes","No")
 
Upvote 0
Thank you!

Is there a way for the two words to be searched in the same formula, or do they have to remain separate?

Thanks!
 
Upvote 0
If just one of the words needs to be there, you can do this:

Excel Formula:
=IF(OR(COUNTIFS($C$1:$G$7,"*"&"REPLENISH"&"*")>0,COUNTIFS($C$1:$G$7,"*"&"REPLACE"&"*")>0),"Yes","No")

Or this:

Excel Formula:
=IF((COUNTIFS($C$1:$G$7,"*"&"REPLENISH"&"*")+COUNTIFS($C$1:$G$7,"*"&"REPLACE"&"*"))>0,"Yes","No")
 
Upvote 0
You can do this in one Countifs..
Use place the two words between curly brackets.
“*”&{…,…}&”*”
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,395
Members
449,081
Latest member
JAMES KECULAH

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