+ Reply to Thread
Results 1 to 7 of 7

Grouping data to find average value of related data on big data set

  1. #1
    Registered User
    Join Date
    06-06-2012
    Location
    Aberdeen
    MS-Off Ver
    Excel 2007, 2010
    Posts
    4

    Grouping data to find average value of related data on big data set

    Hi, (sorry for rubbish thread title)

    First time posting in this forum but I've become totally stuck on what I first though would be a relatively easy issue...maybe it is, but I cannot find a solution to it.

    The "machine", which I do my scientific work on, dumps out FAR too many data points than necessary and I wanted to scale the info down by a factor of ten or so.

    SO, I thought easiest and most scientific would be to round the numbers present in the "Mass" column to whole numbers (see attached file), which would mean I would be able to group according to the same mass value; then calculating the average Intensity based on previous grouping: which would result in a single whole number Mass giving a single average intensity.

    I've tried to explain what I mean in the attachment, the only columns I need for output is I & J (I've added in Rows 1&2 for clarity).
    Should also mention that mass column continues until A169206 (as I said too much data) and I have another 4000 odd excel files to put through the same processing.

    Any help would be much appreciated, and apologies in advance if this problem has already been dealt with in previous threads.

    Murray
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Grouping data to find average value of related data on big data set

    You are probably looking at the AVERAGEIF function to generate your numbers and a macro to automate the processing for the many workbooks.

    Do you just need to put the averages in each workbook or extract the averages into a separate summary file?
    Martin

  3. #3
    Registered User
    Join Date
    06-06-2012
    Location
    Aberdeen
    MS-Off Ver
    Excel 2007, 2010
    Posts
    4

    Re: Grouping data to find average value of related data on big data set

    Ah ha!,

    That would be correct and makes my life a lot easier. Realise what a plank I have been! Had all sorts of custom functions going on generating all values within series in single cell then splitting the cell to work out value.

    Wondering if there is a way a generating MEAN values for the same set of data, a MEANIF function...

    It would be brilliant to extract the data into separate summary file, but I need time to have a think if it would be worth while and how to go about doing it...The file would get rapidly massive!

    Thanks for all your help! (And the rapid response)

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Grouping data to find average value of related data on big data set

    Which mean do you mean ? Expected value/geometric/harmonic/arithmetic etc.?

    If you wanted a summary file, it could be done by two steps. First getting a listing of files and paths (example on my download page) and then a macro to open each in turn, do the claculations, copy of the values and then close.

  5. #5
    Registered User
    Join Date
    06-06-2012
    Location
    Aberdeen
    MS-Off Ver
    Excel 2007, 2010
    Posts
    4

    Re: Grouping data to find average value of related data on big data set

    Sorry, MEDIAN IF function!!

  6. #6
    Registered User
    Join Date
    06-06-2012
    Location
    Aberdeen
    MS-Off Ver
    Excel 2007, 2010
    Posts
    4

    Re: Grouping data to find average value of related data on big data set

    Sorry, MEDIAN IF function!!

  7. #7
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Grouping data to find average value of related data on big data set

    You are not the first person to ask for this. Try Googling Excel MEDIANIF. Please come back to the thread if none of these work for you.

+ 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