+ Reply to Thread
Results 1 to 5 of 5

If statment for three results....

  1. #1
    Registered User
    Join Date
    06-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Question If statment for three results....

    Hello friends...

    I am trying to write "IF" statement.... as per following logic....

    1. Column A - Date of Expiry
    2. Column B - NOC issued
    3. Column C - Status as today (Status options, "Expired", "NOC" given and "Valid")

    Condition 1: If Date is < than Date(today) then in Column C "Expired"
    Condition 2: If in Column B "NOC" than in Column C "NOC" ( P.S. irrespective of Date of expiry)
    Condition 3: If Date > than Date (today) then in Column C "Valid"
    Condition 4: If Date > than Date (today) and in Column B "NOC" then in Column C "NOC"

    =IF(1A<TODAY(),"Expired",IF(B1="NOC","NOC",IF(A1<TODAY(),"Expired","Valid")))

    in above statement only two conditions are working...

    Thanks in advance
    Last edited by jaysakle; 09-25-2013 at 05:32 AM.

  2. #2
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: If statment for three results....

    Please Login or Register  to view this content.
    Is this okie?

    If B1=NOC, regardless what date in A1. If there is not NOC, check date. If date < today then "Expired", else if date >= today, then "Valid"
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: If statment for three results....

    Not 100% clear but I'd guess you want either:
    =IF(B1="NOC","NOC",IF(A1<Today(),"Expired","Valid"))
    or
    =if(B1="NOC","NOC ","")&IF(A1<Today(),"Expired","Valid")

  4. #4
    Registered User
    Join Date
    06-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: If statment for three results....

    Quote Originally Posted by wenqq3 View Post
    Please Login or Register  to view this content.
    Is this okie?

    If B1=NOC, regardless what date in A1. If there is not NOC, check date. If date < today then "Expired", else if date >= today, then "Valid"
    Dear wenqq3,

    Thank you for the reply...your code working...but it has one problem....i would like to mention that yudlugar (valued Forum contributor) solved the thread....thank for your efforts...

  5. #5
    Registered User
    Join Date
    06-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: If statment for three results....

    Quote Originally Posted by yudlugar View Post
    Not 100% clear but I'd guess you want either:
    =IF(B1="NOC","NOC",IF(A1<Today(),"Expired","Valid"))
    or
    =if(B1="NOC","NOC ","")&IF(A1<Today(),"Expired","Valid")
    Dear Yudlugar

    Great...first code working nicely with all conditions.... thanks a lot..

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 06-06-2012, 10:59 PM
  2. IF statment
    By Tortus in forum Excel General
    Replies: 2
    Last Post: 05-19-2011, 05:15 PM
  3. [SOLVED] IF statment within IF statment?
    By DaZombie in forum Excel General
    Replies: 2
    Last Post: 10-27-2010, 12:33 PM
  4. Replies: 3
    Last Post: 03-31-2010, 11:47 AM
  5. If statment
    By rhyan66 in forum Excel General
    Replies: 7
    Last Post: 10-16-2007, 09:32 AM

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