#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Show Null As %0

Hello All:
I have two cells A1 and A2 . Am calculating Percentile in cell A2.
The input is Cell A1. Please don't get hung-up on the formula in
Cell A2. it works for what I am trying to do the problem is that 0 is
also calculated as %100 which is correct( we are capturing the number
of errors - so 0 error is %100 which is no error).

The Problem is that if cell A1 is null this also reads as %100 in A2,
which creates a problem. Is there any way to have the formula read
null as null, so the percentile reflect %0.

A1 = User input
A2 =(100-(D188*0.45))/100

Ardy

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Show Null As %0

Try this:

=((100-(A1*0.45))/100)*(A1<"")
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Ardy" wrote in message
ups.com...
Hello All:
I have two cells A1 and A2 . Am calculating Percentile in cell A2.
The input is Cell A1. Please don't get hung-up on the formula in
Cell A2. it works for what I am trying to do the problem is that 0 is
also calculated as %100 which is correct( we are capturing the number
of errors - so 0 error is %100 which is no error).

The Problem is that if cell A1 is null this also reads as %100 in A2,
which creates a problem. Is there any way to have the formula read
null as null, so the percentile reflect %0.

A1 = User input
A2 =(100-(D188*0.45))/100

Ardy


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Show Null As %0

One way:

=IF(A1="",0,1-D188*0.0045)

In article . com,
"Ardy" wrote:

Hello All:
I have two cells A1 and A2 . Am calculating Percentile in cell A2.
The input is Cell A1. Please don't get hung-up on the formula in
Cell A2. it works for what I am trying to do the problem is that 0 is
also calculated as %100 which is correct( we are capturing the number
of errors - so 0 error is %100 which is no error).

The Problem is that if cell A1 is null this also reads as %100 in A2,
which creates a problem. Is there any way to have the formula read
null as null, so the percentile reflect %0.

A1 = User input
A2 =(100-(D188*0.45))/100

Ardy

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Show Null As %0

Thnaks Both Method Works OK,
I used =((100-(K108*0.45))/100)*(K108<""), Could you explain
(K108<"") is this another way of saying IF null

Ardy
JE McGimpsey wrote:
One way:

=IF(A1="",0,1-D188*0.0045)

In article . com,
"Ardy" wrote:

Hello All:
I have two cells A1 and A2 . Am calculating Percentile in cell A2.
The input is Cell A1. Please don't get hung-up on the formula in
Cell A2. it works for what I am trying to do the problem is that 0 is
also calculated as %100 which is correct( we are capturing the number
of errors - so 0 error is %100 which is no error).

The Problem is that if cell A1 is null this also reads as %100 in A2,
which creates a problem. Is there any way to have the formula read
null as null, so the percentile reflect %0.

A1 = User input
A2 =(100-(D188*0.45))/100

Ardy


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Show Null As %0

Its just a Boolean factor. if K108 is blank, then the factor is zero and so
is the final result.
--
Gary's Student
gsnu200702


"Ardy" wrote:

Thnaks Both Method Works OK,
I used =((100-(K108*0.45))/100)*(K108<""), Could you explain
(K108<"") is this another way of saying IF null

Ardy
JE McGimpsey wrote:
One way:

=IF(A1="",0,1-D188*0.0045)

In article . com,
"Ardy" wrote:

Hello All:
I have two cells A1 and A2 . Am calculating Percentile in cell A2.
The input is Cell A1. Please don't get hung-up on the formula in
Cell A2. it works for what I am trying to do the problem is that 0 is
also calculated as %100 which is correct( we are capturing the number
of errors - so 0 error is %100 which is no error).

The Problem is that if cell A1 is null this also reads as %100 in A2,
which creates a problem. Is there any way to have the formula read
null as null, so the percentile reflect %0.

A1 = User input
A2 =(100-(D188*0.45))/100

Ardy





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Show Null As %0

The (K108<"") term evaluates to a boolean TRUE/FALSE. When TRUE/FALSE
is used in a math operation, here *, XL coerces TRUE/FALSE to 1/0. So if
the term evaluates to FALSE, the first term will be multiplied by zero,
otherwise it is multiplied by 1.

You could do the same thing with the formula I gave:

=(1-K108*0.0045)*(K108<"")


In article .com,
"Ardy" wrote:

Could you explain (K108<"") is this another way of saying IF null

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Show Null As %0

Thanks Guys......
It sure helps a lot.......
Ardy
JE McGimpsey wrote:
The (K108<"") term evaluates to a boolean TRUE/FALSE. When TRUE/FALSE
is used in a math operation, here *, XL coerces TRUE/FALSE to 1/0. So if
the term evaluates to FALSE, the first term will be multiplied by zero,
otherwise it is multiplied by 1.

You could do the same thing with the formula I gave:

=(1-K108*0.0045)*(K108<"")


In article .com,
"Ardy" wrote:

Could you explain (K108<"") is this another way of saying IF null


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
Macros Don't Show On Commands List and 'Normal.dot' SV Excel Worksheet Functions 3 December 13th 06 07:23 PM
How do I get items from sheet 3 to show up on sheet 1 and 2? HeidiG Excel Worksheet Functions 1 October 30th 06 05:57 PM
how show sum & avg same time in status bar? Ian Elliott Excel Discussion (Misc queries) 4 October 6th 06 11:00 PM
Preventing NULL showing as 0 on a pivot chart using Office Web Component. lk Charts and Charting in Excel 1 September 13th 05 01:00 PM
Show values from other sheet TONY Excel Worksheet Functions 0 August 31st 05 03:03 PM


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

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

About Us

"It's about Microsoft Excel"