Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Mike
 
Posts: n/a
Default Excel calculation error?

Hi all,
Excel 2K SP3, Win2kSP4, Pentium4

I have the following formula in a workbook of mine:
=((CE145-CJ145)+(IF(BY145=0,0,BT145/BY145)-(IF(BZ145=0,0,BU145/BZ145))))*CS1
45

including all significant (non zero) decimal places, CE145 and CJ145 are
both 1.564, BY145 and BZ145 are 39, BT145 & BU145 are both 0, and CS145 is
26400.

the answer should be 0. However, the answer is
apparently -7.34412530789541E-12 (-0.000000000007344..)

when I go through the formula a reference at a time F9'ing everything, it
turns out to be 0. But when I F9 on (CE145-CJ145), I get a very small
negative number (-2.77555756156289E-17). if I F9 on CE145-CJ145 (not
including the brackets this time) I get 0.

I realize that the brackets around CE145-CJ145 are slightly extraneous, but
if I remove those brackets, (and the extra brackets around the IFs and the
second IF) so that the formula is
=(CE145-CJ145+IF(BY145=0,0,BT145/BY145)-IF(BZ145=0,0,BU145/BZ145))*CS145
and I evaluate everything before *CS145 (whether or not I include the
brackets), I get that tiny little number

WTF?

I mean I can fix the formula to ignore tiny little numbers, but what's going
on? This is a spreadsheet app that my company uses and I'm responsible for
updating, so when one of the users showed me this I had to scramble to
figure out that Excel is (apparently) tripping up here.


  #2   Report Post  
Posted to microsoft.public.excel.misc
Mike
 
Posts: n/a
Default Excel calculation error?

As a extra note, if I change the formula to (CE145-CJ145)*CS145 +
(IF(...)-IF(...))*CS145, the answer is 0.

"Mike" wrote in message
...
Hi all,
Excel 2K SP3, Win2kSP4, Pentium4

I have the following formula in a workbook of mine:

=((CE145-CJ145)+(IF(BY145=0,0,BT145/BY145)-(IF(BZ145=0,0,BU145/BZ145))))*CS1
45

including all significant (non zero) decimal places, CE145 and CJ145 are
both 1.564, BY145 and BZ145 are 39, BT145 & BU145 are both 0, and CS145 is
26400.

the answer should be 0. However, the answer is
apparently -7.34412530789541E-12 (-0.000000000007344..)

when I go through the formula a reference at a time F9'ing everything, it
turns out to be 0. But when I F9 on (CE145-CJ145), I get a very small
negative number (-2.77555756156289E-17). if I F9 on CE145-CJ145 (not
including the brackets this time) I get 0.

I realize that the brackets around CE145-CJ145 are slightly extraneous,

but
if I remove those brackets, (and the extra brackets around the IFs and the
second IF) so that the formula is
=(CE145-CJ145+IF(BY145=0,0,BT145/BY145)-IF(BZ145=0,0,BU145/BZ145))*CS145
and I evaluate everything before *CS145 (whether or not I include the
brackets), I get that tiny little number

WTF?

I mean I can fix the formula to ignore tiny little numbers, but what's

going
on? This is a spreadsheet app that my company uses and I'm responsible

for
updating, so when one of the users showed me this I had to scramble to
figure out that Excel is (apparently) tripping up here.




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
Cannot Open Excel getting error: EXCEL.exe has generated errors .. Saine Excel Discussion (Misc queries) 11 March 21st 06 07:25 AM
Fix too few data fields error message when merging excel and word ARY Excel Discussion (Misc queries) 0 October 17th 05 08:51 PM
Problem Opening an Excel File MSO9.DLL Error Mash23 Links and Linking in Excel 0 August 24th 05 03:21 PM
Excel Error Message Mark Excel Worksheet Functions 3 June 1st 05 02:41 PM
error opening excel 2000 files jch Excel Discussion (Misc queries) 0 March 22nd 05 04:25 PM


All times are GMT +1. The time now is 12:31 AM.

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"