ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   TO ROUND 37.75 UP TO 38 OR DOWN TO 37.5 FOR PAYROLL (https://www.excelbanter.com/excel-worksheet-functions/221180-round-37-75-up-38-down-37-5-payroll.html)

kstephens

TO ROUND 37.75 UP TO 38 OR DOWN TO 37.5 FOR PAYROLL
 
I am trying to set up a payroll sheet and when it gets the total, I want it
to transfer to another sheet, but round off the hours. Such as if they
worked 37.75, to go up to 38hr, or if they worked 39.10 hrs it rounds down to
39.00 hrs.

Shane Devenshire[_2_]

TO ROUND 37.75 UP TO 38 OR DOWN TO 37.5 FOR PAYROLL
 
Hi,

Try

=MROUND(Sheet1!A1,1/24)

In versions of Excel prior to 2007 you need to attach the ATP - choose
Tools, Add-ins, and check Analysis ToolPak.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"kstephens" wrote:

I am trying to set up a payroll sheet and when it gets the total, I want it
to transfer to another sheet, but round off the hours. Such as if they
worked 37.75, to go up to 38hr, or if they worked 39.10 hrs it rounds down to
39.00 hrs.


HARSHAWARDHAN. S .SHASTRI[_2_]

TO ROUND 37.75 UP TO 38 OR DOWN TO 37.5 FOR PAYROLL
 
Hi Kstephens,

Assuming your data starts from cell A2 , put following formula in cell B2
or relevent cell and then drag


=IF(A2-INT(A2)0.5,INT(A2)+1,INT(A2))


H S Shastri

++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++

"kstephens" wrote:

I am trying to set up a payroll sheet and when it gets the total, I want it
to transfer to another sheet, but round off the hours. Such as if they
worked 37.75, to go up to 38hr, or if they worked 39.10 hrs it rounds down to
39.00 hrs.


David Biddulph[_2_]

TO ROUND 37.75 UP TO 38 OR DOWN TO 37.5 FOR PAYROLL
 
Is there some good reason for not using the simpler =ROUND(A2,0) ?
Your formula gives a different result if the fraction is exactly 0.5, but I
couldn't see anything from the OP that asked for that interpretation.
--
David Biddulph

"HARSHAWARDHAN. S .SHASTRI"
wrote in message
...
Hi Kstephens,

Assuming your data starts from cell A2 , put following formula in cell B2
or relevent cell and then drag

=IF(A2-INT(A2)0.5,INT(A2)+1,INT(A2))
H S Shastri


++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++

"kstephens" wrote:

I am trying to set up a payroll sheet and when it gets the total, I want
it
to transfer to another sheet, but round off the hours. Such as if they
worked 37.75, to go up to 38hr, or if they worked 39.10 hrs it rounds
down to
39.00 hrs.




Shane Devenshire[_2_]

TO ROUND 37.75 UP TO 38 OR DOWN TO 37.5 FOR PAYROLL
 
Hi,

I assumed you were not asking about a simple ROUND calculation. I may have
overworked this question. I should add that my suggestion is based on the
assumption you are using time calculations so that 37.75 is 1.5725 days
formatted time.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"kstephens" wrote:

I am trying to set up a payroll sheet and when it gets the total, I want it
to transfer to another sheet, but round off the hours. Such as if they
worked 37.75, to go up to 38hr, or if they worked 39.10 hrs it rounds down to
39.00 hrs.



All times are GMT +1. The time now is 03:09 AM.

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