Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / February 2007

Tip: Looking for answers? Try searching our database.

Rounding

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve - 28 Feb 2007 22:07 GMT
Hello,

I have a spreadsheet for calculating labor rate. Column A contains tenths of
an hour (.1, .2, .3 etc...) Column B has a simple formula (=A1*32.39), and
is filled down. Column B is formatted to currency, and 2 decimal places
(which I need to maintain). When I look at, for example .3, the result is
$9.72. Then I look at .6, and the result is $19.43. If you multiply $9.72 by
2, the result is $19.44, 1 penny off from the spreadsheet. I have tried some
rounding functions, but the results were still off like this. Any
suggestions?

Thanks,
-Steve
Lisa - 28 Feb 2007 22:48 GMT
I haven't fully tested it out, but in this particular situation you could use
the "Ceiling" function (rounds up to a certain significance - in this case,
rounds up to the nearest cent).  
=CEILING(A7*32.39,0.01)

It's worth a try... if that doesn't work for you, you may just have to chalk
it up to "dirty math with decimals"  :)

> Hello,
>
[quoted text clipped - 9 lines]
> Thanks,
> -Steve
Steve - 28 Feb 2007 23:26 GMT
It was looking good, but I did find inconsistencies.
.5 = 16.20, but if you double that, the result is 32.40 - 1 penny higher
than 32.39.
.6 = 19.44, but if you double that, the result is 38.88 - whereas 1.2
(double the .6) is 38.87 - 1 penny less.

It keeps going on like that...

Thanks for the attempt Lisa.

>I haven't fully tested it out, but in this particular situation you could
>use
[quoted text clipped - 24 lines]
>> Thanks,
>> -Steve
Sandy Mann - 28 Feb 2007 23:53 GMT
Give evryone a penny rise to 32.40 otherwise I don't believe that it will
ever work out.

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

> Hello,
>
[quoted text clipped - 9 lines]
> Thanks,
> -Steve
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.