ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   'And' / 'Or' statements (https://www.excelbanter.com/excel-programming/272996-statements.html)

Apfreight

'And' / 'Or' statements
 
Doing something wrong. Trying to use 'and' and 'or' statements to generate a
value, but can only get them to generate a true/false result. Need to use 'and'
and 'or' statements within 'if' statements. Anybody know how to get these to
generate values?

Harald Staff[_4_]

'And' / 'Or' statements
 
Formulas ?
=IF(AND(A1<0,A10),"Miracle !!!","Business as usual")
=IF(OR(A1<0,A10),"not zero","sheesh")

replace my " " embraced lyrics whith your desired values.
--
HTH. Best wishes Harald
Excel MVP

Followup to newsgroup only please.

"Apfreight" wrote in message
...
Doing something wrong. Trying to use 'and' and 'or' statements to generate a
value, but can only get them to generate a true/false result. Need to use 'and'
and 'or' statements within 'if' statements. Anybody know how to get these to
generate values?





All times are GMT +1. The time now is 01:17 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com