Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default 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.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 69
Default 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.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default 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.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default 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.

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
Need payroll Rao Ratan Singh Excel Discussion (Misc queries) 1 May 9th 07 01:00 PM
Payroll mikeindc Excel Discussion (Misc queries) 1 August 13th 06 09:40 PM
Adding payroll stubs payroll calculator Sable New Users to Excel 2 August 5th 06 05:37 PM
Payroll Tracy Excel Discussion (Misc queries) 5 January 26th 06 09:16 PM
How do I ROUND() round off decimals of a column dataset? Højrup Excel Worksheet Functions 2 January 12th 05 10:50 AM


All times are GMT +1. The time now is 04:25 AM.

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"