View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
blackstar
 
Posts: n/a
Default average calculation

using the formula below i've been able to get the sum of column B if the
corresponding cell in column A says "spring". my question is
how can i do the same thing but to get the AVERAGE instead of the SUM.

=SUMPRODUCT(--(A2:A14="spring"),(B2:B14))