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

Author Message
samsanford33
General User

Joined: 01 Sep 2011
Posts: 13

 Posted: Thu Sep 01, 2011 8:16 pm    Post subject: IF FUNCTION HELP 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)""))
keme
Moderator

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

Posted: Fri Sep 02, 2011 12:22 am    Post subject: Re: IF FUNCTION HELP

 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;""))
Robert Tucker
Moderator

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

 Posted: Fri Sep 02, 2011 2:33 am    Post subject: Moved to Calc._________________OpenOffice 4.0.0 and LibreOffice 4.x.x on Fedora 20, Ubuntu 13.10, Windows 8.1 Preview (Triple Boot)
samsanford33
General User

Joined: 01 Sep 2011
Posts: 13

 Posted: Fri Sep 02, 2011 4:12 am    Post subject: Awesome.. I knew I was close. Thanks for the help!!
 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