Why does my formula =OR(O8<>"";H9<>"";1;0) display "TRUE" when cell O8 or
H9 is empty? It should yield 0 (Zero).
It also displays and "TRUE" when these cells are not empty; it should yield
1...

Signature
Felix
Gary''s Student - 12 Nov 2007 11:29 GMT
The OR returns a Logical. You must enclose it in an IF.
=IF(OR(O8<>"";H9<>"");1;0)
The assumes that ; is a valid replacement for ,

Signature
Gary''s Student - gsnu200755
> Why does my formula =OR(O8<>"";H9<>"";1;0) display "TRUE" when cell O8 or
> H9 is empty? It should yield 0 (Zero).
>
> It also displays and "TRUE" when these cells are not empty; it should yield
> 1...
Niek Otten - 12 Nov 2007 11:32 GMT
Hi Felix,
=IF(OR(O8<>"";H9<>"");1;0)

Signature
Kind regards,
Niek Otten
Microsoft MVP - Excel
| Why does my formula =OR(O8<>"";H9<>"";1;0) display "TRUE" when cell O8 or
| H9 is empty? It should yield 0 (Zero).
|
| It also displays and "TRUE" when these cells are not empty; it should yield
| 1...
RagDyeR - 12 Nov 2007 17:00 GMT
How about this:
=--OR(O8<>"",H9<>"")

Signature
HTH,
RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================
Why does my formula =OR(O8<>"";H9<>"";1;0) display "TRUE" when cell O8 or
H9 is empty? It should yield 0 (Zero).
It also displays and "TRUE" when these cells are not empty; it should yield
1...

Signature
Felix