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

IF FUNCTION HELP

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


Joined: 01 Sep 2011
Posts: 13

PostPosted: Thu Sep 01, 2011 8:16 pm    Post subject: IF FUNCTION HELP Reply with quote

Ok so here's the formula I have that works:

=IF(J5="L";I5*1.1;-I5)

This formula works pretty good, the only problem is that I have two Values going into the J column, and I don't want a negative number unless the other value is a W. so here is a couple of formulas that I was trying that didn't work

=IF((J4="L";I4*1.1Wink,(J4="W";-I4);"")
=IF((J4="L";K4*1.1;IF(J4="W";-K4)""))
Back to top
View user's profile Send private message
keme
Moderator
Moderator


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

PostPosted: Fri Sep 02, 2011 12:22 am    Post subject: Re: IF FUNCTION HELP Reply with quote

samsanford33 wrote:
Ok so here's the formula I have that works:

=IF(J5="L";I5*1.1;-I5)

This formula works pretty good, the only problem is that I have two Values going into the J column, and I don't want a negative number unless the other value is a W. so here is a couple of formulas that I was trying that didn't work

=IF((J4="L";I4*1.1;),(J4="W";-I4);"")
=IF((J4="L";K4*1.1;IF(J4="W";-K4)""))
Your second attempt should work with a little modification on parentheses:
=IF(J4="L";K4*1.1;IF(J4="W";-K4;""))
Back to top
View user's profile Send private message
Robert Tucker
Moderator
Moderator


Joined: 16 Aug 2004
Posts: 3407
Location: Manchester UK

PostPosted: Fri Sep 02, 2011 2:33 am    Post subject: Reply with quote

Moved to Calc.
_________________
OpenOffice 4.0.0 and LibreOffice 4.x.x on Fedora 20, Ubuntu 13.10, Windows 8.1 Preview (Triple Boot)
Back to top
View user's profile Send private message
samsanford33
General User
General User


Joined: 01 Sep 2011
Posts: 13

PostPosted: Fri Sep 02, 2011 4:12 am    Post subject: Reply with quote

Awesome.. I knew I was close. Thanks for the help!!
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