+ Reply to Thread
Results 1 to 4 of 4

Formula, Averages by name, and differences of averages

  1. #1
    Registered User
    Join Date
    02-19-2010
    Location
    East Coast, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Formula, Averages by name, and differences of averages

    Hello I have a long spreadsheet of names with results from 2 different tests

    I would like to be able to calculate the average test result per test per name, and then calculate the difference of those 2 averages, per name


    name | A | B |AVE A | AVE B | diff
    Bob | 2 | 4 |
    Bob | 3 | 5 |
    Bob | 2 | 4 | 6 | 4.3 | 1.7

    Its a large data set, so i would not like to do each name manually.

    thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Formula, Averages by name, and differences of averages

    Since you have Excel 2007, you can use the AVERAGEIF function.

    In D6: =AVERAGEIF($A$4:$A$16,$A6,$B$4:$B$16)
    In E6: =AVERAGEIF($A$4:$A$16,$A6,$C$4:$C$16)
    In F6: =ABS(D6-E6)
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    02-19-2010
    Location
    East Coast, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Formula, Averages by name, and differences of averages

    Hello Palmetto,

    Thank you for your help. Anyway to do this in 2003?

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Formula, Averages by name, and differences of averages

    Anyway to do this in 2003?
    in E6: =SUMPRODUCT(--($A$4:$A$16="Bob"),--($B$4:$B$16))/COUNTIF($A$4:$A$16,"Bob")

    In F6: =SUMPRODUCT(--($A$4:$A$16="Bob"),--($C$4:$C$16))/COUNTIF($A$4:$A$16,"Bob")

+ 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