1
0
Fork 0

Spreadsheet evaluateCell average fix.

pull/1/head
selim 2023-12-26 18:04:38 +01:00
parent 5fbf2658d4
commit dd9ff48a4e
1 changed files with 3 additions and 3 deletions

View File

@ -187,11 +187,11 @@ public class Spreadsheet {
else if (formula.startsWith("MITTELWERT(")) // e.g. MITTELWERT(A3:A5)
if (formula.length() < 17)
if (formula.length() < 18)
result = "" + average(substringStartCell1, substringEndCell1);
else if (formula.length() < 18)
result = "" + average(substringStartCell2, substringEndCell2);
else if (formula.length() < 19)
result = "" + average(substringStartCell2, substringEndCell2);
else if (formula.length() < 20)
result = "" + average(substringStartCell3, substringEndCell2);
else
result = "0";