#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Rounding

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


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 328
Default Rounding

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" :)


"Steve" wrote:

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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Rounding

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.

"Lisa" wrote in message
...
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" :)


"Steve" wrote:

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





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
rounding help JM Excel Discussion (Misc queries) 6 September 21st 06 02:17 AM
Rounding .01 to 1 instead of 0 [email protected] Excel Discussion (Misc queries) 3 August 15th 06 06:06 PM
Rounding Down Kelly Excel Discussion (Misc queries) 2 March 31st 06 12:41 AM
Rounding up help Kaputa Excel Discussion (Misc queries) 3 January 6th 06 06:16 PM
Rounding ynissel Excel Discussion (Misc queries) 2 July 5th 05 07:42 PM


All times are GMT +1. The time now is 07:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"