Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Function in writer
Function in writer
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
Pierrot
Guest





PostPosted: Tue Jul 11, 2006 5:56 am    Post subject: Function in writer

Hello

I am using this in a table cell in Writer:

=if(<C1>=="A"; <B1>*5,5/100; 0)

which is about calculating a 5.5% rate on B1 if C1 contains the letter "A" (and I will expand this into using a 19.6 VAT rate if letter is B).
Doesn't seem to work altough

=SI(C1="A"; B1*5,5/100; 0) works in in the spreadsheet module ...

Any idea why ? is this something I am allowed to do in the Writer module ? If not, I couldn't guess how to add a spreadsheet table in a writer page ...

BTW, have been using v2alpha4 which seems so far to be extremely stable for me (G4 1.5ghz) ! Very good work !

Pierre
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Tue Jul 11, 2006 8:08 am    Post subject:

Dunno about formulas in writer tables, but you can insert a spreadsheet with "Insert > Object > OLE Object" and choose "Spreadsheet" from the dialog.

ed
Back to top
Guest






PostPosted: Tue Jul 11, 2006 8:27 am    Post subject:

Yep, that's working ! At least I can use that Smile

But if anybody knows the answer for the writer module, I'd like to know, it's kind of faster that way !

Thks. Pierre.
Back to top
Guest






PostPosted: Wed Jul 12, 2006 6:58 am    Post subject:

Hello

After fumbling around quite sometime, I managed to do what I wanted in the writer. I had to use a few columns and replace my A's and B's by 1 and 2 because it seems that the "if" syntax does not exist in writer.
There are EQ (==) or NEQ (!=) tests, they just produce 0 or 1 (false or true) results and seems to work only on numbers (not strings).

Still, once working, it's easier and faster to use within the writer module (as opposed to creating a calc).

Pierre
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Page 1 of 1

 
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
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.