Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default why is answer rounded up?

"JTGRUD" wrote in message
...
i use the
equation, =((firstoutcell-firstincell)+(secondoutcell-secondincell))*24
to
correctly get a daily total in hours (formatted as Number to two decimal
places). i then use the SUM function to correctly total up the 5 days
hours
(as Number to two decimals). but when i multiply the cell containing the
weekly hours total times the hourly wage, instead of getting the exact
dollar
amount, i get a rounded up amount. i am using the correct amount of
decimal
places in the answer


Unless you set the calculation option "Precision as displayed" (Tools
Options Calculcation), which I do not recommend, the number of decimal
places in the format affects how a value is displayed, but it does not
change the underlying value.

If you want the rounded numbers to be used in subsequent computation, you
must use the ROUND function (or the "Precision as displayed" option). For
example:

=round((A2-A1 + B2-B1)*24,2)

=round(sum(C1:C2)*D1,2)


----- original message -----

"JTGRUD" wrote in message
...
i am creating a time sheet to track hours worked in a week and the pay due
for those hours worked. each day has 4 cells to enter in-out-in-out
times.
the times are entered as, i.e. "8:30 am" and formatted as Time. i use
the
equation, =((firstoutcell-firstincell)+(secondoutcell-secondincell))*24
to
correctly get a daily total in hours (formatted as Number to two decimal
places). i then use the SUM function to correctly total up the 5 days
hours
(as Number to two decimals). but when i multiply the cell containing the
weekly hours total times the hourly wage, instead of getting the exact
dollar
amount, i get a rounded up amount. i am using the correct amount of
decimal
places in the answer and the cell is big enough. any answers out there?



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
ROUNDED NUMBERS rajaiy Excel Worksheet Functions 2 January 28th 09 02:15 PM
data gets rounded up !!! Dr Alok Modi MD Excel Discussion (Misc queries) 22 December 16th 08 12:44 AM
Calculator Answer Doesn't Match Excel Answer GwenH Excel Discussion (Misc queries) 3 October 20th 08 10:17 AM
numbers being rounded intemporal New Users to Excel 1 January 4th 06 09:44 PM
how do i add rounded numbers? echase Excel Discussion (Misc queries) 4 November 12th 05 06:42 PM


All times are GMT +1. The time now is 01:16 PM.

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

About Us

"It's about Microsoft Excel"