+ Reply to Thread
Results 1 to 4 of 4

Now() statement within a IF(AND statement problem

  1. #1
    Forum Contributor
    Join Date
    05-16-2007
    Location
    USA
    MS-Off Ver
    MS Office 2016, Excel 2016
    Posts
    216

    Now() statement within a IF(AND statement problem

    Does the Now() and Today() function not work well in Excel 2010 when using the IF(AND statements?

    Here is my formula:

    =IF(AND(C8 <> "PAID OFF", I2+32-TODAY()<1), "Late", 0)

    My formula works fine without the AND statement, but every time I add the AND statement the condition becomes False and I'm not sure why. When using the Function Arguments under the Function Library, it says my NOW() or TODAY() is volatile, which means it changes/updates constantly.

    I have to use the AND statement otherwise my formula will not perform correctly. It's basically to know if I'm late on a monthly payment, and if I don't use the AND for the "PAID OFF", it will think the coming months on a already paid off bill will be considered late.

    Thanks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Now() statement within a IF(AND statement problem

    volatile means it updates when sheet recalculates not constantly, i cant get the AND to fail with a similar example, post a workbook with what fails
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    05-16-2007
    Location
    USA
    MS-Off Ver
    MS Office 2016, Excel 2016
    Posts
    216

    Re: Now() statement within a IF(AND statement problem

    Quote Originally Posted by martindwilson View Post
    volatile means it updates when sheet recalculates not constantly, i cant get the AND to fail with a similar example, post a workbook with what fails
    I uploaded, let me know what you think I need to do to correct this. On a side note, I have just learned the IF/AND functions, so be gentle if my formulas looks bad.

    I keep getting the 'Circular Reference Warning' when I open my workbook regarding this formula, and it draws an arrow connecting both cells. In any case, what should be False in H7 under Bill 1, should report Late, but reports 0, insinuating it's True.
    And then of course I8 keeps adding the arrows, even after I have them removed.

    There are more Bills (I wish I only had them two). If I can get this to perform effectively and precisely, then I'm sure I can duplicate it to the others.

    thanks
    Attached Files Attached Files

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Now() statement within a IF(AND statement problem

    hmm that's right you have a circular reference the value in c7 depends on say what's in d7 the formula in d7 depends on what's in c7, it isn't calculating at all that's why you get 0
    you could probably use conditional formating instead though to colour the cells depending on current total
    Last edited by martindwilson; 03-27-2011 at 04:24 PM.

+ 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