You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2009/04/01 21:26:37 UTC

DO NOT REPLY [Bug 46951] New: Cannot parse range expressions with non-cell ref operands

https://issues.apache.org/bugzilla/show_bug.cgi?id=46951

           Summary: Cannot parse range expressions with non-cell ref
                    operands
           Product: POI
           Version: 3.5-dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: josh@gildedtree.com


The following code:
cell.setCellFormula("SUM(C1:OFFSET(C1,0,B1))");

fails with this exception:
org.apache.poi.ss.formula.FormulaParser$FormulaParseException: Specified named
range 'OFFSET' does not exist in the current workbook.


This bug was noticed while fixing bug 46948 , which is concerned about
evaluation of the corresponding Ptg array (pre-parsed by Excel).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 46951] Cannot parse range expressions with non-cell ref operands

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46951


Josh Micich <jo...@gildedtree.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #1 from Josh Micich <jo...@gildedtree.com>  2009-04-06 01:45:47 PST ---
This turned out to be a much bigger change than expected.  Expressions like
"A!A1:A!B2" are not easily handled by recursive descent parsing.

Fixed in svn r762250 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=762250 )
Several junits added

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org