Bingo, Mr. Shuttleworth. I tried COUNTIFS once but it didn't work either. Apparently I didn't do something correctly, because when I tried again it worked perfectly.

Nice of you to respond from clear over across the pond. Hope England has a nice Christmas.

Thank you.