+ Reply to Thread
Results 1 to 6 of 6

Average offset

  1. #1
    Registered User
    Join Date
    10-18-2009
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Average offset

    Hi,

    I have a very large spreadsheet (27,000 rows). It is information from a data logger, which is logging at 1 minute intervals.

    I would like to manage that information by converting it to an hourly average (i.e. I want to average 'blocks' of 60). The information I want starts at row 51 so e.g., I am after average(C51:C110), average (C111:C170) etc. etc.

    To allow autofilling, I think I need an AVERAGE(OFFSET) function, but am having difficulty making it work. Can anyone help?

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: Average offset

    Assuming your results formula is in row 1

    Please Login or Register  to view this content.
    change the blue -1 to the row number your formula resides

  3. #3
    Registered User
    Join Date
    10-18-2009
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Average offset

    Thanks for your help mdbct!

    To reduce (my) confusion, I copied just one column into a new tab. The column goes from A3:A10998 and I adjusted the formula to

    =AVERAGE(OFFSET($A$3,(ROW()-3)*60,0,60,1))

    Works a treat!

    Thanks again

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Average offset

    Worth noting that OFFSET is Volatile, a non-volatile equivalent

    Please Login or Register  to view this content.
    Also, given the number of unique values you could create a column adjacent to A to push the values into the appropriate hour and then use a Pivot Table to generate the results.

  5. #5
    Registered User
    Join Date
    06-14-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    5

    Re: Average offset

    Hi,

    I have a large dataset of 86,400 rows of data for 12 hours in seconds and need to convert to 1 minute average data.

    The data starts in K2 and need to average every 59 rows to compile into minutes. Hence, first K2:K60, second set of data K61:K120, third set of data K121:K180.

    Could you advise what is the correct Average Offset function to use?

    I have tried the a few functions which are providing incorrect results.

    Thanks

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Average offset

    Luke, welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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