Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Why does Conditional Formatting highlight "n/a" as a number?

I have written a formula that may return "n/a" or a number. If it is a
number, there are 3 conditional format colors that can occur if the number is
within 10%, etc from a specified target. If the formula brings back "n/a",
the cell is still turning a color as if it is 25% from the target. How do I
get the cell to have no highlight, since the value is "n/a"?
Thank you,
-Valerie
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Why does Conditional Formatting highlight "n/a" as a number?

In the formula that returns either a number or the "n/a",
if you use a text representation of it change it to NA() instead of "N/A"
Or use formula is in the conditional formatting and use

=AND(ISNUMBER(A1),your_criteria)

if you have a text n/a in the cell it will always be greater than any number
thus greater than
25% from the target

--


Regards,


Peo Sjoblom

"Valerie" <Valerie @discussions.microsoft.com wrote in message
...
I have written a formula that may return "n/a" or a number. If it is a
number, there are 3 conditional format colors that can occur if the number
is
within 10%, etc from a specified target. If the formula brings back
"n/a",
the cell is still turning a color as if it is 25% from the target. How do
I
get the cell to have no highlight, since the value is "n/a"?
Thank you,
-Valerie



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 79
Default Why does Conditional Formatting highlight "n/a" as a number?

Peo,
Condition #1 = IF Cell value is (greater than or equal to) (=h16*.25),
highlight it pink. I tried your edit to condition, but it remains pink. Any
other insight? The first solution did work but is not as clear as the second
one.
Thank you!
-Valerie

"Valerie" wrote:

I have written a formula that may return "n/a" or a number. If it is a
number, there are 3 conditional format colors that can occur if the number is
within 10%, etc from a specified target. If the formula brings back "n/a",
the cell is still turning a color as if it is 25% from the target. How do I
get the cell to have no highlight, since the value is "n/a"?
Thank you,
-Valerie

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Why does Conditional Formatting highlight "n/a" as a number?

You would need something like this, for the first condition change to
formula is instead of cell value
(you can't use cell value when there are multiple conditions)


=AND($E$16=$H$16*0.25,ISNUMBER($E$16))


where E16 is the cell that holds the conditional formatting

if you have multiple cells in the same column that needs this format
remove the dollar signs from everything but $H$16




--


Regards,


Peo Sjoblom

"Valerie" wrote in message
...
Peo,
Condition #1 = IF Cell value is (greater than or equal to) (=h16*.25),
highlight it pink. I tried your edit to condition, but it remains pink.
Any
other insight? The first solution did work but is not as clear as the
second
one.
Thank you!
-Valerie

"Valerie" wrote:

I have written a formula that may return "n/a" or a number. If it is a
number, there are 3 conditional format colors that can occur if the
number is
within 10%, etc from a specified target. If the formula brings back
"n/a",
the cell is still turning a color as if it is 25% from the target. How
do I
get the cell to have no highlight, since the value is "n/a"?
Thank you,
-Valerie



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 79
Default Why does Conditional Formatting highlight "n/a" as a number?

Peo,
I think the most recent solution you sent does not work because the cells
have 3 conditions on them (within 10%, 10%-25%, over 25%) to create 3 cell
highlights. I will use the NA() to keep it simple. It results in #NA in the
cell instead of just n/a but that is fine.
Thank you so much!

"Valerie" wrote:

I have written a formula that may return "n/a" or a number. If it is a
number, there are 3 conditional format colors that can occur if the number is
within 10%, etc from a specified target. If the formula brings back "n/a",
the cell is still turning a color as if it is 25% from the target. How do I
get the cell to have no highlight, since the value is "n/a"?
Thank you,
-Valerie



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Why does Conditional Formatting highlight "n/a" as a number?

I think the most recent solution you sent does not work
because the cells have 3 conditions on them (within 10%,
10%-25%, over 25%) to create 3 cell highlights.


I assume "within 10%" means from 0 to <10%. Do you want 0 to be highlighted?
Or, should it be 0 but <10% ?

Select the cell in question. Let's assume it's cell A1
Goto the menu FormatConditional Formatting
Condition 1
Select the Formula Is option
Enter this formula in the little box on the right:
=AND(COUNT(A1),A125%)
Click the Format button
Select the desired style(s)
OK
Click the Add button

Condition 2
Select the Formula Is option
Enter this formula in the little box on the right:
=AND(COUNT(A1),A1=10%)
Click the Format button
Select the desired style(s)
OK
Click the Add button

Condition 3
Select the Formula Is option
Enter this formula in the little box on the right:
=AND(COUNT(A1),A1=0)
Click the Format button
Select the desired style(s)
OK out

--
Biff
Microsoft Excel MVP


"Valerie" wrote in message
...
Peo,
I think the most recent solution you sent does not work because the cells
have 3 conditions on them (within 10%, 10%-25%, over 25%) to create 3 cell
highlights. I will use the NA() to keep it simple. It results in #NA in
the
cell instead of just n/a but that is fine.
Thank you so much!

"Valerie" wrote:

I have written a formula that may return "n/a" or a number. If it is a
number, there are 3 conditional format colors that can occur if the
number is
within 10%, etc from a specified target. If the formula brings back
"n/a",
the cell is still turning a color as if it is 25% from the target. How
do I
get the cell to have no highlight, since the value is "n/a"?
Thank you,
-Valerie



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
conditional formatting "if part of cell contents contains string" tom ossieur Excel Worksheet Functions 1 March 13th 07 11:11 AM
How do I set "tab" or "arrow" key to automatically highlight a cel Rhonda Excel Discussion (Misc queries) 1 October 2nd 06 05:58 PM
Conditional Formatting: "handwritten" circles? UWHusky Excel Discussion (Misc queries) 0 February 25th 06 12:27 AM
Conditional Formatting-can a "then" be placed with the "if". jhcoburn Excel Worksheet Functions 1 November 15th 05 08:14 PM


All times are GMT +1. The time now is 10:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"