Skip to content
This repository was archived by the owner on Mar 9, 2020. It is now read-only.

Sumsq issue #615

@ghost

Description

EEPlus v: 4.5.3.3

The cell C1 contains this formula "SQRT(SUMSQ(B1:B300000)/ COUNTA(B1:B300000))".
I'm trying to get C1 value after WS.Cells["C1"].Calculate() but I get following error:

=================================
Timestamp: 05/02/2020 17:48:55

Worksheet: test.csv
Address: C1
OfficeOpenXml.FormulaParsing.Exceptions.ExcelErrorValueException: #VALUE!
   at OfficeOpenXml.FormulaParsing.Excel.Functions.ExcelFunction.CheckForAndHandleExcelError(ICellInfo cell)
   at OfficeOpenXml.FormulaParsing.Excel.Functions.Math.Sumsq.Calculate(FunctionArgument arg, ParsingContext context, Boolean isInArray)
   at OfficeOpenXml.FormulaParsing.Excel.Functions.Math.Sumsq.Execute(IEnumerable`1 arguments, ParsingContext context)
   at OfficeOpenXml.FormulaParsing.ExpressionGraph.FunctionExpression.Compile()

=================================
Timestamp: 05/02/2020 17:48:55

Worksheet: test.csv
Address: C1
OfficeOpenXml.FormulaParsing.Exceptions.ExcelErrorValueException: #VALUE!
   at OfficeOpenXml.FormulaParsing.Excel.Functions.DoubleArgumentParser.Parse(Object obj)
   at OfficeOpenXml.FormulaParsing.Excel.Functions.ExcelFunction.ArgToDecimal(Object obj)

The formula in the cell is written without "=". if I open the file with excel after creation it's work.
I tried to use WS.Cells.Calculate(), the others formulas work but not that.
I tried to close and reopen the file, get value after Calculate() but the result is the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions