Following on from a question I asked a few days ago, I need to calculate the below
I have a control Table, indicating whether each Team should be included in the results
[TABLE="class: outer_border, width: 250"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD="align: center"]Team
[/TD]
[TD="align: center"]Include[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]Team Alpha[/TD]
[TD="align: center"]Yes[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]Team Bravo[/TD]
[TD="align: center"]No
[/TD]
[/TR]
[TR]
[TD="align: center"]4
[/TD]
[TD="align: center"]Team Charlie
[/TD]
[TD="align: center"]Yes
[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]Team Delta[/TD]
[TD="align: center"]No[/TD]
[/TR]
</tbody>[/TABLE]
I then have a register of each user, and wether they were in or not on a particular day
[TABLE="class: outer_border, width: 647"]
<colgroup><col><col span="2"><col span="6"></colgroup><tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B
[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]E
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD="align: center"]Agent Name
[/TD]
[TD="align: center"]Team
[/TD]
[TD="align: center"]01/01/2018
[/TD]
[TD="align: center"]02/01/2018[/TD]
[TD="align: center"]03/01/2018[/TD]
[TD="align: center"]04/01/2018[/TD]
[TD="align: center"]05/01/2018[/TD]
[TD="align: center"]Total
[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]John[/TD]
[TD="align: center"]Team Bravo
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]In[/TD]
[TD="align: center"][/TD]
[TD="align: center"]In[/TD]
[TD="align: center"][/TD]
[TD="align: center"]0
[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]Mary[/TD]
[TD="align: center"]Team Alpha[/TD]
[TD="align: center"][/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]Kate[/TD]
[TD="align: center"]Team Delta
[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]Brian[/TD]
[TD="align: center"]Team Bravo[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"][/TD]
[TD="align: center"]In[/TD]
[TD="align: center"][/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]0
[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]Mark[/TD]
[TD="align: center"]Team Alpha[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"][/TD]
[TD="align: center"]In [/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: center"]Sarah[/TD]
[TD="align: center"]Team Charlie
[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]5
[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Total
[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Overall Total
[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
So I'd like to have a formula to calculate the volume of "In" values (for each row, column and overall) Only for teams where the Team Name in the control table has a value of "Yes" for the Include column.
Can anyone help?
I have a control Table, indicating whether each Team should be included in the results
[TABLE="class: outer_border, width: 250"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD="align: center"]Team
[/TD]
[TD="align: center"]Include[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]Team Alpha[/TD]
[TD="align: center"]Yes[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]Team Bravo[/TD]
[TD="align: center"]No
[/TD]
[/TR]
[TR]
[TD="align: center"]4
[/TD]
[TD="align: center"]Team Charlie
[/TD]
[TD="align: center"]Yes
[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]Team Delta[/TD]
[TD="align: center"]No[/TD]
[/TR]
</tbody>[/TABLE]
I then have a register of each user, and wether they were in or not on a particular day
[TABLE="class: outer_border, width: 647"]
<colgroup><col><col span="2"><col span="6"></colgroup><tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B
[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]E
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD="align: center"]Agent Name
[/TD]
[TD="align: center"]Team
[/TD]
[TD="align: center"]01/01/2018
[/TD]
[TD="align: center"]02/01/2018[/TD]
[TD="align: center"]03/01/2018[/TD]
[TD="align: center"]04/01/2018[/TD]
[TD="align: center"]05/01/2018[/TD]
[TD="align: center"]Total
[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]John[/TD]
[TD="align: center"]Team Bravo
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]In[/TD]
[TD="align: center"][/TD]
[TD="align: center"]In[/TD]
[TD="align: center"][/TD]
[TD="align: center"]0
[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]Mary[/TD]
[TD="align: center"]Team Alpha[/TD]
[TD="align: center"][/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]Kate[/TD]
[TD="align: center"]Team Delta
[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]Brian[/TD]
[TD="align: center"]Team Bravo[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"][/TD]
[TD="align: center"]In[/TD]
[TD="align: center"][/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]0
[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]Mark[/TD]
[TD="align: center"]Team Alpha[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"][/TD]
[TD="align: center"]In [/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]3[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: center"]Sarah[/TD]
[TD="align: center"]Team Charlie
[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]In[/TD]
[TD="align: center"]5
[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Total
[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Overall Total
[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
So I'd like to have a formula to calculate the volume of "In" values (for each row, column and overall) Only for teams where the Team Name in the control table has a value of "Yes" for the Include column.
Can anyone help?