+ Reply to Thread
Results 1 to 6 of 6

IF(AND Statements

  1. #1
    Registered User
    Join Date
    06-14-2012
    Location
    Ohio
    MS-Off Ver
    Microsoft 365
    Posts
    76

    IF(AND Statements

    I have input the following IF(AND statement, =IF(AND(H4<G2,J4=0),"Past Due"," "); however, I cannot seem to get the cell to remain blank when H3 has not been populated (it stays Past Due).

    H4 = a date field to be populated as an end date of an authorization

    G2 = Today's Date

    J4 = a date field to be populated as a authorization extension date

    I4 = formulated cell - This cell I want to remain blank when H3 has not been populated and to only populate as "Past Due" when H3 is less than today's date (G2) and J3 has not been populated; otherwise, stay blank (" ").

    When H4 is populated, everything works fine; it's when there's nothing there that I'm running into the issue.

    I've attached a picture view of what I'm working on as a visual.

    Excel Forum Pic.JPG

    Thank you so much for your help with this!
    Last edited by JRose0303; 06-14-2012 at 10:34 AM.

  2. #2
    Forum Contributor
    Join Date
    06-07-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    189

    Re: IF(AND Statements

    Try

    =IF(AND(H4<>"",H4<G2,J4=0),"Past Due","")

  3. #3
    Registered User
    Join Date
    06-14-2012
    Location
    Ohio
    MS-Off Ver
    Microsoft 365
    Posts
    76

    Re: IF(AND Statements

    Oh my gosh!! It worked! Thank you so much! I have been working on this on and off for a couple weeks. I would play with it, get frustrated because I couldn't figure out what I was doing wrong, and not touch it for another week. LOL! Thank you so so much!!!!

  4. #4
    Registered User
    Join Date
    06-14-2012
    Location
    Ohio
    MS-Off Ver
    Microsoft 365
    Posts
    76

    Re: IF(AND Statements

    If I wanted the formulated cell to populate with "Past Due" 4 days prior to G2 (Today's Date), how would I put that?

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: IF(AND Statements

    try

    =IF(AND(H4<>"",H4<G2-4,J4=0),"Past Due","")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    06-14-2012
    Location
    Ohio
    MS-Off Ver
    Microsoft 365
    Posts
    76

    Re: IF(AND Statements

    I figured out what I needed to do. I wound up having to use nested if/and statements:

    =IF(AND(L2<>"",K1=L2-4,O2=0),"REQ EXT",IF(AND(L2<>"",K1=L2-3,O2=0),"REQ EXT",IF(AND(L2<>"",K1=L2-2,O2=0),"REQ EXT",IF(AND(L2<>"",K1=L2-1,O2=0),"REQ EXT"," "))))

    Thank you guys so much for all of your 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