Can you have the "IF" function look for several words?

BJIII

New Member
Joined
Nov 8, 2010
Messages
26
I would like an IF function to look for the following words. If it find them I want it to report true and then I can set the action I need. If false then I can set the opposite. Is there a way to get the IF function to recognise several words? I can set it to look for a specific word but not multiple.

Burr
Circularity
Concentricity
Flatness
Hardness
Profile
Roundness
Roughness
Straightness
True Position

Thanks!
BJW
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Try something like this:

=COUNTIF(A1:A10,"Roundness")>0

Change the range reference to suit and the text "Roundness" can also be a cell reference.
 
Upvote 0
I would like an IF function to look for the following words. If it find them I want it to report true and then I can set the action I need. If false then I can set the opposite. Is there a way to get the IF function to recognise several words? I can set it to look for a specific word but not multiple.

Burr
Circularity
Concentricity
Flatness
Hardness
Profile
Roundness
Roughness
Straightness
True Position

Thanks!
BJW
=LOOKUP(9.99999999999999E+307,SEARCH(WordList,A2))>0

where WordList is a range housing the words of interest.
 
Upvote 0
If you put your list of words in a range of cells, say B1:B10
And A1 is the cell you want to check..

=IF(COUNTIF($B$1:$B$10,A1)>0,"Yes","No")


Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

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