Thread: array error
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default array error

Shawn

Your including the header, try this


=SUM((A2:A4=A2)*(B2:B4=B2)*C2:C4)

we get an answer of 2

Mike


"Shawn" wrote:

Here is the formula (entered as an array):
{=SUM((A1:A4=A2)*(B1:B4=B2)*C1:C4)}


Here is the table:

School Year NO. OF PHYSICALS
Jones 2008-2009 2
Sam 2008-2009
Alex 2008-2009


Why am I getting #Value instead of 2?


--
Thanks
Shawn