+ Reply to Thread
Results 1 to 4 of 4

How to adjust this formula to keep "Not yet entered" cells blank

  1. #1
    Registered User
    Join Date
    06-18-2013
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2013
    Posts
    81

    How to adjust this formula to keep "Not yet entered" cells blank

    How can I adjust this formula to keep not yet entered cells blank? I'm tracking whether or not jobs are complete on time using dates; Due Date [F] and Date Completed [G]. They are currently marked as "YES" if no Due Date is listed

    Here is my current formula:

    =IF(AND(F2<>"",ISBLANK(G2)),"NOT YET COMPLETED",IF(G2<=F2,"YES",IF(G2>F2,"NO","")))


    I started having the issue when I added an "=" sign inside the IF(G2<=F2, "YES", .... I did this in order to make jobs that were completed on their exact due date marked as completed on time.

    perhaps it marks them as yes because a blank cell is = to a blank cell?

    Obviously, I need it to say YES when entered G2 Data is Equal to entered F2 data. For example when Due Date = Completion Date. Yet I do not want it to say "YES" (completed on time) when there has not even been a due date entered [F2] but I also want to place the formula in the column for future rows so the formula must be adjusted.



    How can I adjust my current formula to leave cells blank when there is no [F2], while still following the rule [F2]=[G2]?

    nate

  2. #2
    Registered User
    Join Date
    06-18-2013
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2013
    Posts
    81

    Re: How to adjust this formula to keep "Not yet entered" cells blank

    Here is my work book

  3. #3
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: How to adjust this formula to keep "Not yet entered" cells blank

    Try testing the blank F2 first before moving on to you next set of checks:

    =IF(F2="","",IF(AND(F2<>"",ISBLANK(G2)),"NOT YET COMPLETED",IF(G2<=F2,"YES",IF(G2>F2,"NO",""))))

    Check this fits your needs for all possible situations and let me know if you need further assistance.
    Say thanks, click *

  4. #4
    Registered User
    Join Date
    06-18-2013
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2013
    Posts
    81

    Re: How to adjust this formula to keep "Not yet entered" cells blank

    Thanks! Genius solution. I think it works! I'll let you know if through further testing I have issues but it seems solid.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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