I have three columns. Column A consists of numbers, column B consists of bin ranges, and column C consists of number data relevant to the individual data in column A.
Using columns A and B, I created a frequency histogram where all the data in column A have been grouped into the bins of column B. I would like to calculate the average value of each bin using the data from column C (i.e., calculate a mean value for each bin using data from column C that is associated to each value (from column A) that made up each bin).
Can anybody help?
Thanks for the replies. Here is an example of the data (Unfortunately I can not paste in images):
Below are three columns with headers Jar Type (in volume (ml)), Cookies (he number of chocolate chip cookies in the jar), and Interval for bins (bins to count the jar types):
- Jar type-cookies-intervals for bins
- 500 3 100
- 500 1 150
- 500 0.5 200
- 250 3 250
- 150 1 300
- 500 1 350
- 150 2 400
- 250 2 450
- ### # 500
Making a histogram of the frequency of jar types gives this grouping:
- Bin-Frequency
- 100 0
- 150 2
- 200 0
- 250 2
- 300 0
- 350 0
- 400 0
- 450 0
- 500 4
- More 0
Now what I am trying to do is to find out what is the mean number of cookies that can be found in each type of jar. For example, for the 500ml we know that there are 4x500ml jars, and that in each of the 500ml we have 3+1+0.5+1 = 5.5 cookies in total. the mean would be 1.735 cookies.
My issue is that I have 5000+ numbers that separate into 100 bins.


