+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Evaluating multi logical expressions in Excel

  1. #1
    Registered User
    Join Date
    02-12-2009
    Location
    Karlstad, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    2

    Evaluating multi logical expressions in Excel

    Hi everyone,

    Is it somehow possible to use logic like the below in Excel?

    If (A1 = -1) AND (C3 <> 5) AND (C8>4) Then...

    I need to evaluate at least two logical expressions before making the descision as to what value to assign to a certain cell.

    Looking forward to your answer,

    Regards,

    Staffan Carlsson

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Evaluating multi logical expressions in Excel

    Yes...

    IF(AND(condition1,condition2),do if all true, do if any false)

    You also have

    IF(OR(condition1,condition2),do if ANY true, do if ALL false)

    And obviously you can combine

    IF(AND(condition1,OR(condition2,condition3)),do if ALL true, do if ANY false)

  3. #3
    Registered User
    Join Date
    02-12-2009
    Location
    Karlstad, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Evaluating multi logical expressions in Excel

    Thanks mate! Appreciate it.
    /Staffan

+ 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