Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Claudio
 
Posts: n/a
Default Printing with formula

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

  #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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
 
Posts: n/a
Default Printing with formula

You cannot use Boolean (AND , OR) with an array formula.
Try this
=IF(SUMPRODUCT(--(A1:A433),--(A1:A4<41))=COUNT(A1:A4),"PASS","FAIL") you
commit it with a simple ENTER; it is not an array formula.
Just change the cell references - I needed something simple to test.
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Claudio" wrote in message
...
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



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Claudio
 
Posts: n/a
Default Printing with formula

That worked great, thank you.

Claudio


"bpeltzer" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Locking portions of a formula tiggatattoo Excel Worksheet Functions 2 June 5th 06 04:51 PM
assign formula to another cell Dannycol Excel Worksheet Functions 3 May 12th 06 09:46 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
adding row to forumla carrera Excel Discussion (Misc queries) 9 August 23rd 05 10:24 PM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM


All times are GMT +1. The time now is 07:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"