+ Reply to Thread
Results 1 to 4 of 4

Averaging values from rows with identical column

  1. #1
    Registered User
    Join Date
    02-14-2012
    Location
    Arizona, USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Averaging values from rows with identical column

    Hello,

    I'm hoping there's a way to do this...

    I need to compare averages from two datasets that have one column in common... The common column includes 1,934 unique values all of which represent a forested area broken down into 30x30 meter pixels... My worksheet has a total of 10,529 rows.... I need to average the values from column C (RAVG_BA7_class) for all identical column D (setting ID).. I then need to repeat this for column E (FVS_BA7_class) so that I can compare the results from C and E for each setting ID....

    Attached is my amazing data... I'm tryin to avoid having to sort the data based on Column D and manual average from there...

    Thanks for any help!
    Attached Files Attached Files
    Last edited by Broccoli; 02-15-2012 at 03:50 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Averaging values from rows with identical column

    As you are using XL2007, you can use AVERAGEIF for this - put this formula in F2:

    =AVERAGEIF($D$2:$D$10529,D2,$C$2:$C$10529)

    and this one in G2:

    =AVERAGEIF($D$2:$D$10529,D2,$E$2:$E$10529)

    then copy down. The attached workbook shows this - I think you had text values in column E, but I have converted these to numeric values.

    Hope this helps.

    Pete
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-14-2012
    Location
    Arizona, USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Averaging values from rows with identical column

    Pete! Thank you! I think that worked beautifully!

    Thanks again and take care!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Averaging values from rows with identical column

    You're welcome.

    You might like to mark the thread as Solved, and you can also click on the "star" icon in the bottom left corner or any post that has helped you.

    Pete

    EDIT: scrub that - I see that you have already done so !!

+ 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