Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-28-2017, 12:24 PM
riothecat riothecat is offline WHy the difference in amounts Windows 10 WHy the difference in amounts Office 2007
Novice
WHy the difference in amounts
 
Join Date: Nov 2016
Posts: 27
riothecat is on a distinguished road
Default

I do the go advanced, hit the paper clip, hit browse, click on my file, hit open, and nothing.



JOEu2004, I understand what you are saying, but cannot fix it. All my decimals are down to 2 places. I do however have a convoluted formula and it is to low by 50 plus cents on some og the answers. I wish I could post this here.. but it wont let me attach. It's only like 19 kb in size.
Reply With Quote
  #2  
Old 06-28-2017, 01:03 PM
joeu2004 joeu2004 is offline WHy the difference in amounts Windows 7 32bit WHy the difference in amounts Office 2007
Advanced Beginner
 
Join Date: Aug 2016
Posts: 32
joeu2004 is on a distinguished road
Default

Quote:
Originally Posted by riothecat View Post
JOEu2004, I understand what you are saying, but cannot fix it. All my decimals are down to 2 places. I do however have a convoluted formula and it is to low by 50 plus cents on some og the answers.
If by "down to 2 places", you mean that you are formatting to display 2 decimal places, that is not sufficient.

Formatting alone only affects how a value appears. It does not affect the actual cell value.

Moreover, as my example with 10.01 - 10 demonstrates, constants might have only 2 decimal places, but calculations with those constants might result in values with more decimal places because of the binary arithmetic anomalies that I alluded to before.

Finally, if results are significantly off (by 50+ cents, for example), the mistake could be in your calculations. Not really a mistake per se; but again, failing to round calculations based on your expectations.

For example, =12.45*10% in A1 is 1.245. That might display 1.25 if you format to 2 decimal places. So you might expect a subsequent calculation like =A1*10 to be 12.50, but in fact it is 12.45. And if you sum a bunch of calculations like my example in A1, the cumulative effect can be a significant "error" -- that is, a deviation from your expectations based on displayed values (appearances).

For all of these examples, the remedy is the same: explicitly round to the precision that you expect calculations to be accurate to. That means: use the ROUND function.

Did you even try it?


Quote:
Originally Posted by riothecat View Post
I wish I could post this here.. but it wont let me attach. It's only like 19 kb in size.
As I said, upload an example Excel file (redacted) that demonstrates the problem to a file-sharing website, and post the public/share URL here.

One such website is box.net/files. After uploading the file, be sure to click on Share to get the public URL.
Reply With Quote
  #3  
Old 06-28-2017, 01:16 PM
joeu2004 joeu2004 is offline WHy the difference in amounts Windows 7 32bit WHy the difference in amounts Office 2007
Advanced Beginner
 
Join Date: Aug 2016
Posts: 32
joeu2004 is on a distinguished road
Default

Quote:
Originally Posted by joeu2004 View Post
For all of these examples, the remedy is the same: explicitly round to the precision that you expect calculations to be accurate to. That means: use the ROUND function.
PS.... Arguably, that is not always easy to do. For example, if you use pivot tables, calculations are not rounded by default. I'm not a PT person. But I believe the only work-around is to create "calculated fields" (?) instead of the normal PT set-up.

-----

Another work-around that I do not usually recommend is: set the "Precision As Displayed" Advanced Option.

If you want to experiment with that, be sure to make a backup copy of the Excel file first.

PAD is very dangerous; setting it can cause immediate and irreversible changes to constants throughout the Excel file.

Moreover, setting PAD does not fix all rounding problems. It does not fix my earlier example, for instance: IF(10.01 - 10 = 0.01, TRUE).

But just trying it, then throwing away the Excel file with PAD set, might give you confidence in the need to explicitly round formulas and expressions selectively.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF formula when some values are text & others $ amounts LyndaH Excel 4 03-26-2017 08:31 PM
Adding addresses and $ amounts to Word docs littlepeaks Word VBA 2 01-22-2016 07:57 PM
WHy the difference in amounts Tracking Amounts teza2k06 Excel 1 04-13-2014 09:28 PM
WHy the difference in amounts Vlookup help for large amounts of stock data jyfuller Excel 15 09-21-2012 11:35 AM
WHy the difference in amounts indent alternate lines by different amounts rufusfrog Word VBA 5 02-25-2012 03:36 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:43 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft