Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Changed

- Changed the documentation links returned by `getAvailableFunctions()` and `getFunctionDetails()` (`documentationUrl` and the links in `shortDescription`) to point to the documentation's new address, `https://handsontable.com/docs/hyperformula/`.

### Fixed

- Fixed the `EDATE` function returning the 28th of February instead of the 29th when the shifted date falls in February of a leap year (e.g. `=EDATE(DATE(2028, 1, 31), 1)` now returns `2028-02-29` instead of `2028-02-28`). [#1781](https://github.com/handsontable/hyperformula/pull/1781)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ export const ARRAY_MANIPULATION_DOCS: Record<string, FunctionDoc> = {
category: 'Array manipulation',
shortDescription: 'Truncates an array to given dimensions.',
parameters: [{name: 'array', description: 'The array or range to truncate.'}, {name: 'height', description: 'The maximum number of rows to keep, automatically capped at the height of array.'}, {name: 'width', description: 'The maximum number of columns to keep, automatically capped at the width of array.'}],
documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html',
documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html',
examples: ['=ARRAY_CONSTRAIN(A1:C3, 2, 2)', '=ARRAY_CONSTRAIN(A1:C3, 1, 3)'],
},
ARRAYFORMULA: {
category: 'Array manipulation',
shortDescription: 'Enables the array arithmetic mode for a single formula.',
parameters: [{name: 'formula', description: 'The formula or expression to evaluate in array arithmetic mode, so operations are applied element-by-element across the referenced ranges.'}],
documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html',
documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html',
examples: ['=ARRAYFORMULA(A1:A3*B1:B3)', '=SUM(ARRAYFORMULA(A1:A3*B1:B3))'],
},
}
24 changes: 12 additions & 12 deletions src/interpreter/functionMetadata/categories/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,84 +14,84 @@ export const DATABASE_DOCS: Record<string, FunctionDoc> = {
category: 'Database',
shortDescription: 'Returns the average of all values in a database field that match the given criteria.',
parameters: [{name: 'database', description: 'The range of cells holding the database table, including a header row with field names in the first row.'}, {name: 'field', description: 'The field whose values are averaged, given as a matching header name or as a 1-based column index within database.'}, {name: 'criteria', description: 'The range of condition cells, with a header row matching field names in database and one or more rows below it; conditions within the same row are combined with AND, and separate rows are combined with OR.'}],
documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html',
documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html',
examples: ['=DAVERAGE(A1:C10, "Sales", E1:E2)', '=DAVERAGE(A1:C10, 3, E1:F2)'],
},
DCOUNT: {
category: 'Database',
shortDescription: 'Counts the cells containing numbers in a database field that match the given criteria.',
parameters: [{name: 'database', description: 'The range of cells holding the database table, including a header row with field names in the first row.'}, {name: 'field', description: 'The field whose numeric values are counted, given as a matching header name or as a 1-based column index within database.'}, {name: 'criteria', description: 'The range of condition cells, with a header row matching field names in database and one or more rows below it; conditions within the same row are combined with AND, and separate rows are combined with OR.'}],
documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html',
documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html',
examples: ['=DCOUNT(A1:C10, "Sales", E1:E2)', '=DCOUNT(A1:C10, 3, E1:F2)'],
},
DCOUNTA: {
category: 'Database',
shortDescription: 'Counts the non-empty cells in a database field that match the given criteria.',
parameters: [{name: 'database', description: 'The range of cells holding the database table, including a header row with field names in the first row.'}, {name: 'field', description: 'The field whose non-empty values are counted, given as a matching header name or as a 1-based column index within database.'}, {name: 'criteria', description: 'The range of condition cells, with a header row matching field names in database and one or more rows below it; conditions within the same row are combined with AND, and separate rows are combined with OR.'}],
documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html',
documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html',
examples: ['=DCOUNTA(A1:C10, "Name", E1:E2)', '=DCOUNTA(A1:C10, 1, E1:F2)'],
},
DGET: {
category: 'Database',
shortDescription: 'Returns the single value from a database field that matches the given criteria. Returns #VALUE! if no records match, and #NUM! if more than one record matches.',
parameters: [{name: 'database', description: 'The range of cells holding the database table, including a header row with field names in the first row.'}, {name: 'field', description: 'The field whose value is returned, given as a matching header name or as a 1-based column index within database.'}, {name: 'criteria', description: 'The range of condition cells, with a header row matching field names in database and one or more rows below it; conditions within the same row are combined with AND, and separate rows are combined with OR.'}],
documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html',
documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html',
examples: ['=DGET(A1:C10, "Name", E1:E2)', '=DGET(A1:C10, 2, E1:F2)'],
},
DMAX: {
category: 'Database',
shortDescription: 'Returns the maximum value in a database field that matches the given criteria.',
parameters: [{name: 'database', description: 'The range of cells holding the database table, including a header row with field names in the first row.'}, {name: 'field', description: 'The field whose maximum value is returned, given as a matching header name or as a 1-based column index within database.'}, {name: 'criteria', description: 'The range of condition cells, with a header row matching field names in database and one or more rows below it; conditions within the same row are combined with AND, and separate rows are combined with OR.'}],
documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html',
documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html',
examples: ['=DMAX(A1:C10, "Sales", E1:E2)', '=DMAX(A1:C10, 3, E1:F2)'],
},
DMIN: {
category: 'Database',
shortDescription: 'Returns the minimum value in a database field that matches the given criteria.',
parameters: [{name: 'database', description: 'The range of cells holding the database table, including a header row with field names in the first row.'}, {name: 'field', description: 'The field whose minimum value is returned, given as a matching header name or as a 1-based column index within database.'}, {name: 'criteria', description: 'The range of condition cells, with a header row matching field names in database and one or more rows below it; conditions within the same row are combined with AND, and separate rows are combined with OR.'}],
documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html',
documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html',
examples: ['=DMIN(A1:C10, "Sales", E1:E2)', '=DMIN(A1:C10, 3, E1:F2)'],
},
DPRODUCT: {
category: 'Database',
shortDescription: 'Returns the product of all values in a database field that match the given criteria.',
parameters: [{name: 'database', description: 'The range of cells holding the database table, including a header row with field names in the first row.'}, {name: 'field', description: 'The field whose matching values are multiplied together, given as a matching header name or as a 1-based column index within database.'}, {name: 'criteria', description: 'The range of condition cells, with a header row matching field names in database and one or more rows below it; conditions within the same row are combined with AND, and separate rows are combined with OR.'}],
documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html',
documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html',
examples: ['=DPRODUCT(A1:C10, "Sales", E1:E2)', '=DPRODUCT(A1:C10, 3, E1:F2)'],
},
DSTDEV: {
category: 'Database',
shortDescription: 'Returns the sample standard deviation of all values in a database field that match the given criteria.',
parameters: [{name: 'database', description: 'The range of cells holding the database table, including a header row with field names in the first row.'}, {name: 'field', description: 'The field whose sample standard deviation is calculated, given as a matching header name or as a 1-based column index within database.'}, {name: 'criteria', description: 'The range of condition cells, with a header row matching field names in database and one or more rows below it; conditions within the same row are combined with AND, and separate rows are combined with OR.'}],
documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html',
documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html',
examples: ['=DSTDEV(A1:C10, "Sales", E1:E2)', '=DSTDEV(A1:C10, 3, E1:F2)'],
},
DSTDEVP: {
category: 'Database',
shortDescription: 'Returns the population standard deviation of all values in a database field that match the given criteria.',
parameters: [{name: 'database', description: 'The range of cells holding the database table, including a header row with field names in the first row.'}, {name: 'field', description: 'The field whose population standard deviation is calculated, given as a matching header name or as a 1-based column index within database.'}, {name: 'criteria', description: 'The range of condition cells, with a header row matching field names in database and one or more rows below it; conditions within the same row are combined with AND, and separate rows are combined with OR.'}],
documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html',
documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html',
examples: ['=DSTDEVP(A1:C10, "Sales", E1:E2)', '=DSTDEVP(A1:C10, 3, E1:F2)'],
},
DSUM: {
category: 'Database',
shortDescription: 'Returns the sum of all values in a database field that match the given criteria.',
parameters: [{name: 'database', description: 'The range of cells holding the database table, including a header row with field names in the first row.'}, {name: 'field', description: 'The field whose values are summed, given as a matching header name or as a 1-based column index within database.'}, {name: 'criteria', description: 'The range of condition cells, with a header row matching field names in database and one or more rows below it; conditions within the same row are combined with AND, and separate rows are combined with OR.'}],
documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html',
documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html',
examples: ['=DSUM(A1:C10, "Sales", E1:E2)', '=DSUM(A1:C10, 3, E1:F2)'],
},
DVAR: {
category: 'Database',
shortDescription: 'Returns the sample variance of all values in a database field that match the given criteria.',
parameters: [{name: 'database', description: 'The range of cells holding the database table, including a header row with field names in the first row.'}, {name: 'field', description: 'The field whose sample variance is calculated, given as a matching header name or as a 1-based column index within database.'}, {name: 'criteria', description: 'The range of condition cells, with a header row matching field names in database and one or more rows below it; conditions within the same row are combined with AND, and separate rows are combined with OR.'}],
documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html',
documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html',
examples: ['=DVAR(A1:C10, "Sales", E1:E2)', '=DVAR(A1:C10, 3, E1:F2)'],
},
DVARP: {
category: 'Database',
shortDescription: 'Returns the population variance of all values in a database field that match the given criteria.',
parameters: [{name: 'database', description: 'The range of cells holding the database table, including a header row with field names in the first row.'}, {name: 'field', description: 'The field whose population variance is calculated, given as a matching header name or as a 1-based column index within database.'}, {name: 'criteria', description: 'The range of condition cells, with a header row matching field names in database and one or more rows below it; conditions within the same row are combined with AND, and separate rows are combined with OR.'}],
documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html',
documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html',
examples: ['=DVARP(A1:C10, "Sales", E1:E2)', '=DVARP(A1:C10, 3, E1:F2)'],
},
}
Loading
Loading