PC Review


Reply
Thread Tools Rate Thread

Conditionally formatting text and numbers differently

 
 
Albannach
Guest
Posts: n/a
 
      13th Jan 2010
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.
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      13th Jan 2010
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.



Albannach wrote:
>
> 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.


--

Dave Peterson
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditionally formatting numeric data and text differently Albannach Microsoft Excel Worksheet Functions 1 20th Jan 2010 02:18 AM
identify numbers and text differently in formula =?Utf-8?B?d2lkbWFu?= Microsoft Excel Misc 3 14th Nov 2006 04:28 PM
Formatting text differently on the same page =?Utf-8?B?QmV2ZXJseS1UZXhhcw==?= Microsoft Frontpage 1 23rd Oct 2005 07:03 PM
Conditionally Converting Text to Numbers in VBA Jon Microsoft Excel Misc 0 13th Oct 2004 10:02 AM
Conditionally Converting Text to Numbers in VBA Jon Microsoft Excel Misc 0 13th Oct 2004 09:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:02 PM.