+ Reply to Thread
Results 1 to 5 of 5

Is there a binning function for data sets?

  1. #1
    Registered User
    Join Date
    07-24-2014
    Location
    LA, USA
    MS-Off Ver
    2013
    Posts
    4

    Is there a binning function for data sets?

    Hello,

    I have several data sets taken from an instrument recording the same sample. The data are noisy so I would like to average them. Annoyingly, the operating software for the instrument allows you to specify start and end values, but not the amount of points in between (unbelievable, I know). I therefore have data which looks like:

    25, 1
    25.1, 5
    25.6, 7
    25.8, 10
    25.9, 12

    and

    25.1, 1
    25.4, 4
    25.7, 6
    25.9, 14

    So each replicate has a different sampling rate (the data set is much larger than the example above though). Is there any built-in Excel function to standardize these data to a fixed amount of x values, and perhaps averaging both the X and Y values of all points within the bin?

    Thanks,

    Dan

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Is there a binning function for data sets?

    have you tried AVERAGEIFS : http://office.microsoft.com/en-us/ex...010047493.aspx ?

    Let's assume your data is in A and B columns and in C1 you have a left limit of range (say 25)

    like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    to have average of Xes for 25-26 range
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and average of Yes for Xes in 25-26 range
    You may also use COUNTIFS (similar syntax) to count .

    If I spotted point - just enjoy (and mark thread Solved - see in our rules how) , if not - attach dummy file with some more data and "manually calculated" result you are looking for.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    07-24-2014
    Location
    LA, USA
    MS-Off Ver
    2013
    Posts
    4

    Re: Is there a binning function for data sets?

    I don't think that's quite what I needed... AverageIFs will bin cell "Bn" if the value of "Bn" falls within a criterion. I was looking for something that would bin cell "Bn" of the value of neighboring cell "An" falls within a criterion. It might be a bit much to ask from Excel. In any case, I already wrote a C# program to do it for me.

    Thanks!

    Dan

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Is there a binning function for data sets?

    Either me or you didn't understand.
    Have a look on what I wrote as second formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    it averages cells from column B for which neighboring cell (in column A) falls within a criterion (between value C1 asn C1+1).
    Anyway, as the problem has already been solved in C# it's info just for your/someone else browsing the thread.

    (hope that C# sub was a part of some other data processing - otherwise ... we have such a proverb/saying in Polish: "strzelać z armaty do wróbla" - translating directly it is to "fire a cannon on a sparrow" and rough equivalent: "take a sledgehammer to crack a nut")

  5. #5
    Registered User
    Join Date
    07-24-2014
    Location
    LA, USA
    MS-Off Ver
    2013
    Posts
    4

    Re: Is there a binning function for data sets?

    Ah yes, you are correct. Sorry, I did misunderstand your post. Fortunately I was firing a cannon at a tank - the C# Excel code was just a nice presentation code to add to a bunch of data parsing and processing - would have taken weeks to do by hand!

    Thanks!

+ 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. Function to Input sets of data, then write the output
    By Nater5000 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-13-2013, 04:25 PM
  2. [SOLVED] Binning Time Stamped Data into Intervals
    By pickslides in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-29-2012, 05:48 PM
  3. Using Count/Frequency/Binning to sort data
    By Jarvice in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2012, 06:28 AM
  4. Binning X-Axis Data
    By dluckz77 in forum Excel General
    Replies: 0
    Last Post: 01-30-2012, 09:44 PM
  5. Binning Data Over Numerical Intervals
    By Adam1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-08-2011, 10:00 PM

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