how do I calculate the sum of hours if marked x in a schedule?

  • Thread starter Thread starter workinghard
  • Start date Start date
W

workinghard

hi I have a schedule with x's placed if a person(rows) is working that
period(column headers). How do I create the formula to add the total number
of hours worked for each person ?
Ie,
A B C D
E
8:30-9:50 10:30-3 5-10
Total hours
1 name 1 x x
2 name 2 x x
3 name 3 x x

Thank you.
 
assuming 1.3 hours for period in column B, 4.5 hours for period in column C
and 5 hours for period in column D:

in column E: =IF(B2="x",1.3,0)+IF(C2="x",4.5,0)+IF(D2="x",5,0)
 
Back
Top