Thanks, Martin! That's perfect. I figured it would be relatively simple for someone who know what to do. I tried something along these lines before, but couldn't get it to work - I was missing the COUNTIF function.

I think I'll enjoy a mojito in your honor!