The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Formula for average of few cells in column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Robbe Degroote

Belgium
5 Posts

Posted - 11/29/2024 :  1:59:36 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi

I'm looking for a formula to obtain the average of every 4 cells.
Currently I'm doing it manualy by typing mean(B1:B4) in cell C1, then in cell C5 I type mean(C5:C8), and so on.

I am hoping there is a formula to enter in the F(x) that calculates the average of a cell and the 3 consecutive cells.

Can someone help me?

snowli

USA
1390 Posts

Posted - 11/29/2024 :  10:49:12 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
In F(X) of C, you can enter ave(B, 4) to get the average of every 4 cells.
But it will be put to C1, C2, C3, instead of C1, C5, C9, ....

If you really want results on C1, C5, C9,... only, you can enter the following F(x) of C.

if(mod(i-1,4)==0, Movavg(B,0,3), --)


Thanks, Snow
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000