+ Reply to Thread
Results 1 to 7 of 7

Nested IF Statement with Multiple Criteria

  1. #1
    Registered User
    Join Date
    07-23-2007
    Location
    Glasgow
    Posts
    31

    Nested IF Statement with Multiple Criteria

    Hi,

    I am working n a spreadsheet that has 3 columns of data and I want to put in an IF Statement. e.g.

    Column 1 Column 2 Column 3
    True False False
    False True False

    In a new cell (C4) I want to display the outcome of the following:

    If C1 = TRUE, then "Statement" or If C2 = True then "Statement" or If C3 = True then Statement else ""

    Each time I try I get a response for the first IF but nothing else.

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this,

    =IF(C3=TRUE,"Statement else",IF(OR(C1=TRUE,C2=TRUE),"Statement",""))
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    07-23-2007
    Location
    Glasgow
    Posts
    31
    Sorry Oldchippy, don't think I explained it properly - Let me try again

    Appointment Unannounced Pre Meeting
    True False False - Row 1
    False True False - Row 2
    False False True - Row 3

    If one column reads true then the other 2 will be false.

    Row 1 should give the answer "Appointment"
    Row 2 should give the answer "Unannounced"
    Row 3 will give the answer "Pre Meeting"

    Hope this is a bit clearer - Thanks Mate

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this, with your heading in A1:C1

    =IF(A2=TRUE,$A$1,IF(B2=TRUE,$B$1,IF(C2=TRUE,$C$1))) then drag down

  5. #5
    Registered User
    Join Date
    07-23-2007
    Location
    Glasgow
    Posts
    31
    Magic!!!!

    Thanks OldChippy, works perfectly.

    Thanks again


  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Got there in the end - thanks for the feedback

    Try this just in case you have no TRUES, it will then put a blank

    =IF(A2=TRUE,$A$1,IF(B2=TRUE,$B$1,IF(C2=TRUE,$C$1,"")))

  7. #7
    Registered User
    Join Date
    07-23-2007
    Location
    Glasgow
    Posts
    31
    Cheers again, that works even better

    Hope your not just showing off now

    Thanks for your help

+ 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