+ Reply to Thread
Results 1 to 5 of 5

If Statement with multiple conditions

Hybrid View

  1. #1
    Registered User
    Join Date
    01-31-2011
    Location
    Eastern, north carolina
    MS-Off Ver
    Excel 2007
    Posts
    6

    If Statement with multiple conditions

    I have a spreadsheet that basically has 3 columns “ Due Date” , “Date Paid” and “Paid”, depending on what is entered in the “Date Paid” column a statement will display in the “Paid” column. Need to mention that the due date will always be a fixed date such as 31 May 20XX. This is what I need it to do;

    - If a date is entered in the ‘Date Paid” col, the “Paid” Col will display “Paid”. No matter what the date entered is, could be any date between now and 31 May 2011..

    - If nothing is entered in the “Date Paid” col and it is before 30 days of the due date, the “Paid” col will display Due.

    - If nothing is entered in the “Date Paid” col and it is within 30 days of the of the “Due Date” the “Paid” col will display “Warning”.

    - If nothing is entered in the “Date Paid col and it is after the “Due Date”, the “Paid” col will display “Overdue”

    This is the formula I have come up with,
    =IF((TODAY()+30)<J2,"",IF(TODAY()>J2,"Overdue",IF( ISBLANK(I2),"Warning",K2*1)))

    Everything works except if I enter a date in the “Date Paid” col nothing appears in the “Paid” col until it is within 30 days of the due date.

    If this has to be a VBA, I am good with that, just not sure on how to write it, maybe a loop statement.

    Any help is greatly appreciated
    Last edited by Cdoyle; 01-31-2011 at 10:09 PM. Reason: Changintg Title

  2. #2
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: Formula help

    =IF((TODAY()+30)<J2,"",IF(TODAY()>J2,"Overdue",IF( ISBLANK(I2),"Warning",K2*1)))
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  3. #3
    Registered User
    Join Date
    01-31-2011
    Location
    Eastern, north carolina
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Formula help

    Thanks for the reply, first i should have explained my formula in a little better detail.
    On my spreadsheet, Col J is the "Due Date" Col and Col I is the "Date Paid" Col. Col K as you see in the formula (K2*1) is just a col that I stuck the amount owed, in this case $194.00. That formula does work, but if you enter todays date in the "Date Paid" col, the "Paid" col will remains blank. If I change the "Due Date" to 15 Feb, in the "Paid col it will display the value of K2*1 or $194.00. If I leave the "Due Date" as 31 May the "Paid" col will remain blank. I would like for the "Paid' col to display "paid" whatever the date entered in the "Date Paid col.

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: If Statement with multiple conditions

    maybe like this

    =IF(I2,"Paid",IF(TODAY()>J2,"overdue",IF(TODAY()+30<J2,"Due","Warning")))

  5. #5
    Registered User
    Join Date
    01-31-2011
    Location
    Eastern, north carolina
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: If Statement with multiple conditions

    Thanks, that works perfectly. Awesome!!!!!!!

    Charlie

+ 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