Conditionally formatting text and numbers differently

A

Albannach

I am trying to do conditional formatting on cells in Excel 2007 such that if
they contain numeric data, they will be formatted in one font, style, and
size, and if they contain text (e.g. "Out of range"), another combination.
The nearest I can find is to format specific text, but even when I enter the
possible text entries, the system will allow me to change only style,
underline, color, and strikethrough, but not font or size. And even then, I
can see no way to format numeric data and text differently, or to do so
without specifying the text itself.
 
D

Dave Peterson

If A1 is the activecell, you can use a formula like:
=isnumber(a1)
to determine if the value in A1 is a number.

You can use
=istext(a1)
to determine if the value in A1 is text.
 

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