How to filter sets of "n" number of numbers from a list and make an output list corresponding to the averages of those sets?

Rnkhch

Well-known Member
Joined
Apr 28, 2018
Messages
578
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a very long data set corresponding to every second (in time) of data collection from a machine, and I want to make a chart of the readings vs. time. However, there are too many readings, and I want to generate two defined names:

1. take every "n", in this case 5, readings and average them and make a new array of readings (in column F below)
2. take the "nth", in this case 1st, time of each set from above and make a new array of times (in column E below)

Here is an example XL2BB:

Blank power workbook1.xlsx
ABCDEFG
1InputOutput
2TimeValueTimeValue
30:00:01780:00:0160.4
40:00:02760:00:0651.6
50:00:03530:00:1158.4
60:00:04650:00:1637.6
70:00:05300:00:2169
80:00:0635etc.etc.
90:00:0769
100:00:0852
110:00:0931
120:00:1071
130:00:1155
140:00:1258
150:00:1375
160:00:1445
170:00:1559
180:00:1629
190:00:1747
200:00:1857
210:00:1926
220:00:2029
230:00:2154
240:00:2284
25
26
27
28etc.etc.
29
Sheet12
Cell Formulas
RangeFormula
F3F3=AVERAGE(C3:C7)
F4F4=AVERAGE(C8:C12)
F5F5=AVERAGE(C13:C17)
F6F6=AVERAGE(C18:C22)
F7F7=AVERAGE(C23:C27)



Thanks for any input! 🤗
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I was thinking of AVERAGEIFS, but I couldn't figure out how to set criteria for it to act on every 5 cells...

Perhaps a complex FILTER can do it
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,334
Members
452,636
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top