Solved

binned average of large set of data

Posted on 2016-10-06
10
23 Views
Last Modified: 2016-11-11
i want to do average of large set of data. For example 1,1,1,1,2,2,2,2,2,3,3,4,4,4,4,5,5,6,7,7,7,7,7,7

i need average of 1,1,1,1 and than 2,2,2,2,2 and than 33 and than 4444 and than 55 and than 6 and than 777777. is it possible ? can any one help me in this ?

=IF(MOD(ROW(),20)=1,AVERAGE(OFFSET(K1,,,20)),"") works but only same number of bin every time. here,  bin is variable ...looking answer from some expert...
average.xlsx
0
Comment
Question by:Nikhil Sharma
10 Comments
 

Author Comment

by:Nikhil Sharma
ID: 41832601
i want to do average of large set of data. For example 1,1,1,1,2,2,2,2,2,3,3,4,4,4,4,5,5,6,7,7,7,7,7,7

i need average of 1,1,1,1 and than 2,2,2,2,2 and than 33 and than 4444 and than 55 and than 6 and than 777777. is it possible ? can any one help me in this ?

=IF(MOD(ROW(),20)=1,AVERAGE(OFFSET(K1,,,20)),"") works but only same number of bin every time.  bin is variable ...looking answer from some expert... please find the attched file
average.xlsx
0
 
LVL 92

Assisted Solution

by:Patrick Matthews
Patrick Matthews earned 250 total points
ID: 41832619
Why not simply use a PivotTable?
0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 41833223
Average of 1,1,1,1 = 1
Average of 2,2,2,2,2 = 2
Average of 3,3 = 3

What are you trying to achieve??
0
 

Author Comment

by:Nikhil Sharma
ID: 41833525
i have acquired the data from experiment. The data is in excel form. I have attached the sheet with question. This contains about 2000 data points. Like this , i have 40 sheets. I was looking for some formula in excel which can solve this.

this formula
=IF(MOD(ROW(),20)=1,AVERAGE(OFFSET(K1,,,20)),"")
gives me average of 20 data sets and i have to pull the formula up to 2000 data points. However,in my case the interval is not fixed. It depends on repetition of number.

please see the attached file.
average--2-.xlsx
0
 

Author Comment

by:Nikhil Sharma
ID: 41833528
0.5      53.35
0.5      57.19
0.6      61.03
0.6      58.94
0.6      48.11
0.7      45.66
0.7      41.47
0.7      47.06
0.8      42.87
0.8      41.47
0.8      47.41
0.8      39.72
0.8      39.03
0.8      42.52
0.8      25.05
0.9      33.44
0.9      25.40
0.9      20.86
0.9      30.64
0.9      10.03
0.9      25.05
1.0      23.66
1.0      30.29
1.0      29.94
1.0      19.47
1.0      25.05
1.0      7.24
1.0      -2.89


average of .5 , .5 than .6,.6,.6 and .7,.7,.7 and so on.....but using some formula ....its logic can be , average till same number appears other wise move to next...
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 32

Expert Comment

by:Rob Henson
ID: 41833557
But your values in column F are not the same, they are rounded to 1 decimal place. Do you want the average based on the rounded value?

If so, in column H:

=ROUND(F1,1)

and in column I

=IF(H1=H2,"",AVERAGEIF($H$1:$H$2005,H1,$G$1:$G$2005))

Copy both down as far as required. The Average will show on the last entry for each value in F.

Thanks
Rob H
0
 
LVL 32

Accepted Solution

by:
Rob Henson earned 250 total points
ID: 41833580
Alternative, with Pivot Table as suggested by Patrick in attached file. Also shows formula option above.
average--2-.xlsx
0
 

Author Comment

by:Nikhil Sharma
ID: 41833660
This worked. I appreciate your quick response. This will save my time. Thanks a lot Mr. Rob Henson and Mr.  Patrick.

Thanks for spending your valuable time on answering my question.
0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 41840124
If you have no further questions, please do not forget to close the question. You can choose an Accepted solution and Assisted solution if so required.

Thanks
Rob H
0
 
LVL 13

Expert Comment

by:frankhelk
ID: 41883546
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Split:
-- Rob Henson (https:#a41833580)
-- Patrick Matthews (https:#a41832619)


If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

frankhelk
Experts-Exchange Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now