+ Reply to Thread
Results 1 to 6 of 6

Nested if function with multiple criteria

  1. #1
    Registered User
    Join Date
    09-06-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    3

    Arrow Nested if function with multiple criteria

    Hi! Guys,


    I have an spreadsheet where I have three conditions:
    1. IF B1 and C1 are blank cell, in A1, if true should be "Vendor", if false shall be "Consumer".
    2. If B1 has date and C1 is blank cell, if true should be "Consumer", if false shall be "Vendor".
    3. If both B1 and C1 have dates but B1 is greater than C1, if true should be "Consumer", if false shall be "Vendor".
    4. B1 and C1 obtained dates from other cells by formula.

    Thanks.

    argandoz

  2. #2
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Nested if function with multiple criteria

    =CHOOSE((ISNUMBER(A2)+ISNUMBER(B2))+1,"Vendor","Consumer",IF(B2>A2,"Consumer",C10))

  3. #3
    Registered User
    Join Date
    09-06-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Nested if function with multiple criteria

    Hi! Sadath31,

    Thank you very much for the response. Base on your given formula, it works for condition 1 and 2 but not when it applies to condition 3. Condition 3 should read as " if B1 and C1 has dates, and B1 is greater than C1, "Consumer" if true and...
    Hopefully, you can further help me on this.

    Thanks,
    argandoz

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Nested if function with multiple criteria

    Try this
    =IF(OR(AND(B1=0,C1=0),C1>=B1),"Vendor","Consumer")

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Nested if function with multiple criteria

    This should be enough:

    =IF(B1>C1, "Consumer", "Vendor" )

  6. #6
    Registered User
    Join Date
    09-06-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    3

    Smile Re: Nested if function with multiple criteria

    Guys,

    Thanks again for everyone. That formula shared by nflsales was perffectly correct and working properly.
    Thanks for efforts of others sharing their time and knowledge.

    BR,
    argandoz

+ 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