Conditional cell color.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have used conditional formatting before in order to change the shading of a cell based on the cell value. However, I would like to do the same except have the color change based only on the alpha part of an alphanumeric value. Example: change shading to blue if the alpha = F, and change to yellow if = P (as in: F2409 & P1982).

Thank you.
 
Geza, use this formula: =SEARCH("f",A1). If you want it to be
case-sensitive, use =FIND("F",A1). You know how to do the rest...

--
DDM
"DDM's Microsoft Office Tips and Tricks"
Visit us at www.ddmcomputing.com


geza said:
I have used conditional formatting before in order to change the shading
of a cell based on the cell value. However, I would like to do the same
except have the color change based only on the alpha part of an alphanumeric
value. Example: change shading to blue if the alpha = F, and change to
yellow if = P (as in: F2409 & P1982).
 
Under conditional formatting use Formula Is and use the
formula: =Left(A1,1)="F" then set the format color.
Create a second condition for P.

JC
-----Original Message-----
I have used conditional formatting before in order to
change the shading of a cell based on the cell value.
However, I would like to do the same except have the
color change based only on the alpha part of an
alphanumeric value. Example: change shading to blue if
the alpha = F, and change to yellow if = P (as in: F2409
& P1982).
 

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

Back
Top