Very strange problem, is this a bug?

excelos

Well-known Member
Joined
Sep 25, 2011
Messages
592
Office Version
  1. 365
Platform
  1. Windows
Hello!

These two functions seem identical to me:

Code:
=IF(D46<$J8,IF(D29=0,IF(D30=0,0,"BOTTLENECK"),D29/($J8-COLUMNS($D49:D49))),0)
=IF(D46<$J9,IF(D32=0,IF(D33=0,0,"BOTTLENECK"),D32/($J9-COLUMNS($D50:D50))),0)


The input cells are exactly the same, D29=0 and D30=431 with the only difference being $J8 being 28 and $J9 being 30.

However, the second function delivers inconsistent results with the first one.

Any idea what could be wrong?
 
Re: Very strage problem, is this a bug?

Is there a way to upload the file to check?
Not to the forum, but you can upload to a free file-share site (eg Dropbox) and provide a shared link here in the forum.
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Re: Very strage problem, is this a bug?

How do I check that?

On the formulas tab, click the Calculation options button on the right and see what it's set to. If it's automatic already, perhaps the cell isn't really exactly 0.
 
Last edited:
Upvote 0
Re: Very strage problem, is this a bug?

In the formulas tab you will se Calculation Options. Click on it and make sure automatic is selected.

Yes, it is automatic.

This issue drives me crazy.

Is there a spreadsheet website I can paste all the formulas? I cannot upload the file.

Thanks
 
Upvote 0
Re: Very strage problem, is this a bug?

Does G32 contain a formula (if so, what), or a typed 0 value?
 
Upvote 0
Re: Very strage problem, is this a bug?

Does G32 contain a formula (if so, what), or a typed 0 value?

G32 contains a formula:

[]=IF((F30+F32+G31-$C$9)>=0,F30+F32+G31-$C$9,0)[]
 
Upvote 0
Re: Very strage problem, is this a bug?

Oh I found it!

The cell is actually 0.00000000000000023523423462!
I did check few decimals but didn't go to that level!

Thanks all
 
Upvote 0
Re: Very strage problem, is this a bug?

G32 contains a formula:
[]=IF((F30+F32+G31-$C$9)>=0,F30+F32+G31-$C$9,0)[]

The remedy (and simplification) is:

=MAX(0, ROUND(F30+F32+G31-$C$9,2))

Change the rounding precision (2) to whatever number of decimal places that you expect to be accurate. Do not choose an arbitrary number of decimal places like 10, as some people suggest.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,185
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top