Mark,
I'll assume that your example data ccupy the range A1:C3.
Enter the names of interest in D from D2 on.
Enter Y in E1 and N in F1.
Array-enter (that is, hit CONTROL+SHIFT+ENTER at the same time to enter) the following formula in E2:
=SUM(($B$1:$B$3=$D2)*($C$1:$C$3=E$1))
Copy this across to E2 then down as far as needed.
Aladin
==============
Hi Mark
You could also use and array formula like:
=SUM(($A$2:$A$400="Dave")*($B$2:$B$400="Y"))
Or one of the Database functions, ie; DCOUNTA
There is a lot of examples in the Excel help on these.
But if you have got a Pivot Table, then that is by far the best way, Folowed by the DCOUNTA and lastly the Array formula.
I know the temtation is there to use an array formula as it's easier, read my Webpage on arrays first.
Dave
OzGrid Business Applications