Is there a way to find the nth occurrence of a value in a column using vba code?
so a little info on what im looking for.
im working on a hockey game simulator. the columns below represent which team scored and which player scored the goal. what i would like to achieve is figure out which player scored the game winning goal ( in the example below it would be playerD )
teamA playerA
teamA playerB
teamB playerC
teamA playerD
teamB playerE
teamA playerF
i have been playing with using the difference in goals between the teams as an integer and then working my way up the column to find the winning goal (if possible!!) but cant quite figure that out
keep in mind that the teams, number of goals, and order of goals will be dynamic and always different. i foresee a possible issue with games where one team gets no goals, but hopefully thats not the case.
i will keep trying to figure this one out on my own, but any help would be greatly appreciated
thanks
Bookmarks