summaryrefslogtreecommitdiffstats
path: root/test/xls-xml/formula-cells-1
diff options
context:
space:
mode:
Diffstat (limited to 'test/xls-xml/formula-cells-1')
-rw-r--r--test/xls-xml/formula-cells-1/check.txt7
-rw-r--r--test/xls-xml/formula-cells-1/input.xml73
2 files changed, 80 insertions, 0 deletions
diff --git a/test/xls-xml/formula-cells-1/check.txt b/test/xls-xml/formula-cells-1/check.txt
new file mode 100644
index 0000000..cc0e42e
--- /dev/null
+++ b/test/xls-xml/formula-cells-1/check.txt
@@ -0,0 +1,7 @@
+Sheet1/0/0:numeric:1
+Sheet1/0/1:formula:RC[-1]*2:2
+Sheet1/1/0:numeric:2
+Sheet1/1/1:formula:RC[-1]-10:-8
+Sheet1/2/0:numeric:3
+Sheet1/2/1:formula:RC[-1]/3:1
+Sheet1/4/0:formula:SUM(R[-4]C:R[-2]C):6
diff --git a/test/xls-xml/formula-cells-1/input.xml b/test/xls-xml/formula-cells-1/input.xml
new file mode 100644
index 0000000..99710ec
--- /dev/null
+++ b/test/xls-xml/formula-cells-1/input.xml
@@ -0,0 +1,73 @@
+<?xml version="1.0"?>
+<?mso-application progid="Excel.Sheet"?>
+<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">
+ <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
+ <Author>Kohei Yoshida</Author>
+ <LastAuthor>Kohei Yoshida</LastAuthor>
+ <Created>2017-12-17T19:34:25Z</Created>
+ <LastSaved>2017-12-17T19:35:47Z</LastSaved>
+ <Version>16.00</Version>
+ </DocumentProperties>
+ <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
+ <AllowPNG/>
+ </OfficeDocumentSettings>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+ <WindowHeight>12210</WindowHeight>
+ <WindowWidth>28800</WindowWidth>
+ <WindowTopX>0</WindowTopX>
+ <WindowTopY>0</WindowTopY>
+ <ProtectStructure>False</ProtectStructure>
+ <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+ <Style ss:ID="Default" ss:Name="Normal">
+ <Alignment ss:Vertical="Bottom"/>
+ <Borders/>
+ <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"/>
+ <Interior/>
+ <NumberFormat/>
+ <Protection/>
+ </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+ <Table ss:ExpandedColumnCount="2" ss:ExpandedRowCount="5" x:FullColumns="1"
+ x:FullRows="1" ss:DefaultRowHeight="15">
+ <Row>
+ <Cell><Data ss:Type="Number">1</Data></Cell>
+ <Cell ss:Formula="=RC[-1]*2"><Data ss:Type="Number">2</Data></Cell>
+ </Row>
+ <Row>
+ <Cell><Data ss:Type="Number">2</Data></Cell>
+ <Cell ss:Formula="=RC[-1]-10"><Data ss:Type="Number">-8</Data></Cell>
+ </Row>
+ <Row>
+ <Cell><Data ss:Type="Number">3</Data></Cell>
+ <Cell ss:Formula="=RC[-1]/3"><Data ss:Type="Number">1</Data></Cell>
+ </Row>
+ <Row ss:Index="5">
+ <Cell ss:Formula="=SUM(R[-4]C:R[-2]C)"><Data ss:Type="Number">6</Data></Cell>
+ </Row>
+ </Table>
+ <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+ <PageSetup>
+ <Header x:Margin="0.3"/>
+ <Footer x:Margin="0.3"/>
+ <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+ </PageSetup>
+ <Selected/>
+ <Panes>
+ <Pane>
+ <Number>3</Number>
+ <ActiveRow>4</ActiveRow>
+ <ActiveCol>1</ActiveCol>
+ </Pane>
+ </Panes>
+ <ProtectObjects>False</ProtectObjects>
+ <ProtectScenarios>False</ProtectScenarios>
+ </WorksheetOptions>
+ </Worksheet>
+</Workbook>