MS Excel 2003: Counting matched pairs

Source: www.techonthenet.com