+ Reply to Thread
Results 1 to 4 of 4

Logical Functions

  1. #1
    Registered User
    Join Date
    09-08-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    1

    Logical Functions

    Hi, I'm fairly new to Excel and am struggeling with a formula that I think should be reasonably simple.

    Based on some data I have two columns which each calculate either "TRUE" or "FALSE" based on the rules I have applied.

    I now want to be able to have a third column that will display "CORRECT" if the first two columns display "TRUE", display "INCORRECT" if both display "FALSE" or "FUTHER EVALUATION" if the columns have one of each "TRUE" and "FALSE".

    If it helps the first rule is based on an "IF" formula and the second on an "AND" forumla.

    Any help with developing this formula would be greatly appreciated.

    Thanks in advance.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Logical Functions

    Hi be165,

    Try this in C2:

    Please Login or Register  to view this content.
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Logical Functions

    Quote Originally Posted by be165 View Post
    Hi, I'm fairly new to Excel and am struggeling with a formula that I think should be reasonably simple.

    Based on some data I have two columns which each calculate either "TRUE" or "FALSE" based on the rules I have applied.

    I now want to be able to have a third column that will display "CORRECT" if the first two columns display "TRUE", display "INCORRECT" if both display "FALSE" or "FUTHER EVALUATION" if the columns have one of each "TRUE" and "FALSE".

    If it helps the first rule is based on an "IF" formula and the second on an "AND" forumla.

    Any help with developing this formula would be greatly appreciated.

    Thanks in advance.
    =CHOOSE(A1+B1+1,"Incorrect","Further evaluation","Correct")
    Last edited by shg; 09-08-2009 at 11:49 PM. Reason: deleted spurious quote

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

    Re: Logical Functions

    Just to explain the last approach - logicals can be coerced to their integer equivalents, in native XL TRUE = 1 and FALSE = 0 ... so A1+B1 will coerce and add the integer outputs, ie:

    FALSE + FALSE -> 0 + 0 -> 0
    FALSE + TRUE -> 0 + 1 -> 1
    TRUE + FALSE -> 1 + 0 -> 1
    TRUE + TRUE -> 1 + 1 -> 2

    So in the prior example the numerical output was used in a CHOOSE, because CHOOSE works only from 1 onwards 1 was added to the result such that complete fail (0) = 1, partial pass (1) = 2 and pass (2) = 3.

+ 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