+ Reply to Thread
Results 1 to 2 of 2

IF/AND Statements

  1. #1
    Registered User
    Join Date
    06-14-2005
    Posts
    2

    IF/AND Statements

    I'm getting into Excel more and I am trying to do something:

    I have a combo box in cell B2 with options of "1" and "2".
    I have a combo box in cell B4 with options of "1" and "2".

    (the selected value writes to the cell B2 and B4 under the combo boxes)

    In cell B6, I would like to display a result where:

    If B2=1 and B4=1, show "Hello"
    If B2=1 and B4=2, show "Goodbye"
    If B2=2 and B4=1, show "Go Away"
    If B2=2 and B4=2, show "Thank You"

    Is something like this possible? I have been trying to use an "IF(AND..." but I must be doing something wrong. Your help is appreciated.

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    =IF(B2=1,IF(B4=1,"Hello","Goodbye"),IF(B4=1,"Go away","thank you"))

    assuming no other values are possible in b2 and b4

    Mangesh

+ 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