Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 358
Default DAVERAGE

Hi Bob,
your formula: =AVERAGE(IF(Main!$C$2:$C$266=C11,Main!$FF$2:$FF$26 6))

returns 0, when I am expecting a nonzero return.


Elkar's formula works, but only in that one cell.
-Andrew

"Bob Phillips" wrote:

Try this array formula

=AVERAGE(IF(Main!$C$2:$C$266=C11,Main!$FF$2:$FF$26 6))

--
__________________________________
HTH

Bob

"Andrew" wrote in message
...
That does seem to work locally, but I can't spread it across the
spreadsheet
without getting a VALUE error. I then tried removing the dollars signs
from
the moving cells FF, but have not quite got it yet.

"Elkar" wrote:

How about something like:

=SUMPRODUCT(--(Main!$C$2:$C$266=$C11),Main!$FF$2:$FF$266)/SUMPRODUCT(--(Main!$C$2:$C$266=$C11),--(Main!$FF$2:$FF$266<""))

HTH
Elkar


"Andrew" wrote:

I am trying to reduce a large dataset of 266 individuals of 23 species
into
one that just includes the means of each species. Species names are
text
entries in column C. There are some missing data points, so I could
not
simply use:
=SUMIF(Main!$C$2:$C$266,$C11,Main!FF$2:FF$266)/COUNTIF(Main!$C$2:$C$266,$C11)
because the countif is not counting the exact cells going into the sum.

So my current approach is to use DAVERAGE. I am specifying the
worksheet(Database?), column, and criteria. The criteria compares text
in
the 2 columns

Daverage(Main!1:65536,FF$2:FF$266,Main!$C$2:$C$266 =$C11)
however, I am getting a #VALUE error.
any help, thanks






 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DAVERAGE AAS Excel Discussion (Misc queries) 7 May 29th 08 10:41 PM
daverage PClancy Excel Worksheet Functions 1 August 29th 06 05:10 PM
DAVERAGE criteria HELP!!!! farmedgirl Excel Discussion (Misc queries) 2 April 23rd 06 01:02 PM
Daverage nir020 Excel Discussion (Misc queries) 9 November 1st 05 07:47 PM
daverage problems Jay Excel Worksheet Functions 3 June 1st 05 04:15 PM


All times are GMT +1. The time now is 08:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"