+ Reply to Thread
Results 1 to 3 of 3

Average of time range

Hybrid View

  1. #1
    Registered User
    Join Date
    12-07-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    43

    Average of time range

    I have a column G1:G6874 containing time values such as 00:00:01, 00:00:10, 00:00:07, 00:01:05, etc. I want to find the average of time greater than (and not equal to) 00:00:00 and less than (and equal to) 00:00:05.

    Any help on that?

    Thanks
    Last edited by DexterG; 12-10-2012 at 07:21 AM.

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

    Re: Average of time range

    Try..

    =SUMPRODUCT((G1:G6874>0)*(G1:G6874<=5/86400),G1:G6874)/SUMPRODUCT((G1:G6874>0)*(G1:G6874<=5/86400))
    or for 2007 and later versions

    =AVERAGEIFS(G1:G6874,G1:G6874,">"&0,G1:G6874,"<="&5/86400)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    12-07-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: Average of time range

    Hi Ace_XL,

    That works. I need to do this across different time ranges, so I can modify the seconds and divide them by 86400.

    But can formatting the cell (or tweaking the formula) help to directly use seconds such as 00:00:05 or 00:01:00? Just asking for information, might come handy sometime in future!

    Thanks a ton!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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