I have got a very simple accounting spreadsheet where column C is
determined by (A+B)*1.06. Cell C is formatted for dollars - two
decimal places. At the bottom of column C is a total which is usually
correct but sometimes it is out by one cent. All the calculations
across are correct. I am sure there is an easy way to fix this isn't
there? Thanks.
Al
Ragdyer - 03 Sep 2007 22:08 GMT
Check this link of John McGimpsey:
http://www.mcgimpsey.com/excel/pennyoff.html

Signature
HTH,
RD
---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
> I have got a very simple accounting spreadsheet where column C is
> determined by (A+B)*1.06. Cell C is formatted for dollars - two
[quoted text clipped - 4 lines]
>
> Al
JE McGimpsey - 03 Sep 2007 22:13 GMT
See
http://www.mcgimpsey.com/excel/pennyoff.html
> I have got a very simple accounting spreadsheet where column C is
> determined by (A+B)*1.06. Cell C is formatted for dollars - two
[quoted text clipped - 4 lines]
>
> Al
swordsman - 03 Sep 2007 22:16 GMT
did you try
=Round((A+B)*1.06,2)
will there be no problem in your accounting sheet if you do so?
> I have got a very simple accounting spreadsheet where column C is
> determined by (A+B)*1.06. Cell C is formatted for dollars - two
[quoted text clipped - 4 lines]
>
> Al
Alfred Kaufmann - 03 Sep 2007 23:11 GMT
Thanks everyone, that Round function should solve the problem. I also
discovered in the Excel Options how to set the precision to what is
displayed. Just have to ignore that terrible warning that my
spreadsheet will lose accuracy.
Al
I use Excel so often that every time I do Micsoft has a new version
;-(
>did you try
>
[quoted text clipped - 10 lines]
>>
>> Al
swordsman - 03 Sep 2007 23:22 GMT
glad it worked for your accounting sheet!<g>
> Thanks everyone, that Round function should solve the problem. I also
> discovered in the Excel Options how to set the precision to what is
[quoted text clipped - 20 lines]
> >>
> >> Al
Chip Pearson - 03 Sep 2007 23:22 GMT
I would suggest that you NOT use the "Precision as displayed" setting. It
can cause rather odd results in calculations if various cells have a
different number of decimal places. You should use ROUND instead.
See http://www.cpearson.com/newsletter/content/2007_08_27.htm
This article illustrates a rather simple case in which you can have three
different values when summing the same numbers.

Signature
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)
> Thanks everyone, that Round function should solve the problem. I also
> discovered in the Excel Options how to set the precision to what is
[quoted text clipped - 19 lines]
>>>
>>> Al
Sandy Mann - 03 Sep 2007 22:16 GMT
Look at:
http://www.cpearson.com/excel/rounding.htm

Signature
HTH
Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings
sandymann2@mailinator.com
Replace @mailinator.com with @tiscali.co.uk
>I have got a very simple accounting spreadsheet where column C is
> determined by (A+B)*1.06. Cell C is formatted for dollars - two
[quoted text clipped - 4 lines]
>
> Al
swordsman - 03 Sep 2007 22:48 GMT
you can also try to upgrade your reading within this page.
http://www.microsoft.com/office/community/en-us/default.mspx?query=%22test%2C+de
c+As+Long%2C+ParamArray+rng%22&dg=microsoft.public.excel.programming&cat=en-us-e
xcel&lang=en&cr=US&pt=f3f7ac8a-4ea0-4c36-bed9-8feae6d75298&catlist=&dglist=&ptli
st=&exp=&sloc=en-us
> I have got a very simple accounting spreadsheet where column C is
> determined by (A+B)*1.06. Cell C is formatted for dollars - two
[quoted text clipped - 4 lines]
>
> Al