+ Reply to Thread
Results 1 to 7 of 7

Subtotal of time, should not taking into account the date

  1. #1
    Forum Contributor
    Join Date
    07-21-2014
    Location
    Norway
    MS-Off Ver
    2016
    Posts
    230

    Subtotal of time, should not taking into account the date

    Hi

    I have this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    formula where I want the average time for only the cells that are shown (meaning filter cells are not taken into account). The problem with this formula is that it takes into account the date as well, I just want an average time within 24 hours.

    Example, the cells contains these values:
    17/07/2018 12:33:00
    17/07/2018 10:04:00
    18/07/2018 10:32:00
    19/07/2018 12:04:00
    19/07/2018 12:36:00
    19/07/2018 11:51:00

    The formula I have now gives me an average time of 15:36, as it takes into account the date as well. The correct answer should be: 11:36

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Subtotal of time, should not taking into account the date

    Add a helper column to remove the date. =MOD(BJ20,1) In BK20 and fill down, then subtotal the times in BK20:BK1992

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Subtotal of time, should not taking into account the date

    Or equivalently,

    A
    B
    2
    17 Jul 2018 12:33
    3
    17 Jul 2018 10:04
    4
    18 Jul 2018 10:32
    5
    19 Jul 2018 12:04
    6
    19 Jul 2018 12:36
    7
    19 Jul 2018 11:51
    8
    11:36
    A8: {=AVERAGE(MOD(A2:A7,1))}
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Subtotal of time, should not taking into account the date

    But that will not take the filtered rows into consideration.

    I don't think that it will be possible without a helper column.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Subtotal of time, should not taking into account the date

    Completely missed the filter part, Jason, thank you.

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Subtotal of time, should not taking into account the date

    I was trying similar methods to yours with AGGREGATE(1,5 to see if it could be done, but the arrays all appear to evaluate as 3d and throw an error.

  7. #7
    Forum Contributor
    Join Date
    07-21-2014
    Location
    Norway
    MS-Off Ver
    2016
    Posts
    230

    Re: Subtotal of time, should not taking into account the date

    Quote Originally Posted by jason.b75 View Post
    Add a helper column to remove the date. =MOD(BJ20,1) In BK20 and fill down, then subtotal the times in BK20:BK1992
    Great! that worked well, thank you!

+ 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. [SOLVED] IF Formula. Time between 2 dates taking into account Blank fields PART 2
    By Matt1998 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-25-2015, 11:31 AM
  2. [SOLVED] IF Formula. Time between 2 dates taking into account Blank fields
    By Matt1998 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-25-2015, 08:10 AM
  3. Find Min Time taking 24hrs into account
    By kiktuo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-24-2014, 09:06 PM
  4. [SOLVED] Allocate total price by term taking account start and end date and month affected
    By continue101 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-16-2013, 01:47 PM
  5. Replies: 3
    Last Post: 03-09-2012, 08:19 AM
  6. Replies: 0
    Last Post: 01-09-2012, 04:20 PM
  7. [SOLVED] Date difference taking into account weekends.
    By annonymous in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-14-2005, 02:06 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