OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Complex formula???

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
CaliRay
General User
General User


Joined: 26 Apr 2009
Posts: 9
Location: Cali, Colombia

PostPosted: Sun Apr 26, 2009 7:15 am    Post subject: Complex formula??? Reply with quote

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.
Cool 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
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Sun Apr 26, 2009 9:17 am    Post subject: Reply with quote

Cross reference to http://user.services.openoffice.org/en/forum/viewtopic.php?f=9&t=18083
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
Back to top
View user's profile Send private message
keme
Moderator
Moderator


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

PostPosted: Sun Apr 26, 2009 9:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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