+ Reply to Thread
Results 1 to 8 of 8

Average of 6 cells on too long file

  1. #1
    Registered User
    Join Date
    02-05-2010
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    41

    Average of 6 cells on too long file

    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.
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Average of 6 cells on too long file

    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.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    02-05-2010
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Average of 6 cells on too long file

    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.
    Attached Files Attached Files

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Average of 6 cells on too long file

    Sorry,

    Try this one which works:

    Please Login or Register  to view this content.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Average of 6 cells on too long file

    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

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Average of 6 cells on too long file

    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 *

  7. #7
    Registered User
    Join Date
    02-05-2010
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Average of 6 cells on too long file

    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

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Average of 6 cells on too long file

    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]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to create daily average from LONG list of hourly data
    By wrf_89 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-13-2017, 12:20 PM
  2. File name + Directory Path too long.......saves file without extension..........
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-28-2016, 03:17 AM
  3. [SOLVED] =IF and =SUMIF formulas creating long long long data processing times.
    By comp in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 03-26-2014, 02:59 PM
  4. Replies: 5
    Last Post: 07-29-2013, 02:30 PM
  5. Replies: 1
    Last Post: 01-29-2013, 06:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1