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

(SOLVED) Multiple Conditions for If formula trouble.

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


Joined: 14 Jan 2006
Posts: 16

PostPosted: Mon Jun 04, 2012 1:42 am    Post subject: (SOLVED) Multiple Conditions for If formula trouble. Reply with quote

For years i have been using a formula in a spreadsheet with no dramas.
=IF((L20+M20/2)>3;"WIN";"-")
which gives me a "WIN" in Cell N20 if I have 3 or more in L20 & 1 or 2 in M20 or if less "-".
Now I have to add a further condition as well.
If L20 is 1 or more & M20 is 2 I also need N20 to give me a "WIN" or if less "-".
I have tried many different formulas for this but can't seem to crack it.
Any help would be appreciated


Last edited by Ratso on Mon Jun 04, 2012 9:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
scsisys
OOo Enthusiast
OOo Enthusiast


Joined: 17 Dec 2009
Posts: 164

PostPosted: Mon Jun 04, 2012 4:02 am    Post subject: Reply with quote

Ratso....

Try this ; =IF(AND(L20>=1;M20=2);"Win";"-")

scsisys
_________________
OO 3.2.1
Win XP /SP3
Back to top
View user's profile Send private message
Ratso
General User
General User


Joined: 14 Jan 2006
Posts: 16

PostPosted: Mon Jun 04, 2012 8:22 pm    Post subject: Reply with quote

Thanks for the reply.
Your formula works for the new condition but not the old one.
I need both to be able to work.
I tried this formula but all I get in N20 is TRUE.
=IF(($L20+$M20/2)>3;"WIN";"-")=IF(AND(L20>=1;M20=2);"Win";"-")
Still Stumped.
Ratso.
Back to top
View user's profile Send private message
scsisys
OOo Enthusiast
OOo Enthusiast


Joined: 17 Dec 2009
Posts: 164

PostPosted: Mon Jun 04, 2012 9:08 pm    Post subject: Reply with quote

If I'm understanding your requirements, this appears to work.....

=IF(OR(AND(L20>=1;M20=2);((L20+M20/2)>3));"win";"-")

scsisys
_________________
OO 3.2.1
Win XP /SP3
Back to top
View user's profile Send private message
Ratso
General User
General User


Joined: 14 Jan 2006
Posts: 16

PostPosted: Mon Jun 04, 2012 9:18 pm    Post subject: Reply with quote

Thanks very much scsisys.
I Tried your formula, =IF(OR(AND(L20>=1;M20=2);((L20+M20/2)>3));"win";"-")
in my spreadsheet and it does work as iI wanted it to.
I never would have been able to figure out that string by myself.
Thanks once again.
Ratso
Back to top
View user's profile Send private message
scsisys
OOo Enthusiast
OOo Enthusiast


Joined: 17 Dec 2009
Posts: 164

PostPosted: Tue Jun 05, 2012 4:42 am    Post subject: Reply with quote

You're quite welcome. Have to apologize as I interpreted your request as meaning a formula to be used in a second, independent, cell and not as an addition to the existing
formula.

Have a good day....

scsisys
_________________
OO 3.2.1
Win XP /SP3
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