Closed Thread
Results 1 to 6 of 6

error with formula for time difference calculation

  1. #1
    Registered User
    Join Date
    07-17-2017
    Location
    New Jersey
    MS-Off Ver
    2013
    Posts
    56

    error with formula for time difference calculation

    Here is an example of the error i get when I am trying to get in the On Time/Late column for it to say "No Value". The cells that say NULL should say NULL and in the Originally Shipped column it should have the error because it is pulling data from the cells that say NULL.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-17-2017
    Location
    New Jersey
    MS-Off Ver
    2013
    Posts
    56

    Re: error with formula for time difference calculation

    obviously that last bit of the formula works because I have other data that comes up as late or on time its just that when I have a #VALUE! i need it to say "No Value"

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: error with formula for time difference calculation

    Hi ArvidanR- Try this in J2:
    =IF(ISERROR(D2-I2), "No Value",IF(I2>D2, "Late","On Time"))

    or:
    =IFERROR(IF(D2-I2<0, "Late","On Time"), "No Value")

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 07-18-2017 at 03:59 PM.

  4. #4
    Registered User
    Join Date
    07-17-2017
    Location
    New Jersey
    MS-Off Ver
    2013
    Posts
    56

    Re: error with formula for time difference calculation

    Thank you this hit the nail on the head.

  5. #5
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: error with formula for time difference calculation

    Happy to help! If your requirements are met, please go to Thread Tools up top and mark your thread as SOLVED. Thanks - Lee

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: error with formula for time difference calculation

    Duplicate thread closed. Continue here, please: https://www.excelforum.com/excel-gen...correctly.html
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Time difference calculation (+mm:ss.00)
    By luchian in forum Excel General
    Replies: 9
    Last Post: 04-04-2019, 11:54 PM
  2. Date and time difference calculation
    By carlrubber in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-29-2017, 02:00 PM
  3. Time difference calculation help
    By willm in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-10-2016, 06:15 AM
  4. time difference calculation between days
    By astrosrini in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 06-25-2012, 06:47 AM
  5. Converting a time difference calculation worksheet formula to a VBA Function
    By LoveCandle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-19-2012, 03:25 PM
  6. TIME Calculation Difference in between Time Windows IF, AND
    By sonny.thind in forum Excel General
    Replies: 0
    Last Post: 09-20-2011, 10:00 AM
  7. Time difference calculation
    By Sasha in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-22-2006, 12:55 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