Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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)) |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi!
=SUMPRODUCT(--(A2:A14="spring"),(B2:B14)) Better: =SUMIF(A2:A14,"spring",B2:B14) Best: C1 = spring =SUMIF(A2:A14,C1,B2:B14) For the average: =SUMIF(A2:A14,C1,B2:B14)/COUNTIF(A2:A14,C1) Biff "blackstar" wrote in message ... 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)) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Average Calculation | Excel Worksheet Functions | |||
Conditional reference on average interest calculation | Excel Worksheet Functions | |||
How do I exclude a cell from an average calculation when the cell. | Excel Discussion (Misc queries) | |||
plotted Average | Charts and Charting in Excel | |||
What is this kind of average called? | Excel Worksheet Functions |