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

Author Message
robbyn

Joined: 29 Mar 2004
Posts: 322

 Posted: Sat Mar 29, 2008 2:18 pm    Post subject: If working strangely I am amalgamating two columns of figs. F2 is Dr, G2 is Cr. IF(F2>0:F2:-G2) does not work on this particular list of values, event though F2 is blank it still returns a blank instead of -G2. I also tried F2>1000 if still returned the value of F2 even though it is blank. I reinstalled calc. It made no difference. I had to use the following instead: IF(ISNUMBER(F2);F2;-G2) Does any one recognise what is going wrong?_________________Robin When you love a delicate rose remember she has thorns and a root. In time the petals will fall away.
David
Super User

Joined: 24 Oct 2003
Posts: 5668

 Posted: Sat Mar 29, 2008 2:38 pm    Post subject: Aside from the fact that your upper formula has colons instead of semicolons, I just now tried it [with semicolons], and it works fine in version 2.3. David.
robbyn

Joined: 29 Mar 2004
Posts: 322

 Posted: Sat Mar 29, 2008 3:15 pm    Post subject: I have used that formula many times and it has worked with the correct semi colons. What I am finding is in this particular instance it is not working and I can not see why? How do you suggest I find what is fooling the IF into assuming that a cell showing no content has a value >1000?_________________Robin When you love a delicate rose remember she has thorns and a root. In time the petals will fall away.
David
Super User

Joined: 24 Oct 2003
Posts: 5668

 Posted: Sat Mar 29, 2008 7:03 pm    Post subject: Then I do not understand why here you used colons except for a typo? In any event, I can not see a reason for failure since, as I said, it [ =IF(F2>0;F2;-G2) ] works for me in either case. David.
Villeroy
Super User

Joined: 04 Oct 2004
Posts: 10106
Location: Germany

 Posted: Sun Mar 30, 2008 5:56 am    Post subject: There might be text in F2. =ISTEXT(F2) ?_________________Rest in peace, oooforum.org Get help on https://forum.openoffice.org
jrkrideau
Super User

Joined: 08 Aug 2005
Posts: 6732

Posted: Tue Apr 01, 2008 8:28 am    Post subject:

 Villeroy wrote: There might be text in F2. =ISTEXT(F2) ?

That looks likely. In which case, I'd suggest very carefully checking the results of that equation just to be sure that the is.,number conversion is working properly. Spreadsheeets do some very weird things with text as numbers.
_________________
jrkrideau
Currently using Windows 7 & OOo 3.4.0 and Ubuntu 12.04 & LibreOffice 3.5.2.2
 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