View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default averaging values according to (very) complex conditions

For only one condition, Faster would be:

=Sumif(B1:B100,"myValue",A1:A100)/COUNTIF(B1:B100,"myValue")

--
Regards,
Tom Ogilvy

"liory " wrote in message
...
Please help! There must be a way to make excel do this:

I'm trying to compute a formula to average values only if they meet
certain criteria.
I am working on outputs generated by Superlab Pro. The data are from an
experiment where trials are randomised.

I need Excel to average all values from, say column A providing that
they correspond to condition x in column B (so average all the values
which are in a row that contains the term x in column B) , AND
condition y in column C AND condition z in column D.

The key problem is that I can't know in advance which rows will contain
the term x, y or z, so I wonder if there is a way to specify "any of
the rows which contain a specific term" or something similar....

I would be extrememly grateful for any advice. This would make my life
so much easier.

Thanks,
Liory


---
Message posted from http://www.ExcelForum.com/