Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
case54321
 
Posts: n/a
Default 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 whe

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.


--
case54321
------------------------------------------------------------------------
case54321's Profile: http://www.excelforum.com/member.php...o&userid=24287
View this thread: http://www.excelforum.com/showthread...hreadid=378958

  #2   Report Post  
mangesh_yadav
 
Posts: n/a
Default


=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


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=378958

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"