Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#366578 - 22/04/2016 21:02 Weird ass excel error
lectric
pooh-bah

Registered: 20/01/2002
Posts: 2085
Loc: New Orleans, LA
Hey guys. I have an odd question that I just KNOW you can help with.

I cannot for the life of me figure out why the if statement in D20 is not evaluating correctly.

It's not a big deal, but I am really curious where my logic flaw is.

Many thanks to anyone interested in this puzzle!

Lec


Attachments
WTF.xls (64 downloads)


Top
#366579 - 22/04/2016 22:23 Re: Weird ass excel error [Re: lectric]
larry818
old hand

Registered: 01/10/2002
Posts: 1033
Loc: Fullerton, Calif.
It's evaluating correctly, just not calculating correctly.

I believe everything is a floating point calc to excel, so errors creep in. See the attached. I changed nothing but the format of the cell.


Attachments
WTF.xls (59 downloads)


Top
#366580 - 23/04/2016 00:54 Re: Weird ass excel error [Re: larry818]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31578
Loc: Seattle, WA
Brilliant catch!

You can also set the configuration setting in excel to "Precision As Displayed", as described in this KB article:

https://support.microsoft.com/en-us/kb/78113

This calls to mind the old days of writing programs in BASIC to do things like printing simple invoices on a dot matrix printer. Every once in a while you'd get an invoice with a total that looked something like 1E+7 instead of a useful price. smile
_________________________
Tony Fabris

Top
#366582 - 23/04/2016 01:37 Re: Weird ass excel error [Re: tfabris]
lectric
pooh-bah

Registered: 20/01/2002
Posts: 2085
Loc: New Orleans, LA
And you guys are awesome... Thank you! I was thinking it was a calculation error, but couldn't figure out why. Interesting.

Top