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 working strangely

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
robbyn
OOo Advocate
OOo Advocate


Joined: 29 Mar 2004
Posts: 320

PostPosted: Sat Mar 29, 2008 2:18 pm    Post subject: If working strangely Reply with quote

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.
Back to top
View user's profile Send private message
David
Super User
Super User


Joined: 24 Oct 2003
Posts: 5668
Location: Canada

PostPosted: Sat Mar 29, 2008 2:38 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
robbyn
OOo Advocate
OOo Advocate


Joined: 29 Mar 2004
Posts: 320

PostPosted: Sat Mar 29, 2008 3:15 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
David
Super User
Super User


Joined: 24 Oct 2003
Posts: 5668
Location: Canada

PostPosted: Sat Mar 29, 2008 7:03 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Sun Mar 30, 2008 5:56 am    Post subject: Reply with quote

There might be text in F2. =ISTEXT(F2) ?
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
Back to top
View user's profile Send private message
jrkrideau
Super User
Super User


Joined: 08 Aug 2005
Posts: 6732
Location: Kingston ON Canada

PostPosted: Tue Apr 01, 2008 8:28 am    Post subject: Reply with quote

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
Kingston ON Canada
Currently using Windows 7 & OOo 3.4.0 and Ubuntu 12.04 & LibreOffice 3.5.2.2
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