I have a huge spreadsheet tracking team members and percentage of completed tasks. What I want is an IF statement that dynamically changes as the number of team members changes.
For example,
I have 10 rows of data.
Say Column A is Team number, and Column B is percentage of tasks complete.
The first 4 rows are members that belong to Team 1, the Second 4 rows are team members from team 2, the last 2 rows are team members from team 3.
Each of them has a different percentage complete for their tasks, which is in column B. What I want is an average of the teams overall percentage complete.
Heres the kicker, the teams are not yet completely set. People get switched from one team to another and their work moves with them. I am wasting a large amount of time right now switching the range of my cells. Currently my formula for the average of Team 1 is "=AVERAGE(B1:B4)"
What I want is an If statement that will scan the whole worksheet and wherever Team 1 is present, it will give me the average of the B column cells that are associated with team 1. Is this even possible in excel? I know I could do it in a regular programming language, but don't know if Excel is robust enough to do this.
Edit:
And the spreadsheet would look like this.
Team 1 100%
Team 1 100%
Team 1 50%
Team 1 25%
Team 2 50%
Team 2 30%
Team 2 40%
Team 2 100%
Team 3 30%
Team 3 50%
For example,
I have 10 rows of data.
Say Column A is Team number, and Column B is percentage of tasks complete.
The first 4 rows are members that belong to Team 1, the Second 4 rows are team members from team 2, the last 2 rows are team members from team 3.
Each of them has a different percentage complete for their tasks, which is in column B. What I want is an average of the teams overall percentage complete.
Heres the kicker, the teams are not yet completely set. People get switched from one team to another and their work moves with them. I am wasting a large amount of time right now switching the range of my cells. Currently my formula for the average of Team 1 is "=AVERAGE(B1:B4)"
What I want is an If statement that will scan the whole worksheet and wherever Team 1 is present, it will give me the average of the B column cells that are associated with team 1. Is this even possible in excel? I know I could do it in a regular programming language, but don't know if Excel is robust enough to do this.
Edit:
And the spreadsheet would look like this.
Team 1 100%
Team 1 100%
Team 1 50%
Team 1 25%
Team 2 50%
Team 2 30%
Team 2 40%
Team 2 100%
Team 3 30%
Team 3 50%