+ Reply to Thread
Results 1 to 6 of 6

Advice required for this function

Hybrid View

  1. #1
    Registered User
    Join Date
    11-26-2004
    Location
    Dallas, TX
    MS-Off Ver
    Office 2008 for Mac & Office 2007
    Posts
    17

    Advice required for this function

    I've got the following function that check if each cell has a date greater than TODAY(). If result is true, it'll display "NO GO". Otherwise, it'll display "GO".

    I would want to improve on it such that if any of the 'B5:F5' cell is empty, it'll display "Incomplete" instead of "No Go".

    Any ideas?

    =IF(AND(B5>=TODAY();C5>=TODAY();D5>=TODAY();E5>=TODAY();F5>=TODAY());"GO";"NO GO")
    Last edited by localhost; 11-05-2008 at 06:06 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,696
    Try

    =IF(COUNT(B5:F5)<5;"Incomplete";IF(COUNTIF(B5:F5;">="&TODAY())=5;"GO";"NO GO"))

  3. #3
    Registered User
    Join Date
    11-26-2004
    Location
    Dallas, TX
    MS-Off Ver
    Office 2008 for Mac & Office 2007
    Posts
    17
    The first part of the code =IF(COUNT(B5:F5)<5;"Incomplete" works. However, for the second portion, there seems to be some logic error. Even though the dates I've entered for cell B5 to F5 is lesser than TODAY(), it still displays "No Go"

    Dates in cell as shown:
    12/09/08
    16/09/08
    14/03/06
    08/08/08
    16/09/08

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,696
    Your description doesn't match your formula in the first post. You say that "If result is TRUE it'll display NO GO" but the formula you posted returns "NO" if the test is true, i.e. all dates are greater than today.

    I used the logic present in your formula, if you want the reverse just switch "NO" and "NO GO"

  5. #5
    Registered User
    Join Date
    11-26-2004
    Location
    Dallas, TX
    MS-Off Ver
    Office 2008 for Mac & Office 2007
    Posts
    17
    That's right. Apologies for the confusion.

    However, I do realise that if I use the today() function to match against other cell values, it doesn't update immediately unless i changed a cell value somewhere or close and reopen the document.

    Is that normal and any resolution on this issue?

  6. #6
    Registered User
    Join Date
    11-26-2004
    Location
    Dallas, TX
    MS-Off Ver
    Office 2008 for Mac & Office 2007
    Posts
    17
    Alright, did some research and today() function will only update if something is changed manually in the cells or document saved and re-opened.

    Thanks for the help!

+ 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