View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default Printing with formula

To avoid an array formula, I'd use sumproduct:
=if(sumproduct(--(a590:j590<41),--(a590:j59033))=10,"PASS","FAIL")
(If you know that the cells a590:j590 are numeric, you could use
count(a590:j590) rather than the number 10.)


"Claudio" wrote:

I am trying to check the value of a range of cells and print PASS or Fail,
depending if all the cells fall within those parameters or not.
This is what I am using:

=IF(AND(A590:J590<41, A590:J59033),"PASS","FAIL")

It seems that it only checks the first cell, A590. If I change the value of
any of the other cells, it doesn't work.
--
Claudio