Thread: average if
View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sandy Mann Sandy Mann is offline
external usenet poster
 
Posts: 2,345
Default average if

That is because array formuals cannot work on whole columns. Try setting a
range like:

=AVERAGE(IF(A1:A1000="Start of Day",B1:B1000))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Gaurav" wrote in message
...
Actually it gives me a 0 if i press enter and a #NUM! error if i press
CTRL+SHIFT+ENTER

"John Bundy" (remove) wrote in message
...
That is what is known as an array formula, when you are done, instead of
just
hitting enter, you have to hit CTRL+Shift+Enter. If you did it right you
should se a {} around your formula.
--
-John
Please rate when your question is answered to help us and others know
what
is helpful.


"Gaurav" wrote:

Hi All,

I am trying to take out the average of all the values in column B which
have
"Start of Day" in Coumn A. I tried =AVERAGE(IF(A:A="Start of Day",B:B))
but
doesnt work...need help.

Thanks
Gaurav