Forum Discussion
Clare76
Jan 13, 2021Copper Contributor
Excel - calculating hours worked on single cell values
Hi I'm trying to figure out what I'm sure is a simple excel query. I need to calculate total weekly hours on a staff rota and the rota is formatted with each shift eg 09:00-17:00 in one single cell...
- Jan 13, 2021
In I3 as an array formula, confirmed with Ctrl+Shift+Enter:
=SUM(IFERROR(MOD(TIMEVALUE(RIGHT(B3:H3,5))-TIMEVALUE(LEFT(B3:H3,5)),1),0))Apply the custom number format [h]:mm to I3, then fill down.
HansVogelaar
Mar 24, 2021MVP
I don't see an attachment?
Clare76
Mar 24, 2021Copper Contributor
- HansVogelaarMar 24, 2021MVP
- Clare76Mar 26, 2021Copper ContributorHans, thanks once again for your excel wizardry, this is perfect. Your knowledge has saved me a lot of time with staff admin, much appreciated! Clare