Is there an AVERAGE IF function in Excel? in Excel Worksheet Functions  
 |  Edit my Profile  |  Help
 
     
  
 
 
 
eliwaite 5/16/2005 11:18 AM PST
  Question
  I trying to average one row if another row's value is true. I know there is a
sumif, and a countif, but couldn not find an averageif. If you could let me
know who to do this, that would be wonderful.

Thank you,
Eli
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Bernie Deitrick 5/16/2005 11:28 AM PST
  Answer
  Eli,

Simply use SUMIF/COUNTIF using the same criteria.

HTH,
Bernie
MS Excel MVP


"eliwaite" <eliwaite@discussions.microsoft.com> wrote in message
news:8B8C3610-78A7-47E7-98E4-81055B635C41@microsoft.com...
> I trying to average one row if another row's value is true. I know there
is a
> sumif, and a countif, but couldn not find an averageif. If you could let
me
> know who to do this, that would be wonderful.
>
> Thank you,
> Eli


 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Don Guillett 5/16/2005 11:47 AM PST
   
  Yes, it's an array formula which must be entered with ctrl+shift+enter,
something like.

=average(if(a1:a21="J",b1:b21)

--
Don Guillett
SalesAid Software
donaldb@281.com
"eliwaite" <eliwaite@discussions.microsoft.com> wrote in message
news:8B8C3610-78A7-47E7-98E4-81055B635C41@microsoft.com...
> I trying to average one row if another row's value is true. I know there
is a
> sumif, and a countif, but couldn not find an averageif. If you could let
me
> know who to do this, that would be wonderful.
>
> Thank you,
> Eli


 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
BradHaberman 5/16/2005 5:35 PM PST
   
  eliwaite Wrote: > I trying to average one row if another row's value is true. I know there > is a
> sumif, and a countif, but couldn not find an averageif. If you could > let me
> know who to do this, that would be wonderful.
>
> Thank you,
> Eli

How about
IF(*row is true*, average(array), *row not true*)

Where *row is true* is the row being checked and *row not true* is what is expected if false ie,. "" for a null string. -- BradHaberman
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
  Return to Microsoft Communities  Notify me of replies