This repository was archived by the owner on Mar 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Sumsq issue #615
Copy link
Copy link
Open
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels