WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Equal to zero ... or not equal to zero

 
   Home -> Office -> General Protection Fault Errors RSS
Next:  General Protection Fault Errors: Significant Loss of Functionality  
Author Message
Allllen

External


Since: Jun 06, 2006
Posts: 178



(Msg. 1) Posted: Thu Jul 24, 2008 5:58 am
Post subject: Equal to zero ... or not equal to zero Add to elertz
Archived from groups: microsoft>public>excel>crashesgpfs (more info?)

Hi Excel friends,

Something interesting came up when I moved from Excel 2003 to 2007.

I have a sheet that looks as follows:

A B C D
E
1 51.71 51.71 =IF(A1=B1,"yes","no") =A1-B1
=IF(B1="fish",A1,A1-B1)

(you can substitute the "fish" with any text you like)

The results returned are as follows
C1 : yes (so they are the same)
D1 : 0 (which you would expect)

E1 : -7.10543E-15 (!!!)

A further test of =IF(E1=0,"zero","not zero") returns the result "not zero".

It seems to be that the value held in cell A1 is not quite equal to 51.71
from somewhere beyond the 15th decimal place (excel can't display it).

I can correct this with rounding on cell A1 but I wondered if anyone else
had seen this and if you know where I can read more. Honestly it is a bit of
a pain. The value in cell A1 was originally built up from summing elements
within a pivot table, then I copy-pasted values; however none of the elements
it is built from had values extending to more than two d.p. so I am having
trouble figuring out where the error comes in.

--
Allllen
Back to top
Login to vote
Squeaky

External


Since: Mar 20, 2006
Posts: 16



(Msg. 2) Posted: Thu Jul 24, 2008 9:23 am
Post subject: RE: Equal to zero ... or not equal to zero Add to elertz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

What is the decimal place set for on that cell? Have you tried setting it to
zero?

"Allllen" wrote:

> Hi Excel friends,
>
> Something interesting came up when I moved from Excel 2003 to 2007.
>
> I have a sheet that looks as follows:
>
> A B C D
> E
> 1 51.71 51.71 =IF(A1=B1,"yes","no") =A1-B1
> =IF(B1="fish",A1,A1-B1)
>
> (you can substitute the "fish" with any text you like)
>
> The results returned are as follows
> C1 : yes (so they are the same)
> D1 : 0 (which you would expect)
>
> E1 : -7.10543E-15 (!!!)
>
> A further test of =IF(E1=0,"zero","not zero") returns the result "not zero".
>
> It seems to be that the value held in cell A1 is not quite equal to 51.71
> from somewhere beyond the 15th decimal place (excel can't display it).
>
> I can correct this with rounding on cell A1 but I wondered if anyone else
> had seen this and if you know where I can read more. Honestly it is a bit of
> a pain. The value in cell A1 was originally built up from summing elements
> within a pivot table, then I copy-pasted values; however none of the elements
> it is built from had values extending to more than two d.p. so I am having
> trouble figuring out where the error comes in.
>
> --
> Allllen
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> General Protection Fault Errors All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET