View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_3_] Bob Phillips[_3_] is offline
external usenet poster
 
Posts: 2,420
Default Smartening up an IF formula

=IF(OR(COUNTIF(A1:F1,"Yes")0,COUNTIF(A1:F1,"N/A")),"Yes","O/S")

--
__________________________________
HTH

Bob

"Stav19" wrote in message
...
Hi All

I've the following IF formula which looks in Columns A:F and based on
what is in the Cell - "Yes" or "N/A", it will write "Yes" if "Yes" or
"N/A" is written in the cell and "O/S" if the row is empty:

=IF(OR(A1="Yes",B1="Yes",C1="Yes",D1="Yes",E1="Yes ",F1="Yes"),"Yes",IF
(OR(A1="N/A",B1="N/A",C1="N/A",D1="N/A",E1="N/A",F1="N/A"),"Yes","O/
S"))

My questions are as follows:

I think this works, but it seems quite a long winded way of doing it,
is there a way of simplifying it?

From testing it, it seemed to work if the row was completely empty, is
there a way to corporate the blank into the formula, or is it best to
leave it as it is?

Cheers in advance guys