Excel question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Guest
Is it possible to "convert" HOUR into an Integer number and how do I do this
Application is for simple payroll whereby I need to separate basic hours (say eight) from overtime hrs and then want to use the outcome to calculate pay earned
Thanks; Harry
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
On 2002-02-28 09:26, Anonymous wrote:
Is it possible to "convert" HOUR into an Integer number and how do I do this
Application is for simple payroll whereby I need to separate basic hours (say eight) from overtime hrs and then want to use the outcome to calculate pay earned
Thanks; Harry

Since there are 24 hours in a day, a time value which is stored as a fractional part of a day can be converted into hours by multiplying it by 24. For example, if cell A1 contains the time value for 8:30 PM, the formula, =A1*24, will produce 20.5 hrs.

"Basic" hours can be calculated using...

=MIN(A1*24,8)

"Overtime" hours can be calculated using...

=MAX(A1*24-8,0)
 
Upvote 0

Forum statistics

Threads
1,223,339
Messages
6,171,533
Members
452,409
Latest member
brychu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top