+ Reply to Thread
Results 1 to 3 of 3

Compute Average base on different column

  1. #1
    Registered User
    Join Date
    05-19-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    7

    Compute Average base on different column

    Hi all,

    Is there any built in function to perform the task below or I need to write my own macro for that?

    Name Column2 Value
    A a 2
    B b 3
    A c 5
    C d 6
    C a 8
    D a 9

    How do I compute the average of Name column value
    i.e. A = (2 + 5) / 2 = 3.5 Since Row 1 and 3 have name A and
    C will be 14/2 = 7 and display onto other cell?

    Please advise

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Compute Average base on different column

    Either use a Pivot Table or given use of XL2007 see AVERAGEIF function in XL Help

    =AVERAGEIF(A:A,"A",C:C)

    note above function is not backwards compatible with earlier versions - for compatibility:

    =SUMIF(A:A,"A",C:C)/COUNTIF(A:A,"A")

  3. #3
    Registered User
    Join Date
    05-19-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Compute Average base on different column

    Thanks, Pivot table is cool

+ 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