View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Bob Flanagan[_2_] Bob Flanagan[_2_] is offline
external usenet poster
 
Posts: 81
Default Excel 2002: Can I compare 4 cells at one time ?

=if(and(a1=b1, a1=c1, a1=d1, a1=d1),"ok","error")

Bob Flanagan
Macro Systems
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"Mr. Low" wrote in message
...
Dear Sir,

If I want column E to return with "OK" when cells at each row has
identical
entry from column A to D, otherwise return with "Error".


A B C D E
1 K21 K21 K21 K21 OK
2 RQ1 RQ1 RX3 RQ1 Error
3 H6U K8Y K8Y H6U Error

What formula must I input at cell E1 and copy down to get the answer?


Thanks

Low

--
A36B58K641