condition check for multiple words

mwvirk

Board Regular
Joined
Mar 2, 2011
Messages
247
Office Version
  1. 2016
Platform
  1. Windows
hi

1- if a cell contains a specific text and if I want to change the cell format then it can be done for multiple words.
like in the attached picture, I want to see if the cell contains the word APL and then change the cell color. but is it possible for me can search multiple words using the single condition check?
I want to change the cell color if it contains 3 different words: APL ABC XYZ

2- if cell in range A contains only APL ABC XYZ then cell in range B show 100%


Untitled.jpg
 
try this:

Excel Formula:
=IF(A8="","",IF((ISNUMBER(FIND("APL",A8))
+ISNUMBER(FIND("ABC",A8))
+ISNUMBER(FIND("XYZ",A8)))>0,0.075,0.15))
(edited)
Essentially, wrap the percentage formula in an IF statement that leaves the cell blank (or a value of "") if there is nothing in the comparison value.
(or only copy the formula down the rows that have data in column A.).

I could not tell from your xl2bb paste what column the cells with the text are in. I'll let you adjust that as well as the text. I've given you the essential formula(s) you just need to plug in the correct cell and text references.
 
Last edited:
Upvote 1

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,215,079
Messages
6,123,009
Members
449,093
Latest member
ikke

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