View previous topic :: View next topic 
Author 
Message 
CaliRay General User
Joined: 26 Apr 2009 Posts: 9 Location: Cali, Colombia

Posted: Sun Apr 26, 2009 7:15 am Post subject: Complex formula??? 


My formula writing skills are very limited and I have what, for me, is a very complex formula to write. I hope someone here can help with this.
Here's the situation. I have two columns of numbers and based on a test of each set of numbers in a row, I need to fill a third cell on that row with one of four possible words.
1) If cell A1 is between 0 and 499 and cell B1 is between 0 and 10000, I want to write "GOOD" in cell C1.
2) If cell A1 is between 500 and 999 and cell B1 is between 0 and 10000, I want to write "GOOD" in cell C1.
3) If cell A1 is 1000 or more and cell B1 is between 0 and 10000, I want to write "EXCELLENT" in cell C1.
4) If cell A1 is between 0 and 499 and cell B1 is between 10001 and 20000, I want to write "POOR" in cell C1.
5) If cell A1 is between 500 and 999 and cell B1 is between 0 and 10000, I want to write "FAIR" in cell C1.
6) If cell A1 is 1000 or more and cell B1 is between 10001 and 2000, I want to write "GOOD" in cell C1.
7) If cell A1 is between 0 and 499 and cell B1 is between 20001 and 50000, I want to write "POOR" in cell C1.
If cell A1 is between 500 and 999 and cell B1 is between 20001 and 50000, I want to write "POOR" in cell C1.
9) If cell A1 is 1000 or more and cell B1 is between 20001 and 50000, I want to write "FAIR" in cell C1.
I've tried to construct this formula several times by building up each test using IF with AND, but can't get it together. One problem I can't solve is how to return something other than "TRUE" or "FALSE" using the IF/AND tests.
I really appreciate any help offered for this problem.
Regards, CaliRay 

Back to top 


Villeroy Super User
Joined: 04 Oct 2004 Posts: 10106 Location: Germany


Back to top 


keme Moderator
Joined: 30 Aug 2004 Posts: 2910 Location: Egersund, Norway

Posted: Sun Apr 26, 2009 9:45 am Post subject: 


Based on Villeroy's example, note that you'll use the start value of each range as the table index. So along one axis you'll use 0, 500, and 1000 (and 2001 in the next cell if you need to mark an error for values larger than 2000). Along the other axis you use 0, 10001, and 20001 (and 50001 for that "undefined" value). 

Back to top 




You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group
