2

clockAnyone get that song reference? I give you a clue down the bottom of the post…

Well have to say I do love my students (in a good way…not a weird way I hasten to add. :-).). I recently had a woman in class who had the following Excel conundrum…

  1. She needed to calculate the hours worked by staff members…so she had their clock in time/clock out time.
  2. I’m not sure if this was the case but what I’ve done in this example is assume that the staff members clocked in and out for lunch.
  3. So she needed to be able to calculate their hours worked but rounded up to the next 15 minutes e.g. if someone worked 10 hours and 10 minutes, that had to be rounded up to 10 hours and 15 minutes for payment purposes.
  1. But what I did was enter the following formula…after I had formatted the times to HH:MM (see Format Cells – (use Ctrl and 1 – Custom)
  2. =(C3-B3)*24-(E3-D3)*24
  3. That gave me the total number of hours/minutes used in decimal format.
  4. However, I then combined this with the Ceiling function to round up to the next 15 minutes (.25 of an hour
  5. You can download the file here

 

PS you can find out about the lyrics of the song here..

2 Responses to “Time keeps on slippin’ slippin’….roundin’ on up to nearest 15 minutes”

  1. Dave says:

    Hi,

    What is the purpose of the *24 in the formula?

    • admin says:

      hi Dave, the 24 is because there are 24 hours in the day…not totally sure *why* that has to be added in but it works when it’s included and doesn’t when it’s not :-)

Leave a Reply