Excel not subtracting properly causing "un-rounding"

nshepo20

New Member
Joined
Jun 8, 2021
Messages
24
Office Version
  1. 365
Platform
  1. Windows
Through my entire process, I round everything with the Round formula since these numbers are designated to be $s to go into an ERP system that should have everything rounded to the 2nd decimal place. The final step in my process is subtracting my post-process rounded side to what it should actually be rounded and re-allocating the difference. For some reason, there becomes a negligible amount not rounded after this subtraction causing a float variable. I can easily just round this number too so it's nbd but I just need to know how is this even possible? Is this an Excel bug?

Both pivot tables are filtered for the same item and yes I double checked that the pivot tables were pulling from fields that were rounded with "=ROUND(W122,2)" formulas. See the pictures below! Thanks in advanced!
1701970052460.png


1701970170100.png
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
I don't exactly how or when you're doing the rounding. I find that when I try to round numbers within the early calculations, it causes major issues. My last result is rounded so as to not cause variances like that.
 
Upvote 0
Upvote 1
Solution
Yes, this is a known situation, that is outlined in offthelip's reply.
Best bet is to round the final value.
 
Upvote 0
It is worth while reading this article about how excel stores floating point numbers because I think you will find it answer your query:
Thanks Joe! I read the part "Repeating binary numbers and calculations that have near-zero results" and that seems to explain it! Pretty fascinating and cool to have learned something new today. I will be sure to round the final results for now on as everyone suggests :)
 
Upvote 0
It is worth while reading this article about how excel stores floating point numbers because I think you will find it answer your query:
Thanks offthelip! Very interesting to read and explains this issue. Much appreciated!
 
Upvote 0

Forum statistics

Threads
1,215,129
Messages
6,123,218
Members
449,091
Latest member
jeremy_bp001

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