[Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register]

Author Message
CaliRay
General User

Joined: 26 Apr 2009
Posts: 10
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
Villeroy
Super User

Joined: 04 Oct 2004
Posts: 10106
Location: Germany

 Posted: Sun Apr 26, 2009 9:17 am    Post subject: 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
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).
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT - 8 Hours Page 1 of 1

 Jump to: Select a forum OpenOffice.org Forums----------------Setup and TroubleshootingOpenOffice.org WriterOpenOffice.org CalcOpenOffice.org ImpressOpenOffice.org DrawOpenOffice.org MathOpenOffice.org BaseOpenOffice.org Macros and APIOpenOffice.org Code Snippets Community Forums----------------General DiscussionSite Feedback
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