View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Jacob Skaria Jacob Skaria is offline
external usenet poster
 
Posts: 8,520
Default ARE ALL THE CELLS EQUAL?

If A1 is not blank..the below will do

=IF(COUNTIF(A1:A10,A1)=ROWS(A1:A10),"All cells are same","Not same")

If this post helps click Yes
---------------
Jacob Skaria


"Faraz A. Qureshi" wrote:

Instead of entering a lengthy formula like:

=IF(OR(D12<D7,D7<E9,E9<G2,G2<H17,H17<F11,F11< I6),"OUT","OK")

Any idea how to determine if all the cells are equal by entering address of
each cell once only, namely:
D12, D7, E9, G2, H17, F11, I6
or that of a range, like:
B1:B50
only once?

Thanx in advance.

--
Best Regards,

Faraz