I am A relative novice to VBA and I've come across a challenging problem that I've been tasked to solve. Attached is a workbook that I hope is enough to illustrate my question. If a similar question has already been asked please direct me to its thread.
First, I have the tables, MasterList (Containing detail information for High School students registered for competitions) and TeamsPerContest (Generated from MasterList that calculates the number of teams registered for Team Events). TeamsPerContest calculates this by looking at MasterList where we can see for example, that cells B12 to K14 and B18 to K20 are each a team in the CSP event (One from each school). By concatenating column-B and column-K I generate column-AF in TeamsPerContest, and using SumProduct() count the unique entries in this column giving me the number of teams in this event (2). I do this for each team event (See cells AE2 to AM2).
Then, for the table TotalParticipation the Events column ("The total number of events this school will be participating in") counts matching rows in the IndividualCount and TeamCount tables that are greater than zero.
My question is: Is there a way for me to find the number of teams in each event and the total number of events each school will be participating in using VBA and where I don't need to generate these four extra tables?
Bookmarks