+ Reply to Thread
Results 1 to 9 of 9

Triple nesting if functions, dates - expiration

  1. #1
    Registered User
    Join Date
    05-21-2013
    Location
    Tampa Florida
    MS-Off Ver
    Excel 2007
    Posts
    9

    Triple nesting if functions, dates - expiration

    Hi all

    Thank you for accepting me to this awesome forum. I have a question about nesting excel if and formulas. I need help with a formula that would allow me to show "Expiration", "Pending Expiration"and "OK". I would have an issue date (B2) 5/20/2012 expiration date (B3)5/20/2013. i tried this but its broken =if(b3<=TODAY(),"EXPIRED",IF(B3>=TODAY()+7,"PENDING EXPIRATION", IF(B3<=TODAY()+7,"OK"

    1. Formula to show that the issuance has "EXPIRED"
    2. Formula to show "PENDING EXPIRATION" if the date falls within one week of expiration
    3. Formula to show that if the date is farther than a week away from expiration to show "OK"

    Any help would be great,

    Tom King

  2. #2
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,101

    Re: Triple nesting if functions, dates - expiration

    Hello,

    May it's because of this? You mention that "... ... issuance has "EXPIRED" But on the very first IF statement, you're actually looking at the expiration date, not the issuance date?

    b3<=TODAY(),"EXPIRED"

    So instead of b3...isn't it suppose to be b2?

  3. #3
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,101

    Re: Triple nesting if functions, dates - expiration

    Hello,

    May it's because of this? You mention that "... ... issuance has "EXPIRED" But on the very first IF statement, you're actually looking at the expiration date, not the issuance date?

    b3<=TODAY(),"EXPIRED"

    So instead of b3...isn't it suppose to be b2?

  4. #4
    Registered User
    Join Date
    05-21-2013
    Location
    Tampa Florida
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Triple nesting if functions, dates - expiration

    =IF(B2>=TODAY(),"EXPIRED",IF(AND(C2>0,C2<=7),"PENDING EXPIRATION",IF(C2<8,"OK"))), i just tried this formula by adding an additional column that subtracts the issue date from todays date but nothing. Going deeper down the rabbit hole.....

  5. #5
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,101

    Re: Triple nesting if functions, dates - expiration

    would you be able to upload a sample of your worksheet. It's just difficult visualize what you're trying to do.

    i.e. on your first post, it's all in column B, on the latest post, you have column C.

    Would be better if you could give a little more explanation, such as the difference between issue and expiration date, and how the determined result were derived

  6. #6
    Registered User
    Join Date
    05-21-2013
    Location
    Tampa Florida
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Triple nesting if functions, dates - expiration

    Date Expiration Sheet.xlsx







    I hope this is able to give a visual

  7. #7
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,101

    Re: Triple nesting if functions, dates - expiration

    Thanks for the upload. I get what you're trying to do.

    On any cell (say M2), copy and paste the formula below.

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-21-2013
    Location
    Tampa Florida
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Triple nesting if functions, dates - expiration

    Quote Originally Posted by dluhut View Post
    Thanks for the upload. I get what you're trying to do.

    On any cell (say M2), copy and paste the formula below.

    Please Login or Register  to view this content.
    I think that's it! Awesome! thank you so much for all of your help.

  9. #9
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,101

    Re: Triple nesting if functions, dates - expiration

    Glad to be of help! Remember to mark this thread as 'Solved'

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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