+ Reply to Thread
Results 1 to 2 of 2

average calculation

  1. #1
    blackstar
    Guest

    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))

  2. #2
    Biff
    Guest

    Re: average calculation

    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" <blackstar@discussions.microsoft.com> wrote in message
    news:40620860-96F2-4FD6-AC19-7A6F8F815B80@microsoft.com...
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1