+ Reply to Thread
Results 1 to 3 of 3

How to Make an Averaging Formula Exclude Zero Data in a Time Format (00:00:00)

  1. #1
    Registered User
    Join Date
    12-29-2015
    Location
    Stockton, CA
    MS-Off Ver
    MS Office 10
    Posts
    2

    How to Make an Averaging Formula Exclude Zero Data in a Time Format (00:00:00)

    I work for a transportation contractorAttachment 437642 and I'm building a spreadsheet to track the time it takes for a train to travel from one station to another (runtime) as well as how much time it spends at each station (dwelltime). I built a 'summary' worksheet that averages the runtime and dwelltime over a period of 20 days. I would like to look at accurate runtime and dwelltime averages on the summary sheet before the project is complete. As I understand it, I can only do this by asking the averaging formula to ignore cells that haven't had data entered into them yet (00:00:00). How do I ask the formula to ignore 'zero data' formatted as time?

    I have included a sample workbook in the same format as my actual spreadsheet and with the same averaging formulas I am using. Any help would be deeply appreciated. I am also new at this. If there is anything I can do better to make my posts more concise in the future, please let me know. Thanks in advance.
    Attached Files Attached Files
    Last edited by hmc74; 12-29-2015 at 11:16 PM. Reason: Added solved prefix

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: How to Make an Averaging Formula Exclude Zero Data in a Time Format (00:00:00)

    For Excel, entering 00:00:00 is not the same as "haven't had data entered into them yet". 00:00:00 is a definite time in excel. It represents 12:00:00 AM (aka Midnight).

    Replace the formula in your RUNTIME with something like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Similarly, for DWELL TIME:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This will ensure that a 0 value is converted to a blank cell, and not to 00:00:00. By default, AVERAGE formula ignores all blank cells, and your calculations should be fine.

  3. #3
    Registered User
    Join Date
    12-29-2015
    Location
    Stockton, CA
    MS-Off Ver
    MS Office 10
    Posts
    2

    (SOLVED)Re: How to Make an Averaging Formula Exclude Zero Data in a Time Format (00:00:00)

    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. Replies: 2
    Last Post: 03-04-2015, 12:54 PM
  2. Averaging Time after using formula to determine time difference
    By Yfandeslady in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-26-2014, 03:22 PM
  3. [SOLVED] Time Diffrence Formula To Exclude Gaps Time Between 5PM - 8AM
    By Justair07 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-22-2014, 11:42 AM
  4. [SOLVED] VBA to Sort Data and exclude the negative numbers with respect to time during averaging
    By vnzerem in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2013, 12:00 PM
  5. Help with changing format into time and averaging
    By ElleGee in forum Excel General
    Replies: 7
    Last Post: 02-18-2012, 12:23 AM
  6. [SOLVED] When Averaging a column, exclude value based on another cell value
    By Divercem in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-21-2006, 06:40 PM
  7. [SOLVED] Time format will not exclude seconds!!
    By sbowman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-13-2006, 09:50 AM

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