Hi Folks,
Can someone please help me out here?
Say I have an excel sheet that looks like this:
I need a macro that can look through the above table, count the number of VOCs performed per trainer per date, then add a row and paste the details in another sheet that looks similar to the below:
Is that possible?
Can someone please help me out here?
Say I have an excel sheet that looks like this:
Trainer | Site | VOC 1 | VOC 2 | VOC 3 | VOC 4 | VOC 5 | VOC 6 | VOC 7 | VOC 8 | VOC 9 | VOC 10 | VOC 11 |
Name 1 | Site 1 | 15/09/2021 | 15/09/2021 | |||||||||
Name 1 | Site 1 | 14/09/2021 | 17/08/2021 | |||||||||
Name 1 | Site 11 | 14/09/2021 | ||||||||||
Name 1 | Site 6 | 20/09/2021 | ||||||||||
Name 10 | Site 10 | 09/09/2021 | 07/09/2021 | |||||||||
Name 10 | Site 15 | 26/08/2021 | ||||||||||
Name 10 | Site 5 | 03/08/2021 | 03/08/2021 | |||||||||
Name 2 | Site 12 | 27/09/2021 | ||||||||||
Name 2 | Site 2 | 24/09/2021 | 24/09/2021 | 24/09/2021 | 24/09/2021 | 24/09/2021 | 24/09/2021 | |||||
Name 2 | Site 2 | 17/08/2021 | ||||||||||
Name 2 | Site 7 | 26/08/2021 | ||||||||||
Name 3 | Site 13 | 28/08/2021 | ||||||||||
Name 3 | Site 3 | 27/08/2021 | ||||||||||
Name 3 | Site 3 | 27/08/2021 | ||||||||||
Name 3 | Site 8 | 11/08/2021 | 11/08/2021 | 11/08/2021 | 11/08/2021 | 11/08/2021 | ||||||
Name 4 | Site 14 | 19/08/2021 | ||||||||||
Name 4 | Site 4 | 21/09/2021 | 21/09/2021 | |||||||||
Name 4 | Site 4 | 20/08/2021 | 20/08/2021 | 20/08/2021 | 20/08/2021 | 20/08/2021 | ||||||
Name 4 | Site 9 | 03/09/2021 | ||||||||||
Name 5 | Site 10 | 20/09/2021 | ||||||||||
Name 5 | Site 15 | 04/08/2021 | ||||||||||
Name 5 | Site 5 | 11/08/2021 | 11/08/2021 | 11/08/2021 | 11/08/2021 | 11/08/2021 | ||||||
Name 5 | Site 5 | 27/08/2021 | 27/08/2021 | 27/08/2021 | ||||||||
Name 6 | Site 1 | 26/08/2021 | ||||||||||
Name 6 | Site 11 | 21/09/2021 | ||||||||||
Name 6 | Site 6 | 19/08/2021 | 19/08/2021 | 19/08/2021 | 19/08/2021 | |||||||
Name 6 | Site 6 | 27/08/2021 | 27/08/2021 | 27/08/2021 | 27/08/2021 | |||||||
Name 7 | Site 12 | 26/08/2021 | ||||||||||
Name 7 | Site 2 | 24/08/2021 | 24/08/2021 | 24/08/2021 | 24/08/2021 | 24/08/2021 | ||||||
Name 7 | Site 7 | 31/08/2021 | ||||||||||
Name 7 | Site 7 | 20/09/2021 | ||||||||||
Name 8 | Site 13 | 19/08/2021 | ||||||||||
Name 8 | Site 3 | 25/08/2021 | ||||||||||
Name 8 | Site 8 | 22/09/2021 | ||||||||||
Name 8 | Site 8 | 21/09/2021 | 21/09/2021 | 21/09/2021 | ||||||||
Name 9 | Site 14 | 09/09/2021 | ||||||||||
Name 9 | Site 4 | 14/09/2021 | ||||||||||
Name 9 | Site 9 | 27/08/2021 | ||||||||||
Name 9 | Site 9 | 12/08/2021 |
I need a macro that can look through the above table, count the number of VOCs performed per trainer per date, then add a row and paste the details in another sheet that looks similar to the below:
Date | Trainer | Category 1 (VOC 1) | Category 2 (VOC 2) | Category 3 (VOC 3) | Category 4 (VOC 4+5+6) | Category 5 (VOC 7) | Category 6 (VOC 8+9+10) | Category 7 (VOC 11) |
15/09/2021 | Name 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
14/09/2021 | Name 1 | 0 | 0 | 2 | 0 | 0 | 0 | 0 |
20/09/2021 | Name 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
17/08/2021 | Name 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09/09/2021 | Name 10 | 0 | 1 | 0 | 0 | 1 | 0 | 0 |
07/09/2021 | Name 10 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
26/08/2021 | Name 10 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
03/08/2021 | Name 10 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
09/09/2021 | Name 9 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
14/09/2021 | Name 9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
Is that possible?