+ Reply to Thread
Results 1 to 3 of 3

Average Time Calcuation

  1. #1
    Registered User
    Join Date
    03-09-2023
    Location
    concord, north carolina
    MS-Off Ver
    office 365
    Posts
    1

    Average Time Calcuation

    I am having issues getting the average time to populate. I need column I to populate the average of all of the times excluding the #VALUE!. The problem I keep running into is I get #DIV/0!.
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Average Time Calcuation

    The DIV/0 error is caused by your times actually being text.
    For example in F1 you've got the formula =TEXT(D1-C1,"h:mm"), which by its very nature stores the result as text (clue is in the function name).
    You need to coerce the result into a number before you can perform calculations on it. Easily done by multiplying the result by 1. =TEXT(D1-C1,"h:mm")*1

    You can also wrap the formulas in IFERROR to prevent the VALUE errors showing up and further confusing things. =IFERROR(TEXT(D1-C1,"h:mm")*1,0)

    Hope that helps.

    BSB

  3. #3
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,294

    Re: Average Time Calcuation

    See the appendix for a simplified solution to your question.
    Attached Files Attached Files

+ 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. Need help with a calcuation formula
    By lsingh718 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-19-2022, 12:09 AM
  2. [SOLVED] Average if values in adjacent columns is >0 AND adjust the average range each time
    By ew17 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-17-2020, 12:56 PM
  3. YTD calcuation
    By Sarin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-29-2017, 04:53 AM
  4. Date calcuation
    By RottieMom in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-16-2016, 09:12 PM
  5. Time calcuation
    By Kshari in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-20-2014, 07:49 PM
  6. Excel 2007 : Spread of Hours Calcuation
    By Lfrat in forum Excel General
    Replies: 3
    Last Post: 06-08-2012, 08:42 AM
  7. [SOLVED] holding a value after first calcuation
    By spence in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-26-2006, 08:00 PM

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