Closed Thread
Results 1 to 7 of 7

Nulls in columns are giving my On Time/ Late calculations an error

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

    Nulls in columns are giving my On Time/ Late calculations an error

    I am creating a On time/Late column for a spread sheet that calculates time difference. I have this formula to calculate three things if something is on time, late or no value because a date wasn't entered or time is missing. I have cells that NULL in those place everything calculates correct except for the No value because of my formula. =IF(W2 = "#VALUE!", "No Value", IF(AB2>V2, "Late","On Time")) I am trying to tweak it so that even though there are NULLs that are in AB2 and V2 that it should still return No value.

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

    Re: Nulls in columns are giving my On Time/ Late calculations an error

    I have a sort of working formula Its just not working for give me the answer of No value.
    =IF(Y2:AB2 = "NULL", "No Value",IF(S2:V2 ="NULL", "No Value", IF(W2 = "#VALUE!", "No Value",IF(AB2>V2, "Late","On Time"))))
    When this formula runs it says that it is the wrong data type.

  3. #3
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    259

    Re: Nulls in columns are giving my On Time/ Late calculations an error

    Can you post a sample workbook? It's easier for someone to assist you if they actually see what data you're working with.

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

    Re: Nulls in columns are giving my On Time/ Late calculations an error

    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

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

    Re: Nulls in columns are giving my On Time/ Late calculations an error

    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"

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Nulls in columns are giving my On Time/ Late calculations an error

    Seems that that the formula in column J should evaluate whether or not there are numeric values in columns D and I of the corresponding row. If there are then it display 'Late'/'On Time' based on equality/inequality of those numeric values. If not it should display 'No Value'.
    If that is the case then try the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If that is not the case then perhaps you could show us a few examples of data that displays as 'Late' or 'On Time' as stated in post #5.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,912

    Re: Nulls in columns are giving my On Time/ Late calculations an error

    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. [SOLVED] VBA 'convert date' code giving 'run time error 9 - subscript out of range'
    By seputus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-05-2017, 07:43 PM
  2. [SOLVED] Error on time calculations - tiny fraction (perhaps rounding?)
    By onmyway in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-24-2015, 12:00 PM
  3. [SOLVED] IF function: Early/On Time/Late Time vs. set window of time
    By hclark579 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-21-2014, 05:37 PM
  4. worksheetfunction.match giving run time error '1004'
    By devo2511 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-15-2010, 04:47 PM
  5. Replies: 2
    Last Post: 01-20-2010, 02:47 AM
  6. Macros giving Run-time error '9' on all machines except mine
    By WinterCoast in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2008, 12:56 PM
  7. [SOLVED] Run-time error using late binding
    By DaBookshah in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-20-2006, 03:35 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