So if you have a drop down box in the results sheet for the staff name in cell A1
Set up the rest of your results sheet like this:
in A2 and below you have the week ending dates - it doesnt matter if these are in order or not but I imagine it is best if they are. You can do this with a formula - just put in the most recent week ending date in A2 and in A3 type the following formula
=A2-7
Copy the contents of A3 down as far as you need
This will display the week dates most recent first
in B1 you have the name for Team A
in C1 you have the name for work type 1
in D1 you have the name for work type 2
in E 1 you have the name forwork type3
in F1 you have the name for Team B
in G1 you have the name for work type 1
in H1 you have the name for work type 2
in I1 you have the name forwork type3
In each case it is important that the cell contents are exactly the same as teh names used in your data base sheet (maybe consider using data validation to enforce this on your data sheet)
Assuming the data is in A2:D100 in a sheet called Data
Your formula in C2 should be
=sumproduct(--(Data!$A$2:$A$100=$A2),--(Data!$B$2:$B$100=$A$1),--(Data!$C$2:$C$100=$B$1),--(Data!$D$2:$D$100=C$1))
You can copy that across from C2 to D2
Your Formula in G2 should be
=sumproduct(--(Data!$A$2:$A$100=$A2),--(Data!$B$2:$B$100=$A$1),--(Data!$C$2:$C$100=$F$1),--(Data!$D$2:$D$100=G$1))
You can copy that across from G2 to I2
Then copy C2:I2 down as far as you need to match all the weeks in column A
Each formula then displays the count of that work type for that team for the week in that row for the staff member who appears in cell A1