Spreadsheet evaluateCell average fix.
parent
5fbf2658d4
commit
dd9ff48a4e
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue