Is the text you're looking for still in column F, or has it shifted with the data to column G? My code assumed the latter, but if I was wrong then it will be looking to match the text in the wrong column, which would explain why nothing is being written to the Stats sheet.
As for a more efficient way, something like the following, perhaps ...
The key line is:
Which you can expand to look for as many options as you like without needing to change the rest of the code in any way at all, e.g.
The only other bit that you might want to change is:
Which sets the left hand column to sum, the right hand column to sum and the column to search for the option text. So in this example it's set to sum from column 2 (B) to column 7 (G) and search in column 6 (F). If you wanted to sum columns C to H you'd change it to:
Want to give that a try and see how it goes?
Bookmarks