How to sum hours based on criteria in to tables (Excel) -
having "tables" excel
b c d e f 1 category project hours 2 project c1 c2 p1 10 3 p1 x p2 20 4 p2 x p3 30 5 p3 x x 6 p4 x a2:c6 shows list of project. each project belongs 1 og more categories
e2:f4 shows time spent on each project
i'm looking way sum time spent in each category. answer obvious (40h , 50h), can't figure out how construct working formula, provide answer
h 1 category sum hours 2 c1 40 3 c2 50 any ideas ?
this simple application of sumif. can enter =sumif(b3:b6;"x";$f2:$f5) in i2 , modify accordingly other category. if apply formulae next 1 instead of below 1 another, can copy formula across.
i recommend change sheet in following way:
b c d e f 1 =sumif1 =sumif2 project hours 2 project c1 c2 hours p1 10 3 p1 x =vlookup p2 20 4 p2 x =vlookup p3 30 5 p3 x x =vlookup 6 p4 x =vlookup where sumif1 formula =sumif(b3:b6;"x";$d3:$d6) , sumif2 1 copied over. work whatever labels choose. vlookup formula in d3 =vlookup(a3;$e$2:$f$4;2;false). note have #na d6 since there no hours p4. fix , have relatively general solution.
Comments
Post a Comment