Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default IF AND OR BUT NOT SURE

Not sure how to compile the formula to make this happen:

If cell A1 is TRUE then cell A3 =X, or if cell A2 is TRUE then cell A3=Y
if both cells A1 and A2 are FALSE then cell A3="Z"

Any help would be appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default IF AND OR BUT NOT SURE

=IF(A1,"X",IF(A2,"Y","Z"))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"tracktor" wrote in message
...
Not sure how to compile the formula to make this happen:

If cell A1 is TRUE then cell A3 ="X", or if cell A2 is TRUE then cell A3="Y"
if both cells A1 and A2 are FALSE then cell A3="Z"

Any help would be appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default IF AND OR BUT NOT SURE

Tracktor,

The following equation put in cell A3 works,

=IF(A1=TRUE,"X",IF(A2=TRUE,"Y","Z"))

With the following in cells A1 and A2

=AND(B1=C1)
=AND(B2=C2)

where B1=C1 etc can be changed to whatever condition you are evaluating.


Ian Grega

"tracktor" wrote:

Not sure how to compile the formula to make this happen:

If cell A1 is TRUE then cell A3 =X, or if cell A2 is TRUE then cell A3=Y
if both cells A1 and A2 are FALSE then cell A3="Z"

Any help would be appreciated.

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 11:02 PM.

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

About Us

"It's about Microsoft Excel"