Conditional Formatting with text

E

excelmedia

Hello

This maybe really simple...but here goes.....

I need to change the format of either the cell or the row within
table only if the cell contains the text "ball". Now the cells woul
have a whole phrase like "the ball is red" . But as long as it has th
word ball I need it highlighted.

Please help

:
 
B

Bob Phillips

You need to have a condition of FormulaIs, and a formula of
=NOT(ISERROR(FIND("ball",A1)>0)). Just set the pattern colour and you are
away.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
F

Frank Kabel

Bob said:
You need to have a condition of FormulaIs, and a formula of
=NOT(ISERROR(FIND("ball",A1)>0)). Just set the pattern colour and you
are away.

Hi Bob
or a small simplification :)
=NOT(ISERROR(FIND("ball",A1)))

Frank
 
G

Gord Dibben

Select the cell(s) or row(s) to format.

Format>CF>Formula is: =IF(COUNTIF(A1:A1,"*ball*"))

Pick a color from Format>Patterns and OK.

Gord Dibben Excel MVP
 
B

Bob Phillips

Gord,

As John shows, you don't need the IF, as it can only return 0 or 1, Excel
False or True

Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top