+ Reply to Thread
Results 1 to 4 of 4

Formula to Remove Negative Time

  1. #1
    Registered User
    Join Date
    05-02-2013
    Location
    United, States
    MS-Off Ver
    Excel 2010
    Posts
    11

    Formula to Remove Negative Time

    I did a quick search and couldnt find this exact issue.

    I have a spreadsheet that contains a cell with time and date of when people ask for assistance.

    Another cell has the time someone assisted them.

    Finally, third cell calculates the response time between call and when assistance arrived.

    My problem is, occasionally some erroneous data is showing up allowing for a "assistance arrived" date and time earlier than the "call for assistance" was initiated.

    What formula can i put in the calculation, so if the calculated "response time" is negative it is either blank or a zero. Currently it gives me a bunch of hashtags, and wont allow the overall average time to be calculated.

    Thanks for the help!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula to Remove Negative Time

    Hi,

    One way would be to wrap your formula in a MAX() function. i.e

    =MAX(0,your_formula)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula to Remove Negative Time

    If you want to calculate averages, then the 0's resulting from Richard's formula will screw that up. Maybe

    =IF(B1-A1<0,"", B1-A1)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    05-02-2013
    Location
    United, States
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Formula to Remove Negative Time

    Thanks so much! And good catch on the 0 messing up the average.

+ 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 one formula for returning positive or negative time w/out #######
    By completelyhis in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-11-2013, 09:12 AM
  2. Replies: 1
    Last Post: 04-26-2012, 12:48 AM
  3. Negative Time Formula
    By jayclinton in forum Excel General
    Replies: 6
    Last Post: 12-23-2009, 12:13 PM
  4. Negative Time Formula Variation
    By jayclinton in forum Excel General
    Replies: 3
    Last Post: 12-22-2009, 10:58 PM
  5. Negative Time Formula??
    By sjr555 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2009, 12:04 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