View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Earl Kiosterud Earl Kiosterud is offline
external usenet poster
 
Posts: 611
Default LOGICAL OPERATOR "IF" FOR AN ARRAY

Faraz,

I think you want one formula that examines all of A1:A100, and if it finds
what's in B1, it says so, otherwise, it says not. Put this in a cell:

=IF(OR(A1:A100=B1),"Entry in B1 is present in A1:A100","Entry in B1 is not
present in A1:A100")

It must be entered as an array formula (press Ctrl-Shift-Enter instead of
Enter any time you've typed or changed it).
--
Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"FARAZ QURESHI" wrote in message
...
Can V have a formulas like the following?

if ( any of the cells in array A1:A100 = "LOS ANGELES" , then "AMERICAN",
otherwise "NON-AMERICAN")

OR

if ( any of the cells in array A1:A20 < "40" , then "FAIL", otherwise
"PASS")