Welcome to Dream.In.Code
Become a Java Expert!

Join 149,523 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,423 people online right now. Registration is fast and FREE... Join Now!




JExcelAPI and formula

 
Reply to this topicStart new topic

JExcelAPI and formula, Error when parsing a formula

gyron
2 Jul, 2007 - 11:50 PM
Post #1

D.I.C Head
**

Joined: 9 Jan, 2007
Posts: 61


My Contributions
I am using the JExcelAPI to write and read Excel spreadsheets. I am trying to pass this formula to the sheet: -

=IF(A1=0;0;ROUND(ROUNDUP(A1;0);-(ROUNDDOWN(LOG10(A1);0)-2)))

as follows: -
CODE

Formula f=new Formula(1,0,"IF(A1=0;0;ROUND(ROUNDUP(A1;0);-(ROUNDDOWN(LOG10(A1);0)-2)))");
                 sheet.addCell(f);


but i get this errror, Lexical error at char 7. Does anyone know how i can solve this?

This post has been edited by gyron: 2 Jul, 2007 - 11:54 PM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 08:41PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month