+ Reply to Thread
Results 1 to 5 of 5

Nested IF statements returning 'FALSE' on time check

  1. #1
    Registered User
    Join Date
    08-30-2022
    Location
    London
    MS-Off Ver
    2016
    Posts
    1

    Nested IF statements returning 'FALSE' on time check

    Cross-posted at https://www.mrexcel.com/board/thread...check.1215144/

    I am trying to write a formula to show the below:

    General rule: If actual (C2) or forecast (B2) time is less than start time (A2) + 15mins then return status (D2) "on track", if its more than or equal to start time + 15mins then return status "late"

    What I am trying to also include is a rule to check if actual time is 'blank' then use the rule against forecast time but if actual time is filled then over-ride the forecast time formula and check against actual time instead. I've written the below formula but is returning 'FALSE' when i have filled in actual time. Please help!

    =IF(C2="",IF(B2<A2+TIME(0,15,0),"On track",IF(B2>=A2+TIME(0,15,0),"Late",IF(C2<A2+TIME(0,15,0),"On track","Late"))))

    Screenshot 2022-08-30 173116.jpg
    Last edited by 6StringJazzer; 08-30-2022 at 02:25 PM. Reason: added xpost link

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Nested IF statements returning 'FALSE' on time check

    I would imagine you need something like this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Nested IF statements returning 'FALSE' on time check

    try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Nested IF statements returning 'FALSE' on time check

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    I have add the link to your post because it is your first post.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Nested IF statements returning 'FALSE' on time check

    The reason we require cross-post links is so we don't waste time working on something that's already solved. You accepted a solution as correct at the other site 90 minutes ago, so TMS and dosydos have wasted effort.

+ 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. Nested if statements comparing four columns getting a FALSE result
    By Bevg in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-29-2020, 04:30 PM
  2. [SOLVED] NESTED IF returning false
    By VicAC in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-24-2019, 06:18 AM
  3. Getting rid of false result from nested if statements
    By jmenzel30 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-31-2018, 06:56 AM
  4. Nested IF Statement returning False
    By pranjal79 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-25-2016, 12:23 PM
  5. [SOLVED] Nested IF statements are returning FALSE values - cannot find error in code!
    By apex_chio in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-03-2013, 11:01 PM
  6. Nested IF returning FALSE value help
    By crash884 in forum Excel General
    Replies: 3
    Last Post: 08-13-2013, 01:31 PM
  7. Excel 2007 : Nested IF Statements - Tracing a False Result?
    By jackinthebox in forum Excel General
    Replies: 2
    Last Post: 04-13-2010, 09:18 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