From 722affb8bb3b5204030b001a64a71684a89f9ad9 Mon Sep 17 00:00:00 2001 From: Masha_Rudenko Date: Mon, 11 May 2026 15:58:37 +0300 Subject: [PATCH 1/2] [update] add COUNTIF and SUMIF to functions list - added COUNTIF entry after COUNTBLANK with v6.0 tag - added SUMIF entry after SUM with v6.0 tag --- docs/functions.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/functions.md b/docs/functions.md index dc7ecc3b..0f8ebfd6 100644 --- a/docs/functions.md +++ b/docs/functions.md @@ -831,6 +831,10 @@ Check the example in our [snippet tool](https://snippet.dhtmlx.com/wux2b35b). COUNTBLANK Returns the number of empty cells from a specified range.
Cells with zero values are not counted. + + COUNTIF
added in v6.0 + Counts the number of cells within a range that meet the given condition.
Takes two arguments: the range of cells to evaluate and the criterion that defines which cells to count. + DECIMAL Converts a text representation of a number in a given base (radix) into a decimal number.
The base radix must be an integer from 2 to 36, inclusive. @@ -1036,6 +1040,10 @@ Only numbers in the array or reference are multiplied. Empty cells, logical valu SUM Returns the sum of supplied values.
Empty cells, logical values like TRUE, or text are ignored. + + SUMIF
added in v6.0 + Adds the cells in a range that meet a specified condition.
Takes two required arguments (the range to evaluate and the criterion) and one optional argument (the range of cells to sum, if different from the evaluated range). + SUMPRODUCT Multiplies range of cells or arrays and returns the sum of products.
For valid products only numbers are multiplied.
Empty cells, logical values, and text are ignored.
Treats array entries that are not numeric as if they were zeros. From 3e1ea7ba84f1fa78b9a6cd428c753a82495a7eab Mon Sep 17 00:00:00 2001 From: Masha_Rudenko Date: Mon, 11 May 2026 18:17:36 +0300 Subject: [PATCH 2/2] [update] add conditional aggregate functions to docs - added AVERAGEIF, AVERAGEIFS, COUNTIFS, MAXIFS, MINIFS, SUMIFS entries to functions.md - updated whats_new.md v6.0 to list all 8 new conditional functions - updated react/overview.md function count to 90+ --- docs/functions.md | 24 ++++++++++++++++++++++++ docs/react/overview.md | 2 +- docs/whats_new.md | 2 +- 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/docs/functions.md b/docs/functions.md index 0f8ebfd6..4f2feff7 100644 --- a/docs/functions.md +++ b/docs/functions.md @@ -775,6 +775,14 @@ Check the example in our [snippet tool](https://snippet.dhtmlx.com/wux2b35b). AVERAGEA
added in v4.3 Calculates the average (arithmetic mean) of the values in the list of arguments.
Arguments can be the following: numbers; names, arrays, or references that contain numbers; text representations of numbers; or logical values, such as TRUE and FALSE, in a reference.
Empty cells and text values in the array or reference are ignored. + + AVERAGEIF
added in v6.0 + Returns the average (arithmetic mean) of all cells in a range that meet a given condition.
Takes two required arguments (the range to evaluate and the criterion) and one optional argument (the range of cells to average, if different from the evaluated range). + + + AVERAGEIFS
added in v6.0 + Returns the average (arithmetic mean) of all cells that meet multiple conditions.
Takes a required average range followed by one or more pairs of condition range and criterion arguments. + BASE Converts a number into the supplied base (radix).
The number should be an integer and greater than or equal to 0 and less than 2^53.
The base radix is what we want to convert the number into. It must be an integer from 2 to 36, inclusive. @@ -835,6 +843,10 @@ Check the example in our [snippet tool](https://snippet.dhtmlx.com/wux2b35b). COUNTIF
added in v6.0 Counts the number of cells within a range that meet the given condition.
Takes two arguments: the range of cells to evaluate and the criterion that defines which cells to count. + + COUNTIFS
added in v6.0 + Counts the number of cells that meet multiple conditions.
Takes one or more pairs of range and criterion arguments; only cells that satisfy all conditions are counted. + DECIMAL Converts a text representation of a number in a given base (radix) into a decimal number.
The base radix must be an integer from 2 to 36, inclusive. @@ -907,10 +919,18 @@ Check the example in our [snippet tool](https://snippet.dhtmlx.com/wux2b35b). MAX Returns the largest value in a set of values.
The function ignores empty cells, the logical values TRUE and FALSE, and text values. If the arguments contain no numbers, MAX returns 0 (zero). + + MAXIFS
added in v6.0 + Returns the maximum value among cells specified by a given set of conditions.
Takes a required max range followed by one or more pairs of condition range and criterion arguments. + MIN Returns the smallest number in a set of values.
Empty cells, logical values, or text in the array or reference are ignored. If the arguments contain no numbers, MIN returns 0 (zero). + + MINIFS
added in v6.0 + Returns the minimum value among cells specified by a given set of conditions.
Takes a required min range followed by one or more pairs of condition range and criterion arguments. + MINUS Returns the difference of two numbers. @@ -1044,6 +1064,10 @@ Only numbers in the array or reference are multiplied. Empty cells, logical valu SUMIF
added in v6.0 Adds the cells in a range that meet a specified condition.
Takes two required arguments (the range to evaluate and the criterion) and one optional argument (the range of cells to sum, if different from the evaluated range). + + SUMIFS
added in v6.0 + Adds the cells in a range that meet multiple conditions.
Takes a required sum range followed by one or more pairs of condition range and criterion arguments; only cells that satisfy all conditions are included in the sum. + SUMPRODUCT Multiplies range of cells or arrays and returns the sum of products.
For valid products only numbers are multiplied.
Empty cells, logical values, and text are ignored.
Treats array entries that are not numeric as if they were zeros. diff --git a/docs/react/overview.md b/docs/react/overview.md index 08e174db..705fcee5 100644 --- a/docs/react/overview.md +++ b/docs/react/overview.md @@ -17,7 +17,7 @@ The React Spreadsheet wrapper is available with the DHTMLX Spreadsheet **Commerc The React wrapper provides access to the full feature set of DHTMLX Spreadsheet: - Multi-sheet spreadsheets with sheet tabs (add, remove, rename) -- Cell values, formulas (85+ built-in functions), and number formatting +- Cell values, formulas (90+ built-in functions), and number formatting - Cell styling, merged cells, frozen panes, data validation - Sorting, filtering, and search - Row/column operations (add, delete, hide/show, resize, auto-fit) diff --git a/docs/whats_new.md b/docs/whats_new.md index cf2aa0eb..aa5c7256 100644 --- a/docs/whats_new.md +++ b/docs/whats_new.md @@ -32,7 +32,7 @@ The new release introduces significant changes in the Spreadsheet API: there is - The ability to adjust the font size of cell content: - a built-in toolbar control - the ability to provide custom font size in the toolbar control -- `COUNTIF` and `SUMIF` functions are added into the formulas engine +- New conditional aggregate functions are added into the formulas engine: `COUNTIF`, `COUNTIFS`, `SUMIF`, `SUMIFS`, `AVERAGEIF`, `AVERAGEIFS`, `MAXIFS`, `MINIFS` - The `awaitRedraw()` helper is added for Spreadsheet to detect the rendering process and perform the desired code after the component finishes its rendering ### Fixes