Anyone 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…
- She needed to calculate the hours worked by staff members…so she had their clock in time/clock out time.
- 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.
- 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.
- 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)
- That gave me the total number of hours/minutes used in decimal format.
- However, I then combined this with the Ceiling function to round up to the next 15 minutes (.25 of an hour
- You can download the file here
What is the purpose of the *24 in the formula?
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 🙂