hello
I would count containing for each employee based on matching columns with the headers .
orginal data
result
I would count containing for each employee based on matching columns with the headers .
orginal data
1.xlsx | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | |||
2 | days | date | employee1 | employee2 | bra1 | bra2 | bra3 | bra4 | sel1 | sel2 | sel3 | sel4 | mr | sr | vec | tr | |||||||||
3 | sat | 1 | bra1 | sel1 | mr | bra2 | sel1 | mr | employee1 | ||||||||||||||||
4 | sun | 2 | bra1 | sel1 | mr | tr | sel1 | employee2 | |||||||||||||||||
5 | mon | 3 | bra1 | sel2 | mr | vec | employee3 | ||||||||||||||||||
6 | tue | 4 | bra2 | sel3 | sr | bra2 | sel4 | sr | employee4 | ||||||||||||||||
7 | wed | 5 | vec | bra4 | sel4 | mr | employee5 | ||||||||||||||||||
8 | thu | 6 | bra1 | sel1 | mr | tr | employee6 | ||||||||||||||||||
9 | fri | 7 | tr | bra3 | sel2 | sr | employee7 | ||||||||||||||||||
10 | employee8 | ||||||||||||||||||||||||
s |
result
1.xlsx | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
K | L | M | N | O | P | Q | R | S | T | U | V | W | |||
2 | bra1 | bra2 | bra3 | bra4 | sel1 | sel2 | sel3 | sel4 | mr | sr | vec | tr | |||
3 | employee1 | 4 | 1 | 0 | 0 | 3 | 1 | 1 | 0 | 4 | 1 | 1 | 1 | ||
4 | employee2 | 0 | 2 | 1 | 1 | 2 | 1 | 0 | 2 | 2 | 2 | 1 | 2 | ||
5 | employee3 | ||||||||||||||
6 | employee4 | ||||||||||||||
7 | employee5 | ||||||||||||||
8 | employee6 | ||||||||||||||
9 | employee7 | ||||||||||||||
10 | employee8 | ||||||||||||||
s |