Conditional formatting question

E

ericle2

I want a cell to be highlighted red if it contains the letter D AT
ALL. Not just highlighted if the cell ONLY has a D.

For Example: a cell that = "D 8/17" or "D 9/10" should be highlighted
red. The dates after the D will constantly be different, I just want
any cells with the capital letter D in them to be filled in w/red.

Any ideas on how to do this? Conditional formatting only allows me to
fill the cell with red if it equals JUST D. Not D + random date. Any
help is much appreciated, thanks!
 
T

T. Valko

Try this:

Select the cell in question. Assume it's cell A1.
Goto the menu Format>Conditional Formatting
Formula Is: =COUNT(FIND("D",A1))
Click the Format button
Select the style(s) desired
OK out
 
K

kassie

In conditional formatting, select Formula is, not Cell value is.

Insert the following: =Left(<Cell Addr>,1)="D", eg =LEFT(A1,1),"D". Select
Format, Patterns and Red.

Should you then put a D in A1, or Dummy, or Date, or D 8/17, the cell will
turn red.
 
E

ericle2

One way:

CF: Formula Is =COUNTIF(A1,"*D*")
Format: <pattern>/<color>





- Show quoted text -

When I enter that -- it colors the cell if its EMPTY rather than if it
has any D's....am i missing something?
 
J

JE McGimpsey

Yes, you must be missing something, but I have no idea what. Did you use
the cell reference for the active cell when you entered your CF?
 

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