+ Reply to Thread
Results 1 to 2 of 2

Average for range of values (VLOOKUP?)

  1. #1
    Registered User
    Join Date
    12-07-2006
    Posts
    2

    Red face Average for range of values (VLOOKUP?)

    Hi - I'm trying to get the average for a set of values distingushed from the main group by a value in a corresponding column.
    Presumably I need a lookup function but can't figure out quite how to do it.
    e.g.
    #1 #2
    a 12
    a 10
    a 9
    b 24
    b 26
    c 17
    c 14
    a 16
    Q. How do i get the average for all of the values correpsonding to a's b's and c's?

    Cheers
    Poolio

  2. #2
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    Hi,

    You can use SUMIF and COUNTIF to do this. Thus:

    =SUMIF(A1:B12,"a",B1:B12)/COUNTIF(A1:A12,"a")

    ...will give you the average for the a's.

    HTH,

    SamuelT
    Last edited by SamuelT; 01-09-2007 at 08:28 AM.

+ 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