Commit fcb2bddb authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix COUNTIF and COUNTIFS formulas for value format

parent 02d110f9
......@@ -1140,6 +1140,7 @@
cCOUNTIF.prototype.constructor = cCOUNTIF;
cCOUNTIF.prototype.argumentsMin = 2;
cCOUNTIF.prototype.argumentsMax = 2;
cCOUNTIF.prototype.numFormat = AscCommonExcel.cNumFormatNone;
cCOUNTIF.prototype.Calculate = function (arg) {
var arg0 = arg[0], arg1 = arg[1], _count = 0, matchingInfo;
if (cElementType.cell !== arg0.type && cElementType.cell3D !== arg0.type &&
......@@ -1197,6 +1198,7 @@
cCOUNTIFS.prototype.constructor = cCOUNTIFS;
cCOUNTIFS.prototype.argumentsMin = 2;
cCOUNTIFS.prototype.argumentsMax = 254;
cCOUNTIFS.prototype.numFormat = AscCommonExcel.cNumFormatNone;
cCOUNTIFS.prototype.Calculate = function (arg) {
var i, j, arg0, arg1, matchingInfo, arg0Matrix, arg1Matrix, _count = 0;
for (var k = 0; k < arg.length; k += 2) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment