Hi,
Attached spreadsheet is the example. I need to calculate and show average of each 6 cells in a column. The file is too big so please avoid copy/paste function.
I will appreciate your time and help.
Thanks in advance.
Hi,
Attached spreadsheet is the example. I need to calculate and show average of each 6 cells in a column. The file is too big so please avoid copy/paste function.
I will appreciate your time and help.
Thanks in advance.
Hi Canada,
Looks like an Indirect formula using Rows... Something like:
=AVERAGE(INDIRECT("A"&INT((ROW()-2)/6)+2 &":A"&INT((ROW()-2)/6)+8))
See the attached.
One test is worth a thousand opinions.
Click the * Add Reputation below to say thanks.
Hi Marvin,
Thanks for quick response. It seems fianl result do not match with what it should be. Please refer attached file.
Please advise new solution.
Sorry,
Try this one which works:
Please Login or Register to view this content.
in c2
=AVERAGE(INDEX(A:A,CEILING(ROW(A1),6)-4):INDEX(A:A,CEILING(ROW(A1),6)+1))
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
In C2
=AVERAGE(INDEX($A$2:$A$19,(INT((ROW(A1)-1)/6))*6+1):INDEX($A$2:$A$19,(INT((ROW(A1)-1)/6))*6+6))
Copy down
Life's a spreadsheet, Excel!
Say thanks, Click *
MarvinP/Martindwilson/Ace_XL,
Thanks a lot. It worked perfect.
Last edited by canada123; 04-09-2014 at 04:08 PM. Reason: Wanted to include all who replied
Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.
In future, to mark your thread as Solved, you can do the following -
Select Thread Tools-> Mark thread as Solved.
Incase your issue is not solved, you can undo it as follows -
Select Thread Tools-> Mark thread as Unsolved.
Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
If I have helped, Don't forget to add to my reputation (click on the star below the post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
Use code tags when posting your VBA code: [code] Your code here [/code]
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks