+ Reply to Thread
Results 1 to 2 of 2

Calculate mean by ID number

  1. #1
    Registered User
    Join Date
    03-12-2014
    Location
    ny
    MS-Off Ver
    Excel 2003
    Posts
    1

    Calculate mean by ID number

    Hi,

    I have a 3000+ row data set with two columns: StationID and DIN (dissolved inorganic nitrogen if anyone is curious). There are 166 stations, and I would like to get the mean DIN value of each station.

    The data is set up like this:

    StationID, DIN
    1, 10.1
    1, 12.2
    1, 13.1
    2A, 3.4
    2A, 3.2
    6012, 5.6
    6012, 6.7
    6012, 6.7
    6012, 5.9

    So, my main issue is that there are a variable number of DIN readings for each station, and the stations do not follow a pattern (some have letters, not consecutive numbers, etc).

    Is there a good way of going about this?

    Thanks

    Edit. Thanks!
    Last edited by nomadofthehills; 03-12-2014 at 08:39 PM.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Calculate mean by ID number

    if you put the stations in a list then you could use averageif()
    =AVERAGEIF(A:A,E2,B:B)

    see attached
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 07-18-2013, 10:11 AM
  2. Replies: 1
    Last Post: 06-03-2013, 06:22 AM
  3. How Calculate range Min Number & Max Number (Optical)
    By johnreid7477 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 03-10-2013, 11:08 PM
  4. [SOLVED] Calculate number of FTE
    By day92 in forum Excel General
    Replies: 3
    Last Post: 06-26-2012, 02:05 PM
  5. Replies: 1
    Last Post: 09-19-2011, 09:40 PM

Tags for this Thread

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