ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   why do numbers not add correctly in excel (https://www.excelbanter.com/excel-worksheet-functions/8902-why-do-numbers-not-add-correctly-excel.html)

kflag

why do numbers not add correctly in excel
 
When adding currency in an excel worksheet, the sums are not always correct .
They may be a penny higher or a penny lower than the correct amount. Some of
the amounts that are being added are obtained by using a percentage of
another amount.

Dave Peterson

Take a look at JE McGimpsey's site:
http://www.mcgimpsey.com/excel/pennyoff.html

kflag wrote:

When adding currency in an excel worksheet, the sums are not always correct .
They may be a penny higher or a penny lower than the correct amount. Some of
the amounts that are being added are obtained by using a percentage of
another amount.


--

Dave Peterson

Nick Hodge

It's because Excel holds a far greater precision than that displayed by the
format. You may see 1.50+1.50 and expect 3.00, but Excel may be holding a
true value of 1.5049+1.5049=3.098 or formatted to two decimals 3.01

To overcome this you can use the ROUND function on all your calculations, or
go to ToolsOptionsCalculationPrecision as displayed

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"kflag" wrote in message
...
When adding currency in an excel worksheet, the sums are not always
correct .
They may be a penny higher or a penny lower than the correct amount. Some
of
the amounts that are being added are obtained by using a percentage of
another amount.




Nick Hodge

or even 3.0098, but you hopefully get my drift!

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"Nick Hodge" wrote in message
...
It's because Excel holds a far greater precision than that displayed by
the format. You may see 1.50+1.50 and expect 3.00, but Excel may be
holding a true value of 1.5049+1.5049=3.098 or formatted to two decimals
3.01

To overcome this you can use the ROUND function on all your calculations,
or go to ToolsOptionsCalculationPrecision as displayed

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"kflag" wrote in message
...
When adding currency in an excel worksheet, the sums are not always
correct .
They may be a penny higher or a penny lower than the correct amount.
Some of
the amounts that are being added are obtained by using a percentage of
another amount.







All times are GMT +1. The time now is 12:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com