if A1=Null and B1=A1 why is result in B1=0 ??

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

Guest

if A1=Null and B1=A1 why is result in B1=0 ??
because of this I get wrong result for average calculations: average for
(6,8,0) <> average for (6,8,null)
 
Use

=IF(A1="","",A1)

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Use this in B1.........

=IF(OR(A1=0,A1=""),"",A1)

Vaya con Dios,
Chuck, CABGx3
 
A formula must return something. Since Excel has no null value
(long-standing complaint) that the formula can return, it is coerced to
zero. As others have noted, you can use an =IF() formula to handle this
situation and "" will look blank and be ignored by range functions such
as AVERAGE(), etc. Unfortunately it will create an error with binary
operators such as +-*/ and will plot as zero. #N/A or equivalently NA()
will not plot, but will be propagated through formulas. Many answers,
depending on what you want to do with it.

Jerry
 

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

Similar Threads


Back
Top