Hi,
I have attached a template for a weekly rota. Everything is good in it except I do not know how to get total hours for mon-sun. I want the template to calculate the total hours used each day. Can someone help me please.
Hi,
I have attached a template for a weekly rota. Everything is good in it except I do not know how to get total hours for mon-sun. I want the template to calculate the total hours used each day. Can someone help me please.
Hi,
In your daily total cell use this formula.
This type of formula is an array and have to be entered by using CTRL+SHIFT+ENTER at the end, not by pressing ENTER.![]()
=SUMPRODUCT(IFERROR(IFERROR(C6:C25,0)-IFERROR(B6:B25,0),0))
Hope this is helpful.
Cheers![]()
Another way array entered.Formula:
=SUM(IF(ISNUMBER(CHOOSE({1,2,3,4,5,6,7},C6-B6,E6-D6,G6-F6,I6-H6,K6-J6,M6-L6,O6-N6)),CHOOSE({1,2,3,4,5,6,7},C6-B6,E6-D6,G6-F6,I6-H6,K6-J6,M6-L6,O6-N6)))
Dave
Total hours per day
=SUM(C6:C25)-SUM(B6:B25)
SUM ignores TEXT values/blanks
Edit Please disregard. I solved the wrong problem.
Another way non array entered.Formula:
=SUM(MMULT({1,-1},N(OFFSET(B6,,(COLUMN(B:H)-MIN(COLUMN(B:H)))*2+{1;0}))))
Last edited by FlameRetired; 07-17-2016 at 03:10 PM.
Hi
Try this
Formula:
=AGGREGATE(9,6,C6:C26)-AGGREGATE(9,6,B6:B26)
Hi,
Thanks for the replies, I cannot get any of the above formulas to work for me. Have you guys entered them in the template and if so, how did you do it? I have merged and centered the total cell for Monday and entered the above formulas and it has not worked for me.
Hi Voldo,
I think what we have all neglected to state is that you format of the cell has to be a custom format in order to the number of hours to show properly.
Change the cell format to "Custom" [hh]:mm
See attached example.
Cheers![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks