Conditional Formatting

W

watermt

I'm attempting to do some conditional formatting on text. I need to
highlight cells that contain the word missing and also any cells that were
left blank.

is this possible?
 
K

Kevin B

Select the cells you want to assign conditional formatting to and click
FORMAT in the menu and select CONDITIONAL FORMATTING:

Drop down the options in the CONDITION 1 combo box and select FORMULA IS

In the text box to the right enter the following formula, replacing A1 with
the currently active cell in your selected range:

=OR(A1="",A1="missing")

Click the format button and then select the formats you want to apply and
click OK twice to exit back to the worksheet
 
P

Pete_UK

Highlight all the cells you want this to apply to (assume the first of
these is A1), then click on Format | Conditional Formatting and in the
dialogue box choose Formula Is rather than Cell Value Is in the first
box. Enter this formula in the next box:

=OR(A1="",ISNUMBER(SEARCH("missing",A1)))

Click on the format button and the Patterns Tab to choose your
highlight colour. Click OK (twice) to apply these settings - Excel
will automatically adjust the cell references to suit your selected
cells, but if your first cell was not A1 then you will have to make
the appropriate changes to the formula I gave you.

Hope this helps.

Pete
 
R

RagDyeR

In Conditional Formatting, select "Formula Is", and try this:

=OR(A1="",COUNTIF(A1,"*missing*")>0)

Assumes "missing" may be combined with other text in the same cell.
--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

I'm attempting to do some conditional formatting on text. I need to
highlight cells that contain the word missing and also any cells that were
left blank.

is this possible?
 
W

watermt

I tried your suggestion and my conditional formatting ended up being applied
to every cell in the range. Thanks for the reply though!
 
W

watermt

Kevin,
I went back and double checked your suggestion and realized that I had not
"cleared" my previous attempt at applying conditional formatting, so this is
why your suggestion dsiplayed all cells formatted. I corrected this and
still had a problem, only the cells labeld missing were formatted and your
formula overlooked the blank cells.

Mike
 

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