From 71d248dc6810e6406b82ac8caf872fc9515baf0c Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 15 Oct 2026 07:44:50 +0000 Subject: [PATCH] Point the function catalogue's documentation links to handsontable.com/docs/hyperformula/ The documentationUrl of every built-in function and the links in the shortDescription strings pointed to the documentation's former address, hyperformula.handsontable.com/docs/. getAvailableFunctions() and getFunctionDetails() returned them to library users, who reached the pages only through two redirects. The HYPERLINK examples keep their sample URL. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_0137eVKg5r4aRcgL5MKhqKx7 --- CHANGELOG.md | 4 + .../categories/array-manipulation.ts | 4 +- .../functionMetadata/categories/database.ts | 24 +-- .../categories/date-and-time.ts | 66 +++---- .../categories/engineering.ts | 100 +++++----- .../functionMetadata/categories/financial.ts | 58 +++--- .../categories/information.ts | 36 ++-- .../functionMetadata/categories/logical.ts | 22 +-- .../categories/lookup-and-reference.ts | 42 ++--- .../categories/math-and-trigonometry.ts | 146 +++++++-------- .../categories/matrix-functions.ts | 6 +- .../functionMetadata/categories/operator.ts | 30 +-- .../categories/statistical.ts | 172 +++++++++--------- .../functionMetadata/categories/text.ts | 52 +++--- 14 files changed, 383 insertions(+), 379 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f97c660139..b0d5e554e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/interpreter/functionMetadata/categories/array-manipulation.ts b/src/interpreter/functionMetadata/categories/array-manipulation.ts index bd74e0f355..c5375fa885 100644 --- a/src/interpreter/functionMetadata/categories/array-manipulation.ts +++ b/src/interpreter/functionMetadata/categories/array-manipulation.ts @@ -14,14 +14,14 @@ export const ARRAY_MANIPULATION_DOCS: Record = { 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))'], }, } diff --git a/src/interpreter/functionMetadata/categories/database.ts b/src/interpreter/functionMetadata/categories/database.ts index 4ba42265e2..c7b648ab3b 100644 --- a/src/interpreter/functionMetadata/categories/database.ts +++ b/src/interpreter/functionMetadata/categories/database.ts @@ -14,84 +14,84 @@ export const DATABASE_DOCS: Record = { 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)'], }, } diff --git a/src/interpreter/functionMetadata/categories/date-and-time.ts b/src/interpreter/functionMetadata/categories/date-and-time.ts index dbd96f308e..ddb58522c6 100644 --- a/src/interpreter/functionMetadata/categories/date-and-time.ts +++ b/src/interpreter/functionMetadata/categories/date-and-time.ts @@ -12,184 +12,184 @@ import {FunctionDoc} from '../FunctionDescription' export const DATE_AND_TIME_DOCS: Record = { DATE: { category: 'Date and time', - shortDescription: 'Returns the specified date as the number of full days since [`nullDate`](https://hyperformula.handsontable.com/docs/api/interfaces/configparams.html#nulldate).', + shortDescription: 'Returns the specified date as the number of full days since [`nullDate`](https://handsontable.com/docs/hyperformula/api/interfaces/configparams.html#nulldate).', parameters: [{name: 'year', description: 'The year of the date; values below HyperFormula\'s epoch year (derived from nullDate) are added to that epoch year.'}, {name: 'month', description: 'The month of the date. Values outside 1-12 roll over into adjacent years.'}, {name: 'day', description: 'The day of the month. Values outside the month\'s range roll over into adjacent months.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=DATE(2020, 1, 15)', '=DATE(2020, 13, 1)'], }, DATEDIF: { category: 'Date and time', shortDescription: 'Calculates distance between two dates.
Supported units: "D" (days), "M" (months), "Y" (years), "MD" (days ignoring months and years), "YM" (months ignoring years), or "YD" (days ignoring years).', parameters: [{name: 'start_date', description: 'The earlier (start) date of the period; must not be later than end_date.'}, {name: 'end_date', description: 'The later (end) date of the period.'}, {name: 'unit', description: 'A code selecting the unit of the result: "D", "M", "Y", "MD", "YM", or "YD".'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=DATEDIF(DATE(2020,1,1), DATE(2020,6,15), "M")', '=DATEDIF(A1, A2, "D")'], }, DATEVALUE: { category: 'Date and time', - shortDescription: 'Parses date_string and returns it as the number of full days since [`nullDate`](https://hyperformula.handsontable.com/docs/api/interfaces/configparams.html#nulldate).
Accepts formats set by the [`dateFormats`](https://hyperformula.handsontable.com/docs/api/interfaces/configparams.html#dateformats) option.', + shortDescription: 'Parses date_string and returns it as the number of full days since [`nullDate`](https://handsontable.com/docs/hyperformula/api/interfaces/configparams.html#nulldate).
Accepts formats set by the [`dateFormats`](https://handsontable.com/docs/hyperformula/api/interfaces/configparams.html#dateformats) option.', parameters: [{name: 'date_string', description: 'A text string representing a date, in one of the formats configured via dateFormats.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=DATEVALUE("30/03/2020")', '=DATEVALUE("31/12/2020")'], }, DAY: { category: 'Date and time', shortDescription: 'Returns the day of the given date value.', parameters: [{name: 'number', description: 'A date value (serial number of days since nullDate) whose day-of-month is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=DAY(DATE(2020, 3, 30))', '=DAY(A1)'], }, DAYS: { category: 'Date and time', shortDescription: 'Calculates the difference between two date values.', parameters: [{name: 'end_date', description: 'The end (more recent) date value.'}, {name: 'start_date', description: 'The start (earlier) date value; the result is end_date minus start_date, in days.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=DAYS(DATE(2020,3,31), DATE(2020,3,1))', '=DAYS(A2, A1)'], }, DAYS360: { category: 'Date and time', shortDescription: 'Calculates the difference between two date values in days, in 360-day basis.', parameters: [{name: 'start_date', description: 'The start date of the 360-day (30-day-month) period.'}, {name: 'end_date', description: 'The end date of the 360-day period; the result is end_date minus start_date measured with 30-day months.'}, {name: 'format', description: 'TRUE uses the European 30/360 method; FALSE (default) uses the US (NASD) method.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=DAYS360(DATE(2020,3,1), DATE(2020,3,31))', '=DAYS360(A1, A2, TRUE())'], }, EDATE: { category: 'Date and time', - shortDescription: 'Shifts start_date by the given number of months and returns it as the number of full days since [`nullDate`](https://hyperformula.handsontable.com/docs/api/interfaces/configparams.html#nulldate).
The return value complies with the OpenDocument standard, but the return type does not; see the [compatibility notes](https://hyperformula.handsontable.com/docs/guide/list-of-differences.html).', + shortDescription: 'Shifts start_date by the given number of months and returns it as the number of full days since [`nullDate`](https://handsontable.com/docs/hyperformula/api/interfaces/configparams.html#nulldate).
The return value complies with the OpenDocument standard, but the return type does not; see the [compatibility notes](https://handsontable.com/docs/hyperformula/guide/list-of-differences.html).', parameters: [{name: 'start_date', description: 'The date value to shift.'}, {name: 'months', description: 'The number of months to shift start_date by; negative values shift backwards.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=EDATE(A1, 3)', '=EDATE(DATE(2020, 1, 15), -2)'], }, EOMONTH: { category: 'Date and time', - shortDescription: 'Returns the date of the last day of the month that falls the given number of months away from start_date. Returns the value in the form of number of full days since [`nullDate`](https://hyperformula.handsontable.com/docs/api/interfaces/configparams.html#nulldate).
The return value complies with the OpenDocument standard, but the return type does not; see the [compatibility notes](https://hyperformula.handsontable.com/docs/guide/list-of-differences.html).', + shortDescription: 'Returns the date of the last day of the month that falls the given number of months away from start_date. Returns the value in the form of number of full days since [`nullDate`](https://handsontable.com/docs/hyperformula/api/interfaces/configparams.html#nulldate).
The return value complies with the OpenDocument standard, but the return type does not; see the [compatibility notes](https://handsontable.com/docs/hyperformula/guide/list-of-differences.html).', parameters: [{name: 'start_date', description: 'The date value to start counting from.'}, {name: 'months', description: 'The number of months to add to start_date before finding the end of that month; negative values go backwards.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=EOMONTH(A1, 1)', '=EOMONTH(DATE(2020, 1, 15), 0)'], }, HOUR: { category: 'Date and time', shortDescription: 'Returns hour component of given time.', parameters: [{name: 'time', description: 'A time value (fraction of a full day) whose hour component is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HOUR(TIME(14, 30, 0))', '=HOUR(A1)'], }, INTERVAL: { category: 'Date and time', shortDescription: 'Returns interval string from given number of seconds.', parameters: [{name: 'seconds', description: 'The total number of seconds to convert into an ISO 8601 duration string.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=INTERVAL(3665)', '=INTERVAL(A1)'], }, ISOWEEKNUM: { category: 'Date and time', shortDescription: 'Returns an ISO week number that corresponds to the week of year.', parameters: [{name: 'date', description: 'The date value whose ISO-8601 week number (Monday-based) is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ISOWEEKNUM(DATE(2020, 1, 1))', '=ISOWEEKNUM(A1)'], }, MINUTE: { category: 'Date and time', shortDescription: 'Returns minute component of given time.', parameters: [{name: 'time', description: 'A time value (fraction of a full day) whose minute component is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MINUTE(TIME(14, 30, 0))', '=MINUTE(A1)'], }, MONTH: { category: 'Date and time', shortDescription: 'Returns the month for the given date value.', parameters: [{name: 'number', description: 'A date value (serial number of days since nullDate) whose month is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MONTH(DATE(2020, 3, 30))', '=MONTH(A1)'], }, NETWORKDAYS: { category: 'Date and time', shortDescription: 'Returns the number of working days between two given dates.', parameters: [{name: 'date1', description: 'The start date of the range.'}, {name: 'date2', description: 'The end date of the range.'}, {name: 'holidays', description: 'An optional range of dates to exclude from the working-day count, in addition to weekends (Saturday and Sunday).'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=NETWORKDAYS(A1, A2)', '=NETWORKDAYS(DATE(2020,1,1), DATE(2020,1,31), C1:C3)'], }, 'NETWORKDAYS.INTL': { category: 'Date and time', shortDescription: 'Returns the number of working days between two given dates, with a configurable set of weekend days.', parameters: [{name: 'date1', description: 'The start date of the range.'}, {name: 'date2', description: 'The end date of the range.'}, {name: 'mode', description: 'A weekend code (1-7, 11-17; default 1 for Saturday/Sunday) or a 7-character string of 0s and 1s marking weekend days, starting from Monday.'}, {name: 'holidays', description: 'An optional range of dates to exclude from the working-day count, in addition to the weekend days.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=NETWORKDAYS.INTL(A1, A2, 2)', '=NETWORKDAYS.INTL(DATE(2020,1,1), DATE(2020,1,31), "0000011", C1:C3)'], }, NOW: { category: 'Date and time', - shortDescription: 'Returns current date + time as a number of days since [`nullDate`](https://hyperformula.handsontable.com/docs/api/interfaces/configparams.html#nulldate).', + shortDescription: 'Returns current date + time as a number of days since [`nullDate`](https://handsontable.com/docs/hyperformula/api/interfaces/configparams.html#nulldate).', parameters: [], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=NOW()'], }, SECOND: { category: 'Date and time', shortDescription: 'Returns second component of given time.', parameters: [{name: 'time', description: 'A time value (fraction of a full day) whose second component is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SECOND(TIME(14, 30, 45))', '=SECOND(A1)'], }, TIME: { category: 'Date and time', shortDescription: 'Returns the number that represents a given time as a fraction of full day.', parameters: [{name: 'hour', description: 'The hour component of the time.'}, {name: 'minute', description: 'The minute component of the time.'}, {name: 'second', description: 'The second component of the time.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=TIME(14, 30, 0)', '=TIME(A1, A2, A3)'], }, TIMEVALUE: { category: 'Date and time', - shortDescription: 'Parses time_string and returns a number that represents it as a fraction of a full day.
Accepts formats set by the [`timeFormats`](https://hyperformula.handsontable.com/docs/api/interfaces/configparams.html#timeformats) option.', + shortDescription: 'Parses time_string and returns a number that represents it as a fraction of a full day.
Accepts formats set by the [`timeFormats`](https://handsontable.com/docs/hyperformula/api/interfaces/configparams.html#timeformats) option.', parameters: [{name: 'time_string', description: 'A text string representing a time, in one of the formats configured via timeFormats.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=TIMEVALUE("14:30:00")', '=TIMEVALUE(A1)'], }, TODAY: { category: 'Date and time', - shortDescription: 'Returns an integer representing the current date as the number of full days since [`nullDate`](https://hyperformula.handsontable.com/docs/api/interfaces/configparams.html#nulldate).', + shortDescription: 'Returns an integer representing the current date as the number of full days since [`nullDate`](https://handsontable.com/docs/hyperformula/api/interfaces/configparams.html#nulldate).', parameters: [], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=TODAY()'], }, WEEKDAY: { category: 'Date and time', shortDescription: 'Computes a number between 1-7 representing the day of week.', parameters: [{name: 'date', description: 'The date value whose day of the week is returned.'}, {name: 'type', description: 'A code selecting the numbering scheme (default 1: Sunday=1; 2: Monday=1; 3: Monday=0; 11-17: week starting on each successive weekday, numbered 1-7).'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=WEEKDAY(DATE(2020, 1, 1))', '=WEEKDAY(A1, 2)'], }, WEEKNUM: { category: 'Date and time', shortDescription: 'Returns a week number that corresponds to the week of year.', parameters: [{name: 'date', description: 'The date value whose week-of-year number is returned.'}, {name: 'type', description: 'A code selecting which weekday starts the week (default 1: Sunday; 2: Monday; 11-17: each successive weekday; 21: ISO week numbering, Monday-based).'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=WEEKNUM(DATE(2020, 3, 15))', '=WEEKNUM(A1, 21)'], }, WORKDAY: { category: 'Date and time', shortDescription: 'Returns the date a given number of working days after the start date, skipping Saturdays and Sundays.', parameters: [{name: 'date', description: 'The start date to count from.'}, {name: 'shift', description: 'The number of working days to add (positive) or subtract (negative), skipping weekends (Saturday and Sunday).'}, {name: 'holidays', description: 'An optional range of dates to also skip, in addition to weekends.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=WORKDAY(A1, 10)', '=WORKDAY(DATE(2020,1,1), 5, C1:C3)'], }, 'WORKDAY.INTL': { category: 'Date and time', shortDescription: 'Returns the date a given number of working days after the start date, with a configurable set of weekend days.', parameters: [{name: 'date', description: 'The start date to count from.'}, {name: 'shift', description: 'The number of working days to add (positive) or subtract (negative).'}, {name: 'mode', description: 'A weekend code (1-7, 11-17; default 1 for Saturday/Sunday) or a 7-character string of 0s and 1s marking weekend days, starting from Monday.'}, {name: 'holidays', description: 'An optional range of dates to also skip, in addition to the weekend days.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=WORKDAY.INTL(A1, 10, 2)', '=WORKDAY.INTL(DATE(2020,1,1), 5, "0000011", C1:C3)'], }, YEAR: { category: 'Date and time', shortDescription: 'Returns the year as a number according to the internal calculation rules.', parameters: [{name: 'number', description: 'A date value (serial number of days since nullDate) whose year is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=YEAR(DATE(2020, 3, 30))', '=YEAR(A1)'], }, YEARFRAC: { category: 'Date and time', shortDescription: 'Computes the difference between two date values, in fraction of years.', parameters: [{name: 'start_date', description: 'One of the two boundary dates of the period; HyperFormula automatically reorders end_date/start_date so the result is never negative.'}, {name: 'end_date', description: 'The other boundary date of the period.'}, {name: 'format', description: 'A basis code selecting the day-count convention: 0 = US 30/360 (default), 1 = actual/actual, 2 = actual/360, 3 = actual/365, or 4 = European 30/360.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=YEARFRAC(DATE(2020,1,1), DATE(2020,7,1))', '=YEARFRAC(A1, A2, 1)'], }, } diff --git a/src/interpreter/functionMetadata/categories/engineering.ts b/src/interpreter/functionMetadata/categories/engineering.ts index 04b49aca14..4d97dff4c5 100644 --- a/src/interpreter/functionMetadata/categories/engineering.ts +++ b/src/interpreter/functionMetadata/categories/engineering.ts @@ -14,350 +14,350 @@ export const ENGINEERING_DOCS: Record = { category: 'Engineering', shortDescription: 'Returns the value of the modified Bessel function of the first kind, In(x).', parameters: [{name: 'x', description: 'The value at which the modified Bessel function is evaluated.'}, {name: 'n', description: 'The order of the Bessel function; a non-negative integer.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=BESSELI(1.5, 1)'], }, BESSELJ: { category: 'Engineering', shortDescription: 'Returns the value of the Bessel function of the first kind, Jn(x).', parameters: [{name: 'x', description: 'The value at which the Bessel function is evaluated.'}, {name: 'n', description: 'The order of the Bessel function; a non-negative integer.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=BESSELJ(1.9, 2)'], }, BESSELK: { category: 'Engineering', shortDescription: 'Returns the value of the modified Bessel function of the second kind, Kn(x).', parameters: [{name: 'x', description: 'The value at which the modified Bessel function is evaluated; must be greater than 0.'}, {name: 'n', description: 'The order of the Bessel function; a non-negative integer.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=BESSELK(1.5, 1)'], }, BESSELY: { category: 'Engineering', shortDescription: 'Returns the value of the Bessel function of the second kind, Yn(x).', parameters: [{name: 'x', description: 'The value at which the Bessel function is evaluated; must be greater than 0.'}, {name: 'n', description: 'The order of the Bessel function; a non-negative integer.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=BESSELY(1.5, 1)'], }, BIN2DEC: { category: 'Engineering', shortDescription: 'The result is the decimal number for the binary number entered.', parameters: [{name: 'number', description: 'The binary number (as text, up to 10 digits) to convert to decimal.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=BIN2DEC(1100100)', '=BIN2DEC(111)'], }, BIN2HEX: { category: 'Engineering', shortDescription: 'The result is the hexadecimal number for the binary number entered.', parameters: [{name: 'number', description: 'The binary number (as text, up to 10 digits) to convert to hexadecimal.'}, {name: 'places', description: 'The number of digits the result is padded to with leading zeros; a #NUM! error when the result needs more digits than that. Ignored for negative numbers. If omitted, no padding is applied.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=BIN2HEX(1100100)', '=BIN2HEX(1100100, 4)'], }, BIN2OCT: { category: 'Engineering', shortDescription: 'The result is the octal number for the binary number entered.', parameters: [{name: 'number', description: 'The binary number (as text, up to 10 digits) to convert to octal.'}, {name: 'places', description: 'The number of digits the result is padded to with leading zeros; a #NUM! error when the result needs more digits than that. Ignored for negative numbers. If omitted, no padding is applied.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=BIN2OCT(1100100)', '=BIN2OCT(1100100, 4)'], }, BITAND: { category: 'Engineering', shortDescription: 'Returns a bitwise logical "and" of the parameters.', parameters: [{name: 'number1', description: 'The first non-negative integer to combine with a bitwise AND.'}, {name: 'number2', description: 'The second non-negative integer to combine with a bitwise AND.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=BITAND(5, 3)', '=BITAND(12, 10)'], }, BITLSHIFT: { category: 'Engineering', shortDescription: 'Shifts a number left by n bits.', parameters: [{name: 'number', description: 'The non-negative integer whose bits are shifted.'}, {name: 'shift', description: 'The number of bits to shift left by; a negative value shifts right instead.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=BITLSHIFT(4, 2)', '=BITLSHIFT(1, 5)'], }, BITOR: { category: 'Engineering', shortDescription: 'Returns a bitwise logical "or" of the parameters.', parameters: [{name: 'number1', description: 'The first non-negative integer to combine with a bitwise OR.'}, {name: 'number2', description: 'The second non-negative integer to combine with a bitwise OR.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=BITOR(5, 3)', '=BITOR(8, 4)'], }, BITRSHIFT: { category: 'Engineering', shortDescription: 'Shifts a number right by n bits.', parameters: [{name: 'number', description: 'The non-negative integer whose bits are shifted.'}, {name: 'shift', description: 'The number of bits to shift right by; a negative value shifts left instead.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=BITRSHIFT(16, 2)', '=BITRSHIFT(8, 1)'], }, BITXOR: { category: 'Engineering', shortDescription: 'Returns a bitwise logical "exclusive or" of the parameters.', parameters: [{name: 'number1', description: 'The first non-negative integer to combine with a bitwise exclusive OR.'}, {name: 'number2', description: 'The second non-negative integer to combine with a bitwise exclusive OR.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=BITXOR(5, 3)', '=BITXOR(12, 10)'], }, COMPLEX: { category: 'Engineering', shortDescription: 'Returns a complex number built from its real and imaginary parts.', parameters: [{name: 're', description: 'The real coefficient of the complex number.'}, {name: 'im', description: 'The imaginary coefficient of the complex number.'}, {name: 'symbol', description: 'The suffix used for the imaginary unit, either "i" or "j"; defaults to "i" when omitted.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=COMPLEX(3, 4)', '=COMPLEX(2, -1, "j")'], }, DEC2BIN: { category: 'Engineering', shortDescription: 'Returns the binary number for the decimal number entered between –512 and 511.', parameters: [{name: 'number', description: 'The decimal integer, between -512 and 511, to convert to binary.'}, {name: 'places', description: 'The number of digits the result is padded to with leading zeros; a #NUM! error when the result needs more digits than that. Ignored for negative numbers. If omitted, no padding is applied.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=DEC2BIN(10)', '=DEC2BIN(10, 8)'], }, DEC2HEX: { category: 'Engineering', shortDescription: 'Returns the hexadecimal number for the decimal number entered.', parameters: [{name: 'number', description: 'The decimal integer to convert to hexadecimal.'}, {name: 'places', description: 'The number of digits the result is padded to with leading zeros; a #NUM! error when the result needs more digits than that. Ignored for negative numbers. If omitted, no padding is applied.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=DEC2HEX(100)', '=DEC2HEX(100, 4)'], }, DEC2OCT: { category: 'Engineering', shortDescription: 'Returns the octal number for the decimal number entered.', parameters: [{name: 'number', description: 'The decimal integer to convert to octal.'}, {name: 'places', description: 'The number of digits the result is padded to with leading zeros; a #NUM! error when the result needs more digits than that. Ignored for negative numbers. If omitted, no padding is applied.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=DEC2OCT(58)', '=DEC2OCT(58, 4)'], }, DELTA: { category: 'Engineering', shortDescription: 'Returns TRUE (1) if both numbers are equal, otherwise returns FALSE (0).', parameters: [{name: 'number1', description: 'The first number to compare.'}, {name: 'number2', description: 'The second number to compare; defaults to 0 when omitted.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=DELTA(5, 5)', '=DELTA(5, 4)', '=DELTA(0)'], }, ERF: { category: 'Engineering', shortDescription: 'Returns values of the Gaussian error integral.', parameters: [{name: 'lower_limit', description: 'The lower bound of the integral, or the single integration limit from 0 when upper_limit is omitted.'}, {name: 'upper_limit', description: 'The upper bound of the integral; when omitted, the integral is calculated from 0 to lower_limit.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ERF(1)', '=ERF(0, 1)'], }, ERFC: { category: 'Engineering', shortDescription: 'Returns complementary values of the Gaussian error integral between x and infinity.', parameters: [{name: 'lower_limit', description: 'The lower bound of the integral, calculated from this value to infinity.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ERFC(1)', '=ERFC(0.5)'], }, HEX2BIN: { category: 'Engineering', shortDescription: 'The result is the binary number for the hexadecimal number entered.', parameters: [{name: 'number', description: 'The hexadecimal number (as text, up to 10 digits) to convert to binary.'}, {name: 'places', description: 'The number of digits the result is padded to with leading zeros; a #NUM! error when the result needs more digits than that. Ignored for negative numbers. If omitted, no padding is applied.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HEX2BIN("2A")', '=HEX2BIN("2A", 8)'], }, HEX2DEC: { category: 'Engineering', shortDescription: 'The result is the decimal number for the hexadecimal number entered.', parameters: [{name: 'number', description: 'The hexadecimal number (as text, up to 10 digits) to convert to decimal.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HEX2DEC("2A")', '=HEX2DEC("FF")'], }, HEX2OCT: { category: 'Engineering', shortDescription: 'The result is the octal number for the hexadecimal number entered.', parameters: [{name: 'number', description: 'The hexadecimal number (as text, up to 10 digits) to convert to octal.'}, {name: 'places', description: 'The number of digits the result is padded to with leading zeros; a #NUM! error when the result needs more digits than that. Ignored for negative numbers. If omitted, no padding is applied.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HEX2OCT("2A")', '=HEX2OCT("2A", 4)'], }, IMABS: { category: 'Engineering', shortDescription: 'Returns modulus of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose modulus is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMABS("3+4i")', '=IMABS("-i")'], }, IMAGINARY: { category: 'Engineering', shortDescription: 'Returns imaginary part of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose imaginary coefficient is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMAGINARY("3+4i")'], }, IMARGUMENT: { category: 'Engineering', shortDescription: 'Returns argument of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose argument (angle in radians) is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMARGUMENT("3+4i")'], }, IMCONJUGATE: { category: 'Engineering', shortDescription: 'Returns conjugate of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose complex conjugate is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMCONJUGATE("3+4i")'], }, IMCOS: { category: 'Engineering', shortDescription: 'Returns cosine of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose cosine is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMCOS("3+4i")'], }, IMCOSH: { category: 'Engineering', shortDescription: 'Returns hyperbolic cosine of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose hyperbolic cosine is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMCOSH("3+4i")'], }, IMCOT: { category: 'Engineering', shortDescription: 'Returns cotangent of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose cotangent is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMCOT("3+4i")'], }, IMCSC: { category: 'Engineering', shortDescription: 'Returns cosecant of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose cosecant is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMCSC("3+4i")'], }, IMCSCH: { category: 'Engineering', shortDescription: 'Returns hyperbolic cosecant of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose hyperbolic cosecant is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMCSCH("3+4i")'], }, IMDIV: { category: 'Engineering', shortDescription: 'Divides two complex numbers.', parameters: [{name: 'complex1', description: 'The complex number to divide (dividend), given as text such as "3+4i".'}, {name: 'complex2', description: 'The complex number to divide by (divisor), given as text such as "1+2i".'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMDIV("3+4i", "1+2i")'], }, IMEXP: { category: 'Engineering', shortDescription: 'Returns exponent of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose exponential is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMEXP("3+4i")'], }, IMLN: { category: 'Engineering', shortDescription: 'Returns natural logarithm of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose natural logarithm is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMLN("3+4i")'], }, IMLOG10: { category: 'Engineering', shortDescription: 'Returns base-10 logarithm of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose base-10 logarithm is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMLOG10("3+4i")'], }, IMLOG2: { category: 'Engineering', shortDescription: 'Returns binary logarithm of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose base-2 logarithm is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMLOG2("3+4i")'], }, IMPOWER: { category: 'Engineering', shortDescription: 'Returns a complex number raised to a given power.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", to raise to a power.'}, {name: 'number', description: 'The exponent to raise the complex number to.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMPOWER("3+4i", 2)'], }, IMPRODUCT: { category: 'Engineering', shortDescription: 'Multiplies complex numbers.', parameters: [{name: 'complex1', description: 'A complex number, cell, or range to multiply. Further complex numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMPRODUCT("3+4i", "1-2i")', '=IMPRODUCT(A1:A5)'], }, IMREAL: { category: 'Engineering', shortDescription: 'Returns real part of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose real coefficient is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMREAL("3+4i")'], }, IMSEC: { category: 'Engineering', shortDescription: 'Returns the secant of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose secant is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMSEC("3+4i")'], }, IMSECH: { category: 'Engineering', shortDescription: 'Returns the hyperbolic secant of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose hyperbolic secant is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMSECH("3+4i")'], }, IMSIN: { category: 'Engineering', shortDescription: 'Returns sine of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose sine is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMSIN("3+4i")'], }, IMSINH: { category: 'Engineering', shortDescription: 'Returns hyperbolic sine of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose hyperbolic sine is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMSINH("3+4i")'], }, IMSQRT: { category: 'Engineering', shortDescription: 'Returns a square root of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose square root is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMSQRT("3+4i")', '=IMSQRT("-1")'], }, IMSUB: { category: 'Engineering', shortDescription: 'Subtracts two complex numbers.', parameters: [{name: 'complex1', description: 'The complex number to subtract from, given as text such as "3+4i".'}, {name: 'complex2', description: 'The complex number to subtract, given as text such as "1+2i".'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMSUB("3+4i", "1+2i")'], }, IMSUM: { category: 'Engineering', shortDescription: 'Adds complex numbers.', parameters: [{name: 'complex1', description: 'A complex number, cell, or range to add. Further complex numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMSUM("3+4i", "1-2i")', '=IMSUM(A1:A5)'], }, IMTAN: { category: 'Engineering', shortDescription: 'Returns the tangent of a complex number.', parameters: [{name: 'complex', description: 'The complex number, given as text such as "3+4i", whose tangent is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IMTAN("3+4i")'], }, OCT2BIN: { category: 'Engineering', shortDescription: 'The result is the binary number for the octal number entered.', parameters: [{name: 'number', description: 'The octal number (as text, up to 10 digits) to convert to binary.'}, {name: 'places', description: 'The number of digits the result is padded to with leading zeros; a #NUM! error when the result needs more digits than that. Ignored for negative numbers. If omitted, no padding is applied.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=OCT2BIN(14)', '=OCT2BIN(14, 8)'], }, OCT2DEC: { category: 'Engineering', shortDescription: 'The result is the decimal number for the octal number entered.', parameters: [{name: 'number', description: 'The octal number (as text, up to 10 digits) to convert to decimal.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=OCT2DEC(14)', '=OCT2DEC(17)'], }, OCT2HEX: { category: 'Engineering', shortDescription: 'The result is the hexadecimal number for the octal number entered.', parameters: [{name: 'number', description: 'The octal number (as text, up to 10 digits) to convert to hexadecimal.'}, {name: 'places', description: 'The number of digits the result is padded to with leading zeros; a #NUM! error when the result needs more digits than that. Ignored for negative numbers. If omitted, no padding is applied.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=OCT2HEX(14)', '=OCT2HEX(14, 4)'], }, } diff --git a/src/interpreter/functionMetadata/categories/financial.ts b/src/interpreter/functionMetadata/categories/financial.ts index f673c11953..7c678e5a3a 100644 --- a/src/interpreter/functionMetadata/categories/financial.ts +++ b/src/interpreter/functionMetadata/categories/financial.ts @@ -14,203 +14,203 @@ export const FINANCIAL_DOCS: Record = { category: 'Financial', shortDescription: 'Returns the cumulative interest paid on a loan between a start period and an end period.', parameters: [{name: 'rate', description: 'The interest rate per period.'}, {name: 'nper', description: 'The total number of payment periods.'}, {name: 'pv', description: 'The present value, i.e. the loan principal.'}, {name: 'start', description: 'The first period to include in the calculation, numbered starting at 1.'}, {name: 'end', description: 'The last period to include in the calculation; must not be smaller than start.'}, {name: 'type', description: 'When payments are due: 0 for the end of each period, 1 for the beginning.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CUMIPMT(0.05/12, 60, 20000, 1, 12, 0)', '=CUMIPMT(0.04/12, 360, 200000, 13, 24, 1)'], }, CUMPRINC: { category: 'Financial', shortDescription: 'Returns the cumulative principal paid on a loan between a start period and an end period.', parameters: [{name: 'rate', description: 'The interest rate per period.'}, {name: 'nper', description: 'The total number of payment periods.'}, {name: 'pv', description: 'The present value, i.e. the loan principal.'}, {name: 'start', description: 'The first period to include in the calculation, numbered starting at 1.'}, {name: 'end', description: 'The last period to include in the calculation; must not be smaller than start.'}, {name: 'type', description: 'When payments are due: 0 for the end of each period, 1 for the beginning.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CUMPRINC(0.05/12, 60, 20000, 1, 12, 0)', '=CUMPRINC(0.04/12, 360, 200000, 13, 24, 1)'], }, DB: { category: 'Financial', shortDescription: 'Returns the depreciation of an asset for a period using the fixed-declining balance method.', parameters: [{name: 'cost', description: 'The initial cost of the asset.'}, {name: 'salvage', description: 'The value of the asset at the end of its depreciation.'}, {name: 'life', description: 'The number of periods over which the asset is depreciated.'}, {name: 'period', description: 'The period, in the same units as life, for which depreciation is calculated.'}, {name: 'month', description: 'The number of months in the first year; defaults to 12 (a full year).'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=DB(10000, 1000, 6, 2)', '=DB(10000, 1000, 6, 1, 7)'], }, DDB: { category: 'Financial', shortDescription: 'Returns the depreciation of an asset for a period using the double-declining balance method.', parameters: [{name: 'cost', description: 'The initial cost of the asset.'}, {name: 'salvage', description: 'The value of the asset at the end of its depreciation.'}, {name: 'life', description: 'The number of periods over which the asset is depreciated.'}, {name: 'period', description: 'The period, in the same units as life, for which depreciation is calculated.'}, {name: 'factor', description: 'The rate at which the balance declines; defaults to 2 (double-declining).'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=DDB(10000, 1000, 6, 2)', '=DDB(10000, 1000, 6, 1, 1.5)'], }, DOLLARDE: { category: 'Financial', shortDescription: 'Converts a price entered with a special notation to a price displayed as a decimal number.', parameters: [{name: 'price', description: 'The price expressed as an integer part plus a fractional part, e.g. 1.02 for 1 and 2/16.'}, {name: 'fraction', description: 'The denominator used in the fractional notation, e.g. 16 for sixteenths.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=DOLLARDE(1.02, 16)', '=DOLLARDE(1.1, 32)'], }, DOLLARFR: { category: 'Financial', shortDescription: 'Converts a price displayed as a decimal number to a price entered with a special notation.', parameters: [{name: 'price', description: 'The price expressed as a decimal number.'}, {name: 'fraction', description: 'The denominator to use in the fractional notation, e.g. 16 for sixteenths.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=DOLLARFR(1.125, 16)', '=DOLLARFR(1.3, 32)'], }, EFFECT: { category: 'Financial', shortDescription: 'Calculates the effective annual interest rate from a nominal interest rate and the number of compounding periods per year.', parameters: [{name: 'nominal_rate', description: 'The nominal (stated) annual interest rate.'}, {name: 'npery', description: 'The number of compounding periods per year.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=EFFECT(0.1, 4)', '=EFFECT(0.08, 12)'], }, FV: { category: 'Financial', shortDescription: 'Returns the future value of an investment.', parameters: [{name: 'rate', description: 'The interest rate per period.'}, {name: 'nper', description: 'The total number of payment periods.'}, {name: 'pmt', description: 'The payment made each period; paid-out amounts are negative.'}, {name: 'pv', description: 'The present value, i.e. the lump-sum amount the future payments are worth right now; defaults to 0.'}, {name: 'type', description: 'When payments are due: 0 for the end of each period, 1 for the beginning; defaults to 0.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=FV(0.05/12, 60, -100)', '=FV(0.06/12, 24, -200, -500, 1)'], }, FVSCHEDULE: { category: 'Financial', shortDescription: 'Returns the future value of an investment based on a rate schedule.', parameters: [{name: 'pv', description: 'The initial present value of the investment.'}, {name: 'schedule', description: 'A range of interest rates applied successively over each period.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=FVSCHEDULE(1000, A1:A3)', '=FVSCHEDULE(5000, B2:B5)'], }, IPMT: { category: 'Financial', shortDescription: 'Returns the interest portion of a given loan payment in a given payment period.', parameters: [{name: 'rate', description: 'The interest rate per period.'}, {name: 'per', description: 'The period, between 1 and nper, for which the interest portion is calculated.'}, {name: 'nper', description: 'The total number of payment periods.'}, {name: 'pv', description: 'The present value, i.e. the loan principal.'}, {name: 'fv', description: 'The future value, i.e. the desired cash balance after the last payment; defaults to 0.'}, {name: 'type', description: 'When payments are due: 0 for the end of each period, 1 for the beginning; defaults to 0.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IPMT(0.05/12, 1, 60, 20000)', '=IPMT(0.04/12, 12, 360, 200000, 0, 1)'], }, IRR: { category: 'Financial', shortDescription: 'Returns the internal rate of return for a series of cash flows.', parameters: [{name: 'values', description: 'A range of cash flow values; must contain at least one negative and one positive value.'}, {name: 'guess', description: 'An estimated rate used as the starting point for the iterative calculation; defaults to 0.1 (10%).'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IRR(A1:A5)', '=IRR(A1:A5, 0.2)'], }, ISPMT: { category: 'Financial', shortDescription: 'Returns the interest paid for a given period of an investment with equal principal payments.', parameters: [{name: 'rate', description: 'The interest rate per period.'}, {name: 'per', description: 'The period for which the interest is calculated.'}, {name: 'nper', description: 'The total number of payment periods.'}, {name: 'value', description: 'The present value, i.e. the loan principal.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ISPMT(0.05/12, 1, 60, 20000)', '=ISPMT(0.04/12, 12, 360, 200000)'], }, MIRR: { category: 'Financial', shortDescription: 'Returns the modified internal rate of return for a series of cash flows.', parameters: [{name: 'flows', description: 'A range of cash flow values; must contain at least one negative and one positive value.'}, {name: 'f_rate', description: 'The finance rate paid on the money used in the negative cash flows.'}, {name: 'r_rate', description: 'The reinvestment rate received on the positive cash flows.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MIRR(A1:A5, 0.08, 0.1)', '=MIRR(B2:B6, 0.06, 0.12)'], }, NOMINAL: { category: 'Financial', shortDescription: 'Returns the nominal interest rate.', parameters: [{name: 'effect_rate', description: 'The effective annual interest rate.'}, {name: 'npery', description: 'The number of compounding periods per year.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=NOMINAL(0.1, 4)', '=NOMINAL(0.08, 12)'], }, NPER: { category: 'Financial', shortDescription: 'Returns the number of periods for an investment assuming periodic, constant payments and a constant interest rate.', parameters: [{name: 'rate', description: 'The interest rate per period.'}, {name: 'pmt', description: 'The payment made each period; paid-out amounts are negative.'}, {name: 'pv', description: 'The present value, i.e. the loan principal or initial investment.'}, {name: 'fv', description: 'The future value, i.e. the desired cash balance after the last payment; defaults to 0.'}, {name: 'type', description: 'When payments are due: 0 for the end of each period, 1 for the beginning; defaults to 0.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=NPER(0.05/12, -100, 5000)', '=NPER(0.04/12, -200, 8000, 0, 1)'], }, NPV: { category: 'Financial', shortDescription: 'Returns net present value.', parameters: [{name: 'rate', description: 'The discount rate applied over one period.'}, {name: 'value1', description: 'A cash flow value, cell reference, or range occurring at the end of a period. Further cash flow values can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=NPV(0.1, -1000, 300, 400, 500)', '=NPV(0.08, A1:A5)'], }, PDURATION: { category: 'Financial', shortDescription: 'Returns number of periods to reach specific value.', parameters: [{name: 'rate', description: 'The fixed interest rate per period.'}, {name: 'pv', description: 'The present value of the investment.'}, {name: 'fv', description: 'The desired future value of the investment.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=PDURATION(0.05, 1000, 2000)', '=PDURATION(0.08, 500, 1500)'], }, PMT: { category: 'Financial', shortDescription: 'Returns the periodic payment for a loan.', parameters: [{name: 'rate', description: 'The interest rate per period.'}, {name: 'nper', description: 'The total number of payment periods.'}, {name: 'pv', description: 'The present value, i.e. the loan principal.'}, {name: 'fv', description: 'The future value, i.e. the desired cash balance after the last payment; defaults to 0.'}, {name: 'type', description: 'When payments are due: 0 for the end of each period, 1 for the beginning; defaults to 0.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=PMT(0.05/12, 60, -20000)', '=PMT(0.04/12, 360, -200000, 0, 1)'], }, PPMT: { category: 'Financial', shortDescription: 'Calculates the principal portion of a given loan payment.', parameters: [{name: 'rate', description: 'The interest rate per period.'}, {name: 'per', description: 'The period, between 1 and nper, for which the principal portion is calculated.'}, {name: 'nper', description: 'The total number of payment periods.'}, {name: 'pv', description: 'The present value, i.e. the loan principal.'}, {name: 'fv', description: 'The future value, i.e. the desired cash balance after the last payment; defaults to 0.'}, {name: 'type', description: 'When payments are due: 0 for the end of each period, 1 for the beginning; defaults to 0.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=PPMT(0.05/12, 1, 60, 20000)', '=PPMT(0.04/12, 12, 360, 200000, 0, 1)'], }, PV: { category: 'Financial', shortDescription: 'Returns the present value of an investment.', parameters: [{name: 'rate', description: 'The interest rate per period.'}, {name: 'nper', description: 'The total number of payment periods.'}, {name: 'pmt', description: 'The payment made each period; paid-out amounts are negative.'}, {name: 'fv', description: 'The future value, i.e. the desired cash balance after the last payment; defaults to 0.'}, {name: 'type', description: 'When payments are due: 0 for the end of each period, 1 for the beginning; defaults to 0.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=PV(0.05/12, 60, -100)', '=PV(0.04/12, 360, -1000, 0, 1)'], }, RATE: { category: 'Financial', shortDescription: 'Returns the interest rate per period of an annuity.', parameters: [{name: 'nper', description: 'The total number of payment periods.'}, {name: 'pmt', description: 'The payment made each period; paid-out amounts are negative.'}, {name: 'pv', description: 'The present value, i.e. the loan principal or initial investment.'}, {name: 'fv', description: 'The future value, i.e. the desired cash balance after the last payment; defaults to 0.'}, {name: 'type', description: 'When payments are due: 0 for the end of each period, 1 for the beginning; defaults to 0.'}, {name: 'guess', description: 'An estimated rate used as the starting point for the iterative calculation; defaults to 0.1 (10%).'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=RATE(60, -100, 5000)', '=RATE(360, -1000, 200000, 0, 0, 0.05)'], }, RRI: { category: 'Financial', shortDescription: 'Returns an equivalent interest rate for the growth of an investment.', parameters: [{name: 'nper', description: 'The number of periods over which the investment grows.'}, {name: 'pv', description: 'The present value of the investment.'}, {name: 'fv', description: 'The future value of the investment.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=RRI(10, 1000, 2000)', '=RRI(5, 5000, 6000)'], }, SLN: { category: 'Financial', shortDescription: 'Returns the depreciation of an asset for one period, based on a straight-line method.', parameters: [{name: 'cost', description: 'The initial cost of the asset.'}, {name: 'salvage', description: 'The value of the asset at the end of its depreciation.'}, {name: 'life', description: 'The number of periods over which the asset is depreciated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SLN(10000, 1000, 6)', '=SLN(5000, 500, 10)'], }, SYD: { category: 'Financial', shortDescription: 'Returns the "sum-of-years" depreciation for an asset in a period.', parameters: [{name: 'cost', description: 'The initial cost of the asset.'}, {name: 'salvage', description: 'The value of the asset at the end of its depreciation.'}, {name: 'life', description: 'The number of periods over which the asset is depreciated.'}, {name: 'period', description: 'The period, in the same units as life, for which depreciation is calculated.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SYD(10000, 1000, 6, 2)', '=SYD(5000, 500, 10, 1)'], }, TBILLEQ: { category: 'Financial', shortDescription: 'Returns the bond-equivalent yield for a Treasury bill.', parameters: [{name: 'settlement', description: 'The settlement (purchase) date of the Treasury bill, as a date serial number.'}, {name: 'maturity', description: 'The maturity date of the Treasury bill, as a date serial number; must be within one year of settlement.'}, {name: 'discount', description: 'The discount rate of the Treasury bill.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=TBILLEQ(DATE(2023,1,1), DATE(2023,6,1), 0.05)', '=TBILLEQ(A1, B1, 0.04)'], }, TBILLPRICE: { category: 'Financial', shortDescription: 'Returns the price per $100 face value for a Treasury bill.', parameters: [{name: 'settlement', description: 'The settlement (purchase) date of the Treasury bill, as a date serial number.'}, {name: 'maturity', description: 'The maturity date of the Treasury bill, as a date serial number; must be within one year of settlement.'}, {name: 'discount', description: 'The discount rate of the Treasury bill.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=TBILLPRICE(DATE(2023,1,1), DATE(2023,6,1), 0.05)', '=TBILLPRICE(A1, B1, 0.04)'], }, TBILLYIELD: { category: 'Financial', shortDescription: 'Returns the yield for a Treasury bill.', parameters: [{name: 'settlement', description: 'The settlement (purchase) date of the Treasury bill, as a date serial number.'}, {name: 'maturity', description: 'The maturity date of the Treasury bill, as a date serial number; must be within one year of settlement.'}, {name: 'price', description: 'The price per $100 face value of the Treasury bill.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=TBILLYIELD(DATE(2023,1,1), DATE(2023,6,1), 98)', '=TBILLYIELD(A1, B1, 99.5)'], }, XNPV: { category: 'Financial', shortDescription: 'Returns the net present value for a schedule of cash flows that is not necessarily periodic.', parameters: [{name: 'rate', description: 'The discount rate applied to the cash flows.'}, {name: 'payments', description: 'A range of cash flow values; paid-out amounts are negative, received amounts are positive.'}, {name: 'dates', description: 'A range of dates, one per payment, that must be the same length as payments; the first date is the reference point, and every other date must fall on or after it.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=XNPV(0.09, A1:A4, B1:B4)', '=XNPV(0.1, C2:C6, D2:D6)'], }, XIRR: { category: 'Financial', shortDescription: 'Returns the internal rate of return for a schedule of cash flows that is not necessarily periodic.', parameters: [{name: 'values', description: 'A range of cash flow values; must contain at least one negative and one positive value.'}, {name: 'dates', description: 'A range of payment dates, one per value in values and the same length; the first date is the reference point and every other date must fall on or after it.'}, {name: 'guess', description: 'An estimated rate used as the starting point for the iterative calculation; defaults to 0.1 (10%).'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=XIRR(A1:A4, B1:B4)', '=XIRR(A1:A5, B1:B5, 0.1)'], }, } diff --git a/src/interpreter/functionMetadata/categories/information.ts b/src/interpreter/functionMetadata/categories/information.ts index fd18cd79b6..12074ba94c 100644 --- a/src/interpreter/functionMetadata/categories/information.ts +++ b/src/interpreter/functionMetadata/categories/information.ts @@ -15,119 +15,119 @@ export const INFORMATION_DOCS: Record = { category: 'Information', shortDescription: 'Returns TRUE if provided value is a valid binary number.', parameters: [{name: 'value', description: 'The value to test, coerced to a string and checked for containing only the digits 0 and 1 (up to 10 characters).'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ISBINARY("1010")', '=ISBINARY(1001)', '=ISBINARY("2")'], }, ISBLANK: { category: 'Information', shortDescription: 'Returns TRUE if the reference to a cell is blank.', parameters: [{name: 'value', description: 'The value or cell reference to test; returns TRUE only for a genuinely empty cell, not for a cell holding an empty string or another value.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ISBLANK(A1)', '=ISBLANK("")'], }, ISERR: { category: 'Information', shortDescription: 'Returns TRUE if the value is error value except #N/A!.', parameters: [{name: 'value', description: 'The value or expression to test; returns TRUE for any error except #N/A.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ISERR(1/0)', '=ISERR(NA())'], }, ISERROR: { category: 'Information', shortDescription: 'Returns TRUE if the value is general error value.', parameters: [{name: 'value', description: 'The value or expression to test; returns TRUE for any error value, including #N/A.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ISERROR(1/0)', '=ISERROR(NA())'], }, ISEVEN: { category: 'Information', shortDescription: 'Returns TRUE if the value is an even integer, or FALSE otherwise. A value with a fractional part is neither even nor odd, so it returns FALSE.', parameters: [{name: 'value', description: 'The number to test; it is checked by its remainder without truncation, so a fractional value may return FALSE for both ISEVEN and ISODD.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ISEVEN(4)', '=ISEVEN(A1)'], }, ISFORMULA: { category: 'Information', shortDescription: 'Checks whether referenced cell is a formula.', parameters: [{name: 'value', description: 'A cell or range reference to check; passing a non-reference expression instead returns the #N/A error.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ISFORMULA(A1)', '=ISFORMULA(B1:B3)'], }, ISLOGICAL: { category: 'Information', shortDescription: 'Tests for a logical value (TRUE or FALSE).', parameters: [{name: 'value', description: 'The value to test; returns TRUE only when the value is the logical TRUE or FALSE.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ISLOGICAL(TRUE())', '=ISLOGICAL(1<2)', '=ISLOGICAL(1)'], }, ISNA: { category: 'Information', shortDescription: 'Returns TRUE if the value is #N/A! error.', parameters: [{name: 'value', description: 'The value or expression to test; returns TRUE only for the #N/A error.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ISNA(NA())', '=ISNA(1/0)'], }, ISNONTEXT: { category: 'Information', shortDescription: 'Tests if the cell contents are text or numbers, and returns FALSE if the contents are text.', parameters: [{name: 'value', description: 'The value to test; returns FALSE only when the value is text, and TRUE for numbers, logical values, errors, and blank cells.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ISNONTEXT(A1)', '=ISNONTEXT("abc")'], }, ISNUMBER: { category: 'Information', shortDescription: 'Returns TRUE if the value refers to a number.', parameters: [{name: 'value', description: 'The value to test; returns TRUE only when the value is a number.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ISNUMBER(1+1)', '=ISNUMBER("abc")'], }, ISODD: { category: 'Information', shortDescription: 'Returns TRUE if the value is an odd integer, or FALSE otherwise. A value with a fractional part is neither odd nor even, so it returns FALSE.', parameters: [{name: 'value', description: 'The number to test; it is checked by its remainder without truncation, so a fractional value may return FALSE for both ISODD and ISEVEN.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ISODD(3)', '=ISODD(A1)'], }, ISREF: { category: 'Information', shortDescription: 'Returns TRUE if provided value is #REF! error.', parameters: [{name: 'value', description: 'The value or expression to test; returns TRUE only when it evaluates to a #REF! (or #CYCLE!) error, not merely because it looks like a reference.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ISREF(A1)', '=ISREF(OFFSET(A1, -1, 0))'], }, ISTEXT: { category: 'Information', shortDescription: 'Returns TRUE if the cell contents reference text.', parameters: [{name: 'value', description: 'The value to test; returns TRUE only when the value is text.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ISTEXT("abc")', '=ISTEXT(A1)'], }, N: { category: 'Information', shortDescription: 'Converts a value to a number.', parameters: [{name: 'value', description: 'The value to convert: numbers and dates return themselves, TRUE/FALSE return 1/0, and text or empty values return 0.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=N(TRUE())', '=N("5")', '=N(A1)'], }, NA: { category: 'Information', shortDescription: 'Returns #N/A! error value.', parameters: [], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=NA()'], }, SHEET: { category: 'Information', shortDescription: 'Returns sheet number of a given value or a formula sheet number if no argument is provided.', parameters: [{name: 'value', description: 'An optional sheet name (as text) or a cell/range reference identifying the sheet to look up; when omitted, returns the number of the sheet containing the formula.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SHEET()', '=SHEET(A1)', '=SHEET("Sheet2")'], }, SHEETS: { category: 'Information', shortDescription: 'Returns number of sheet of a given reference or number of all sheets in workbook when no argument is provided.', parameters: [{name: 'value', description: 'An optional cell or range reference; when omitted, returns the total number of sheets in the workbook, otherwise returns 1 for the sheet containing the reference.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SHEETS()', '=SHEETS(A1:B3)'], }, // VERSION is a protected function (its plugin, VersionPlugin, is kept out of the general registry so it can @@ -137,7 +137,7 @@ export const INFORMATION_DOCS: Record = { category: 'Information', shortDescription: 'Returns the HyperFormula version as a text value, e.g. "HyperFormula v3.0.0".', parameters: [], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=VERSION()'], }, } diff --git a/src/interpreter/functionMetadata/categories/logical.ts b/src/interpreter/functionMetadata/categories/logical.ts index 020cc7b874..6aa2a7e7e0 100644 --- a/src/interpreter/functionMetadata/categories/logical.ts +++ b/src/interpreter/functionMetadata/categories/logical.ts @@ -14,77 +14,77 @@ export const LOGICAL_DOCS: Record = { category: 'Logical', shortDescription: 'Returns TRUE if all arguments are TRUE.', parameters: [{name: 'logical_value1', description: 'A logical value, expression, or range to test. Further logical values can be passed as additional arguments; the result is TRUE only if all of them are TRUE.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=AND(TRUE(), TRUE())', '=AND(A1>0, A2>0)', '=AND(A1:A5)'], }, FALSE: { category: 'Logical', shortDescription: 'Returns the logical value FALSE.', parameters: [], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=FALSE()'], }, IF: { category: 'Logical', shortDescription: 'Specifies a logical test to be performed.', parameters: [{name: 'test', description: 'The logical expression or value to evaluate.'}, {name: 'then_value', description: 'The value returned when test evaluates to TRUE.'}, {name: 'otherwise_value', description: 'The value returned when test evaluates to FALSE. When omitted, FALSE is returned instead.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IF(A1>10, "big", "small")', '=IF(B1="", "empty", B1)'], }, IFERROR: { category: 'Logical', shortDescription: 'Returns the value if the cell does not contains an error value, or the alternative value if it does.', parameters: [{name: 'value', description: 'The value or formula checked for an error.'}, {name: 'alternate_value', description: 'The value returned when value evaluates to any error; otherwise value itself is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IFERROR(A1/B1, "error")', '=IFERROR(VLOOKUP(A1, B1:C10, 2, FALSE()), "not found")'], }, IFNA: { category: 'Logical', shortDescription: 'Returns the value if the cell does not contains the #N/A (value not available) error value, or the alternative value if it does.', parameters: [{name: 'value', description: 'The value or formula checked for the #N/A error.'}, {name: 'alternate_value', description: 'The value returned when value evaluates to #N/A; other error types and non-error values are returned unchanged.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IFNA(VLOOKUP(A1, B1:C10, 2, FALSE()), "not found")', '=IFNA(A1, "n/a")'], }, IFS: { category: 'Logical', shortDescription: 'Evaluates multiple logical tests and returns a value that corresponds to the first true condition.', parameters: [{name: 'condition1', description: 'A logical test to evaluate. Further condition/value pairs can be passed as additional arguments and are checked in order.'}, {name: 'value1', description: 'The value returned when the preceding condition is the first one to evaluate to TRUE. Further condition/value pairs can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=IFS(A1>90, "A", A1>80, "B")', '=IFS(A1<0, "negative", A1=0, "zero", A1>0, "positive")'], }, NOT: { category: 'Logical', shortDescription: 'Complements (inverts) logical_value.', parameters: [{name: 'logical_value', description: 'The logical value or expression to invert: TRUE becomes FALSE and vice versa.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=NOT(TRUE())', '=NOT(A1>10)'], }, OR: { category: 'Logical', shortDescription: 'Returns TRUE if at least one argument is TRUE.', parameters: [{name: 'logical_value1', description: 'A logical value, expression, or range to test. Further logical values can be passed as additional arguments; the result is TRUE if any of them is TRUE.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=OR(TRUE(), FALSE())', '=OR(A1>10, A2>10)', '=OR(A1:A5)'], }, SWITCH: { category: 'Logical', shortDescription: 'Compares expression against value1, value2, ... in order and returns the paired result1, result2, ...; a candidate value that is an error is skipped rather than matched.', parameters: [{name: 'expression', description: 'The expression or value compared against the candidate values that follow.'}, {name: 'value1', description: 'The first candidate value compared to expression; an error value is skipped rather than compared.'}, {name: 'result1', description: 'The value returned when value1 matches expression. Further value/result pairs can be passed as additional arguments, and a final unpaired argument is returned as the default when no candidate matches; without one, an unmatched expression returns #N/A.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SWITCH(A1, 1, "one", 2, "two", "other")', '=SWITCH(WEEKDAY(A1), 1, "Sunday", 7, "Saturday", "weekday")'], }, TRUE: { category: 'Logical', shortDescription: 'Returns the logical value TRUE.', parameters: [], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=TRUE()'], }, XOR: { category: 'Logical', shortDescription: 'Returns true if an odd number of arguments evaluates to TRUE.', parameters: [{name: 'logical_value1', description: 'A logical value, expression, or range to test. Further logical values can be passed as additional arguments; the result is TRUE when an odd number of them are TRUE.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=XOR(TRUE(), FALSE())', '=XOR(A1>0, A2>0)'], }, } diff --git a/src/interpreter/functionMetadata/categories/lookup-and-reference.ts b/src/interpreter/functionMetadata/categories/lookup-and-reference.ts index ef6b848d7f..e52ecaf75c 100644 --- a/src/interpreter/functionMetadata/categories/lookup-and-reference.ts +++ b/src/interpreter/functionMetadata/categories/lookup-and-reference.ts @@ -15,77 +15,77 @@ export const LOOKUP_AND_REFERENCE_DOCS: Record = { category: 'Lookup and reference', shortDescription: 'Returns a cell reference as a string.', parameters: [{name: 'row', description: 'The row number to use in the constructed cell reference.'}, {name: 'column', description: 'The column number to use in the constructed cell reference.'}, {name: 'absolute_relative_mode', description: '1 for a fully absolute reference (default), 2 for absolute row with relative column, 3 for relative row with absolute column, or 4 for a fully relative reference.'}, {name: 'use_a1_notation', description: 'TRUE (default) returns the reference in A1 notation, FALSE returns it in R1C1 notation.'}, {name: 'sheet', description: 'The name of the sheet to prefix the reference with. When omitted, no sheet name is included.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ADDRESS(2, 3)', '=ADDRESS(2, 3, 4)', '=ADDRESS(1, 1, 1, FALSE(), "Sheet2")'], }, CHOOSE: { category: 'Lookup and reference', shortDescription: 'Uses an index to return a value from a list of values.', parameters: [{name: 'index', description: 'The 1-based position of the value to return from the list of values that follow.'}, {name: 'value1', description: 'A value that can be returned when index selects its position. Further values can be passed as additional arguments to extend the list index selects from.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CHOOSE(2, "apple", "banana", "cherry")', '=CHOOSE(1, A1, A2, A3)'], }, COLUMN: { category: 'Lookup and reference', shortDescription: 'Returns column number of a given reference or formula reference if argument not provided.', parameters: [{name: 'reference', description: 'A cell reference whose column number is returned. When omitted, returns the column number of the cell containing the formula.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=COLUMN(C5)', '=COLUMN()'], }, COLUMNS: { category: 'Lookup and reference', shortDescription: 'Returns the number of columns in the given reference.', parameters: [{name: 'array', description: 'The range whose number of columns is counted.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=COLUMNS(A1:C5)', '=COLUMNS(A1:F1)'], }, FILTER: { category: 'Lookup and reference', shortDescription: 'Filters an array, based on multiple conditions (boolean arrays).', parameters: [{name: 'source_array', description: 'The range of values to filter; it must be a single row or a single column (a two-dimensional range is not supported).'}, {name: 'bool_array1', description: 'A range of boolean values, with the same dimensions as source_array, marking which rows or columns to keep; only entries where every boolean array is TRUE are returned. Further boolean arrays can be passed as additional arguments, and all of them must evaluate to TRUE for an entry to be kept.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=FILTER(A1:C1, A2:C2)', '=FILTER(A1:A5, A1:A5>10)', '=FILTER(A1:C1, A2:C2, A3:C3)'], }, FORMULATEXT: { category: 'Lookup and reference', shortDescription: 'Returns a formula in a given cell as a string.', parameters: [{name: 'reference', description: 'The cell reference whose formula is returned as text.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=FORMULATEXT(A1)', '=FORMULATEXT(Sheet2!B2)'], }, HLOOKUP: { category: 'Lookup and reference', shortDescription: 'Searches horizontally with reference to adjacent cells to the bottom.', parameters: [{name: 'search_criterion', description: 'The value to search for in the first row of array.'}, {name: 'array', description: 'The range to search, with values compared against its first row.'}, {name: 'index', description: 'The row number within array (counting from 1) whose value in the matching column is returned.'}, {name: 'sort_order', description: 'TRUE (default) performs an approximate match against ascending-sorted data, FALSE performs an exact match.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HLOOKUP("apple", A1:D5, 3, FALSE())', '=HLOOKUP(5, A1:F2, 2)'], }, HSTACK: { category: 'Lookup and reference', shortDescription: 'Stacks arrays horizontally into a single array.', parameters: [{name: 'array1', description: 'A range or array to stack. Further ranges or arrays can be passed as additional arguments; they are stacked left to right into one array.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HSTACK(A1:A3, B1:B3)', '=HSTACK(A1:B2, C1:D2)'], }, HYPERLINK: { category: 'Lookup and reference', - shortDescription: 'Stores the url in the cell\'s metadata. It can be read using method [`getCellHyperlink`](https://hyperformula.handsontable.com/docs/api/classes/hyperformula.html#getcellhyperlink)', + shortDescription: 'Stores the url in the cell\'s metadata. It can be read using method [`getCellHyperlink`](https://handsontable.com/docs/hyperformula/api/classes/hyperformula.html#getcellhyperlink)', parameters: [{name: 'url', description: 'The URL stored in the cell\'s metadata, readable via getCellHyperlink.'}, {name: 'link_label', description: 'The text displayed in the cell. When omitted, url is displayed instead.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HYPERLINK("https://hyperformula.handsontable.com")', '=HYPERLINK("https://hyperformula.handsontable.com", "HyperFormula docs")'], }, INDEX: { category: 'Lookup and reference', shortDescription: 'Returns the contents of a cell specified by row and column number. The column number is optional and defaults to 1.', parameters: [{name: 'range', description: 'The range from which a value is returned.'}, {name: 'row', description: 'The row number within range (counting from 1) of the value to return.'}, {name: 'column', description: 'The column number within range (counting from 1) of the value to return. Defaults to 1 when omitted.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=INDEX(A1:C10, 2, 3)', '=INDEX(A1:A10, 5)'], }, MATCH: { category: 'Lookup and reference', shortDescription: 'Returns the relative position of an item in an array that matches a specified value.', parameters: [{name: 'search_criterion', description: 'The value to search for in lookup_array.'}, {name: 'lookup_array', description: 'The single row or column of cells to search.'}, {name: 'match_type', description: '1 (default) finds the largest value less than or equal to search_criterion in ascending-sorted data, -1 finds the smallest value greater than or equal to it in descending-sorted data, and 0 finds an exact match.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MATCH(5, A1:A10, 0)', '=MATCH("apple", B1:B10)'], }, // OFFSET is a protected function (parse-time transformed into a cell/range reference, so it has no plugin or @@ -97,63 +97,63 @@ export const LOOKUP_AND_REFERENCE_DOCS: Record = { parameters: [{name: 'reference', description: 'The starting cell the offset is measured from.'}, {name: 'rows', description: 'The number of rows to shift down from reference; a negative value shifts up.'}, {name: 'columns', description: 'The number of columns to shift right from reference; a negative value shifts left.'}, {name: 'height', description: 'The number of rows of the returned range. Defaults to 1 (a single row).'}, {name: 'width', description: 'The number of columns of the returned range. Defaults to 1 (a single column).'}], // The height/width form resolves to a multi-cell range, which a single cell cannot hold (#VALUE!), so the // example wraps it in a range-consuming function to stay pasteable as written. - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=OFFSET(A1, 1, 2)', '=SUM(OFFSET(A1, 2, 0, 3, 1))'], }, ROW: { category: 'Lookup and reference', shortDescription: 'Returns row number of a given reference or formula reference if argument not provided.', parameters: [{name: 'reference', description: 'A cell reference whose row number is returned. When omitted, returns the row number of the cell containing the formula.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ROW(B5)', '=ROW()'], }, ROWS: { category: 'Lookup and reference', shortDescription: 'Returns the number of rows in the given reference.', parameters: [{name: 'array', description: 'The range whose number of rows is counted.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ROWS(A1:C5)', '=ROWS(A1:A9)'], }, SORT: { category: 'Lookup and reference', shortDescription: 'Sorts the rows or columns of an array.', parameters: [{name: 'array', description: 'The range or array whose rows (or columns) are sorted.'}, {name: 'sort_index', description: 'The 1-based row or column index within array to sort by. Defaults to 1 (the first row or column).'}, {name: 'sort_order', description: '1 (default) sorts in ascending order; -1 sorts in descending order.'}, {name: 'by_col', description: 'FALSE (default) sorts the rows of array; TRUE sorts its columns.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SORT(A1:A10)', '=SORT(A1:B10, 2, -1)'], }, TRANSPOSE: { category: 'Lookup and reference', shortDescription: 'Transposes the rows and columns of an array.', parameters: [{name: 'array', description: 'The range of cells whose rows and columns are swapped in the returned array.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=TRANSPOSE(A1:C2)', '=TRANSPOSE(A1:A5)'], }, UNIQUE: { category: 'Lookup and reference', shortDescription: 'Returns the unique rows or columns of an array.', parameters: [{name: 'array', description: 'The range or array to return distinct entries from.'}, {name: 'by_col', description: 'FALSE (default) compares and returns rows; TRUE compares and returns columns.'}, {name: 'exactly_once', description: 'FALSE (default) returns every distinct entry once; TRUE returns only the entries that appear exactly once in array.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=UNIQUE(A1:A10)', '=UNIQUE(A1:B10)'], }, VLOOKUP: { category: 'Lookup and reference', shortDescription: 'Searches vertically with reference to adjacent cells to the right.', parameters: [{name: 'search_criterion', description: 'The value to search for in the first column of array.'}, {name: 'array', description: 'The range to search, with values compared against its first column.'}, {name: 'index', description: 'The column number within array (counting from 1) whose value in the matching row is returned.'}, {name: 'sort_order', description: 'TRUE (default) performs an approximate match against ascending-sorted data, FALSE performs an exact match.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=VLOOKUP("apple", A1:B10, 2, FALSE())', '=VLOOKUP(5, A1:C10, 3)'], }, VSTACK: { category: 'Lookup and reference', shortDescription: 'Stacks arrays vertically into a single array.', parameters: [{name: 'array1', description: 'A range or array to stack. Further ranges or arrays can be passed as additional arguments; they are stacked top to bottom into one array.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=VSTACK(A1:B2, A3:B4)', '=VSTACK(A1:C1, A2:C2)'], }, XLOOKUP: { category: 'Lookup and reference', shortDescription: 'Searches for a key in a range and returns the item corresponding to the match it finds. If no match exists, then XLOOKUP can return the closest (approximate) match.', parameters: [{name: 'lookup_value', description: 'The value to search for in lookup_array.'}, {name: 'lookup_array', description: 'The single row or column of cells to search.'}, {name: 'return_array', description: 'The range that values are returned from once a match is found; it must align in size with lookup_array.'}, {name: 'if_not_found', description: 'The value returned when no match is found. Defaults to the #N/A error.'}, {name: 'match_mode', description: '0 (default) for an exact match, -1 for an exact match or the next smaller item, 1 for an exact match or the next larger item, or 2 for a wildcard match.'}, {name: 'search_mode', description: '1 (default) searches from first to last, -1 searches from last to first, and 2 or -2 perform a binary search on ascending- or descending-sorted data respectively.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=XLOOKUP("apple", A1:A10, B1:B10)', '=XLOOKUP(5, A1:A10, B1:B10, "not found")'], }, } diff --git a/src/interpreter/functionMetadata/categories/math-and-trigonometry.ts b/src/interpreter/functionMetadata/categories/math-and-trigonometry.ts index e48408bcd1..16e2e25c85 100644 --- a/src/interpreter/functionMetadata/categories/math-and-trigonometry.ts +++ b/src/interpreter/functionMetadata/categories/math-and-trigonometry.ts @@ -14,448 +14,448 @@ export const MATH_AND_TRIGONOMETRY_DOCS: Record = { category: 'Math and trigonometry', shortDescription: 'Returns the absolute value of a number.', parameters: [{name: 'number', description: 'A number, or a cell reference to one, whose absolute value is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ABS(-5)', '=ABS(A1)'], }, ACOS: { category: 'Math and trigonometry', shortDescription: 'Returns the inverse trigonometric cosine of a number.', parameters: [{name: 'number', description: 'A number between -1 and 1 whose arccosine, in radians, is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ACOS(1)', '=ACOS(0.5)'], }, ACOSH: { category: 'Math and trigonometry', shortDescription: 'Returns the inverse hyperbolic cosine of a number.', parameters: [{name: 'number', description: 'A number greater than or equal to 1 whose inverse hyperbolic cosine is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ACOSH(1)', '=ACOSH(10)'], }, ACOT: { category: 'Math and trigonometry', shortDescription: 'Returns the inverse trigonometric cotangent of a number.', parameters: [{name: 'number', description: 'A number whose arccotangent, in radians, is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ACOT(1)', '=ACOT(0)'], }, ACOTH: { category: 'Math and trigonometry', shortDescription: 'Returns the inverse hyperbolic cotangent of a number.', parameters: [{name: 'number', description: 'A number with an absolute value greater than 1 whose inverse hyperbolic cotangent is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ACOTH(2)', '=ACOTH(-5)'], }, ARABIC: { category: 'Math and trigonometry', shortDescription: 'Converts number from roman form.', parameters: [{name: 'string', description: 'A Roman numeral text (e.g. "MCMXC") to convert to its Arabic number equivalent.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ARABIC("MCMXC")', '=ARABIC("IV")'], }, ASIN: { category: 'Math and trigonometry', shortDescription: 'Returns the inverse trigonometric sine of a number.', parameters: [{name: 'number', description: 'A number between -1 and 1 whose arcsine, in radians, is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ASIN(1)', '=ASIN(0.5)'], }, ASINH: { category: 'Math and trigonometry', shortDescription: 'Returns the inverse hyperbolic sine of a number.', parameters: [{name: 'number', description: 'A number whose inverse hyperbolic sine is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ASINH(1)', '=ASINH(-2.5)'], }, ATAN: { category: 'Math and trigonometry', shortDescription: 'Returns the inverse trigonometric tangent of a number.', parameters: [{name: 'number', description: 'A number whose arctangent, in radians, is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ATAN(1)', '=ATAN(0)'], }, ATAN2: { category: 'Math and trigonometry', shortDescription: 'Returns the inverse trigonometric tangent of the specified x and y coordinates.', parameters: [{name: 'number_x', description: 'The x-coordinate of the point.'}, {name: 'number_y', description: 'The y-coordinate of the point.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ATAN2(1, 1)', '=ATAN2(-1, 2)'], }, ATANH: { category: 'Math and trigonometry', shortDescription: 'Returns the inverse hyperbolic tangent of a number.', parameters: [{name: 'number', description: 'A number between -1 and 1 (exclusive) whose inverse hyperbolic tangent is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ATANH(0.5)', '=ATANH(-0.2)'], }, BASE: { category: 'Math and trigonometry', shortDescription: 'Converts a non-negative integer to a specified base into a text from the numbering system.', parameters: [{name: 'number', description: 'The non-negative integer to convert.'}, {name: 'radix', description: 'The base (from 2 to 36) to convert the number into.'}, {name: 'minimum_length', description: 'The minimum length of the returned string; the result is left-padded with zeros when shorter.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=BASE(15, 2)', '=BASE(100, 16, 4)'], }, CEILING: { category: 'Math and trigonometry', shortDescription: 'Rounds a number up to the nearest multiple of significance, toward positive infinity when significance is positive and toward negative infinity when it is negative.', parameters: [{name: 'number', description: 'The value to round up.'}, {name: 'significance', description: 'The multiple to round up to. A #DIV/0! error when it is 0, and a #NUM! error when number is positive and significance is negative. When number is 0 the result is 0, whatever the sign of significance.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CEILING(4.3, 1)', '=CEILING(22.5, 5)'], }, 'CEILING.MATH': { category: 'Math and trigonometry', shortDescription: 'Rounds a number up to the nearest multiple of significance, ignoring the sign of significance; for a negative number, mode selects whether it rounds toward or away from zero.', parameters: [{name: 'number', description: 'The value to round up.'}, {name: 'significance', description: 'The multiple to round up to. Defaults to 1 when omitted.'}, {name: 'mode', description: 'For negative numbers, when exactly 1, rounds away from zero instead of toward it. Every other value, including the default 0, rounds toward zero.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CEILING.MATH(4.3)', '=CEILING.MATH(-4.3, 2, 1)'], }, 'CEILING.PRECISE': { category: 'Math and trigonometry', shortDescription: 'Rounds a number up toward positive infinity to the nearest multiple of significance, whatever the sign of significance.', parameters: [{name: 'number', description: 'The value to round up.'}, {name: 'significance', description: 'The multiple to round up to; its sign is ignored. Defaults to 1 when omitted.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CEILING.PRECISE(4.3, 1)', '=CEILING.PRECISE(-4.3, 2)'], }, COMBIN: { category: 'Math and trigonometry', shortDescription: 'Returns number of combinations (without repetitions).', parameters: [{name: 'number1', description: 'The total number of items; truncated to an integer.'}, {name: 'number2', description: 'The number of items in each combination; truncated to an integer.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=COMBIN(8, 2)', '=COMBIN(52, 5)'], }, COMBINA: { category: 'Math and trigonometry', shortDescription: 'Returns number of combinations (with repetitions).', parameters: [{name: 'number1', description: 'The total number of items; truncated to an integer.'}, {name: 'number2', description: 'The number of items in each combination, where an item may repeat; truncated to an integer.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=COMBINA(4, 3)', '=COMBINA(10, 2)'], }, COS: { category: 'Math and trigonometry', shortDescription: 'Returns the cosine of the given angle (in radians).', parameters: [{name: 'number', description: 'An angle in radians whose cosine is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=COS(0)', '=COS(PI())'], }, COSH: { category: 'Math and trigonometry', shortDescription: 'Returns the hyperbolic cosine of the given value.', parameters: [{name: 'number', description: 'A number whose hyperbolic cosine is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=COSH(0)', '=COSH(1)'], }, COT: { category: 'Math and trigonometry', shortDescription: 'Returns the cotangent of the given angle (in radians).', parameters: [{name: 'number', description: 'A non-zero angle in radians whose cotangent is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=COT(1)', '=COT(PI()/4)'], }, COTH: { category: 'Math and trigonometry', shortDescription: 'Returns the hyperbolic cotangent of the given value.', parameters: [{name: 'number', description: 'A non-zero number whose hyperbolic cotangent is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=COTH(2)', '=COTH(-1)'], }, CSC: { category: 'Math and trigonometry', shortDescription: 'Returns the cosecant of the given angle (in radians).', parameters: [{name: 'number', description: 'A non-zero angle in radians whose cosecant is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CSC(1)', '=CSC(PI()/2)'], }, CSCH: { category: 'Math and trigonometry', shortDescription: 'Returns the hyperbolic cosecant of the given value.', parameters: [{name: 'number', description: 'A non-zero number whose hyperbolic cosecant is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CSCH(1)', '=CSCH(-2)'], }, DECIMAL: { category: 'Math and trigonometry', shortDescription: 'Converts text with characters from a number system to a non-negative integer in the base radix given.', parameters: [{name: 'text', description: 'The text representation of the number to convert.'}, {name: 'radix', description: 'The base (from 2 to 36) that text is expressed in.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=DECIMAL("1100", 2)', '=DECIMAL("FF", 16)'], }, DEGREES: { category: 'Math and trigonometry', shortDescription: 'Converts radians into degrees.', parameters: [{name: 'number', description: 'An angle in radians to convert to degrees.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=DEGREES(PI())', '=DEGREES(1)'], }, EVEN: { category: 'Math and trigonometry', shortDescription: 'Rounds a positive number up to the next even integer and a negative number down to the next even integer.', parameters: [{name: 'number', description: 'The number to round away from zero to the next even integer.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=EVEN(3)', '=EVEN(-3)'], }, EXP: { category: 'Math and trigonometry', shortDescription: 'Returns constant e raised to the power of a number.', parameters: [{name: 'number', description: 'The exponent to which the constant e is raised.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=EXP(1)', '=EXP(0)'], }, FACT: { category: 'Math and trigonometry', shortDescription: 'Returns a factorial of a number.', parameters: [{name: 'number', description: 'A non-negative number whose factorial is returned; the value is truncated to an integer.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=FACT(5)', '=FACT(0)'], }, FACTDOUBLE: { category: 'Math and trigonometry', shortDescription: 'Returns a double factorial of a number.', parameters: [{name: 'number', description: 'A non-negative number whose double factorial is returned; the value is truncated to an integer.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=FACTDOUBLE(6)', '=FACTDOUBLE(7)'], }, FLOOR: { category: 'Math and trigonometry', shortDescription: 'Rounds a number down to the nearest multiple of significance, toward negative infinity when significance is positive and toward positive infinity when it is negative.', parameters: [{name: 'number', description: 'The value to round down.'}, {name: 'significance', description: 'The multiple to round down to. A #DIV/0! error when it is 0, and a #NUM! error when number is positive and significance is negative. When number is 0 the result is 0, whatever the sign of significance.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=FLOOR(4.7, 1)', '=FLOOR(22.5, 5)'], }, 'FLOOR.MATH': { category: 'Math and trigonometry', shortDescription: 'Rounds a number down to the nearest multiple of significance, ignoring the sign of significance; for a negative number, mode selects whether it rounds toward or away from zero.', parameters: [{name: 'number', description: 'The value to round down.'}, {name: 'significance', description: 'The multiple to round down to. Defaults to 1 when omitted.'}, {name: 'mode', description: 'For negative numbers, when exactly 1, rounds toward zero instead of away from it. Every other value, including the default 0, rounds away from zero.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=FLOOR.MATH(4.7)', '=FLOOR.MATH(-4.7, 2, 1)'], }, 'FLOOR.PRECISE': { category: 'Math and trigonometry', shortDescription: 'Rounds a number down toward negative infinity to the nearest multiple of significance, whatever the sign of significance.', parameters: [{name: 'number', description: 'The value to round down.'}, {name: 'significance', description: 'The multiple to round down to; its sign is ignored. Defaults to 1 when omitted.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=FLOOR.PRECISE(4.7, 1)', '=FLOOR.PRECISE(-4.7, 2)'], }, GCD: { category: 'Math and trigonometry', shortDescription: 'Computes greatest common divisor of numbers.', parameters: [{name: 'number1', description: 'A non-negative number, cell reference, or range; each value is truncated to an integer. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=GCD(12, 18)', '=GCD(24, 36, 60)'], }, INT: { category: 'Math and trigonometry', shortDescription: 'Returns the integer part of a number by discarding its fractional part.', parameters: [{name: 'number', description: 'The number to convert to an integer by dropping its fractional part (rounding toward zero, so INT(-8.9) is -8).'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=INT(8.9)', '=INT(-8.9)'], }, LCM: { category: 'Math and trigonometry', shortDescription: 'Computes least common multiple of numbers.', parameters: [{name: 'number1', description: 'A non-negative number, cell reference, or range; each value is truncated to an integer. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=LCM(4, 6)', '=LCM(A1:A5)'], }, LN: { category: 'Math and trigonometry', shortDescription: 'Returns the natural logarithm based on the constant e of a number.', parameters: [{name: 'number', description: 'A positive number whose natural logarithm is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=LN(1)', '=LN(2.718281828)'], }, LOG: { category: 'Math and trigonometry', shortDescription: 'Returns the logarithm of a number to the specified base.', parameters: [{name: 'number', description: 'A positive number whose logarithm is returned.'}, {name: 'base', description: 'The base of the logarithm. Defaults to 10 when omitted.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=LOG(100, 10)', '=LOG(8, 2)'], }, LOG10: { category: 'Math and trigonometry', shortDescription: 'Returns the base-10 logarithm of a number.', parameters: [{name: 'number', description: 'A positive number whose base-10 logarithm is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=LOG10(100)', '=LOG10(1000)'], }, MOD: { category: 'Math and trigonometry', shortDescription: 'Returns the remainder when one number is divided by another. The result has the same sign as divisor.', parameters: [{name: 'dividend', description: 'The number to be divided.'}, {name: 'divisor', description: 'The non-zero number to divide by.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MOD(10, 3)', '=MOD(-7, 2)'], }, MROUND: { category: 'Math and trigonometry', shortDescription: 'Rounds a number to the nearest multiple.', parameters: [{name: 'number', description: 'The value to round.'}, {name: 'base', description: 'The multiple to round number to; must have the same sign as number, otherwise the result is a #NUM! error. When it is 0 the result is 0.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MROUND(10, 3)', '=MROUND(-10, -3)'], }, MULTINOMIAL: { category: 'Math and trigonometry', shortDescription: 'Returns number of multiset combinations.', parameters: [{name: 'number1', description: 'A non-negative number, cell reference, or range; each value is truncated to an integer. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MULTINOMIAL(2, 3, 4)', '=MULTINOMIAL(A1:A3)'], }, ODD: { category: 'Math and trigonometry', shortDescription: 'Rounds a positive number up to the nearest odd integer and a negative number down to the nearest odd integer.', parameters: [{name: 'number', description: 'The number to round away from zero to the next odd integer.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ODD(2)', '=ODD(-2)'], }, PI: { category: 'Math and trigonometry', shortDescription: 'Returns 3.14159265358979, the value of the mathematical constant PI to 14 decimal places.', parameters: [], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=PI()'], }, POWER: { category: 'Math and trigonometry', shortDescription: 'Returns a number raised to another number.', parameters: [{name: 'base', description: 'The number to raise to a power.'}, {name: 'exponent', description: 'The exponent to raise base to.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=POWER(2, 10)', '=POWER(9, 0.5)'], }, PRODUCT: { category: 'Math and trigonometry', shortDescription: 'Returns product of numbers.', parameters: [{name: 'number1', description: 'A number, cell reference, or range whose values are multiplied together. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=PRODUCT(2, 3, 4)', '=PRODUCT(A1:A10)'], }, QUOTIENT: { category: 'Math and trigonometry', shortDescription: 'Returns integer part of a division.', parameters: [{name: 'dividend', description: 'The number to be divided.'}, {name: 'divisor', description: 'The non-zero number to divide by.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=QUOTIENT(10, 3)', '=QUOTIENT(-10, 3)'], }, RADIANS: { category: 'Math and trigonometry', shortDescription: 'Converts degrees to radians.', parameters: [{name: 'number', description: 'An angle in degrees to convert to radians.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=RADIANS(180)', '=RADIANS(90)'], }, RAND: { category: 'Math and trigonometry', shortDescription: 'Returns a random number between 0 and 1.', parameters: [], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=RAND()'], }, RANDBETWEEN: { category: 'Math and trigonometry', shortDescription: 'Returns a random integer between two numbers.', parameters: [{name: 'lower_bound', description: 'The lower bound, rounded up to an integer.'}, {name: 'upper_bound', description: 'The upper bound, rounded up to an integer; a #NUM! error when it is below lower_bound.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=RANDBETWEEN(1, 10)', '=RANDBETWEEN(-5, 5)'], }, ROMAN: { category: 'Math and trigonometry', shortDescription: 'Converts number to roman form.', parameters: [{name: 'number', description: 'A number between 1 and 3999 to convert to a Roman numeral; truncated to an integer.'}, {name: 'mode', description: 'Controls how concise the result is, from 0 (classic) to 4 (most abbreviated). Defaults to 0 when omitted.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ROMAN(1990)', '=ROMAN(1990, 4)'], }, ROUND: { category: 'Math and trigonometry', shortDescription: 'Rounds a number to a certain number of decimal places.', parameters: [{name: 'number', description: 'The value to round.'}, {name: 'count', description: 'The number of decimal places to round to. Defaults to 0 when omitted; negative values round to the left of the decimal point.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ROUND(3.14159, 2)', '=ROUND(1234.5, -2)'], }, ROUNDDOWN: { category: 'Math and trigonometry', shortDescription: 'Rounds a number down, toward zero, to a certain precision.', parameters: [{name: 'number', description: 'The value to round down toward zero.'}, {name: 'count', description: 'The number of decimal places to round to. Defaults to 0 when omitted; negative values round to the left of the decimal point.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ROUNDDOWN(3.789, 2)', '=ROUNDDOWN(-3.789, 1)'], }, ROUNDUP: { category: 'Math and trigonometry', shortDescription: 'Rounds a number up, away from zero, to a certain precision.', parameters: [{name: 'number', description: 'The value to round up, away from zero.'}, {name: 'count', description: 'The number of decimal places to round to. Defaults to 0 when omitted; negative values round to the left of the decimal point.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=ROUNDUP(3.14159, 2)', '=ROUNDUP(-3.14159, 1)'], }, SEC: { category: 'Math and trigonometry', shortDescription: 'Returns the secant of the given angle (in radians).', parameters: [{name: 'number', description: 'An angle in radians whose secant is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SEC(0)', '=SEC(PI()/4)'], }, SECH: { category: 'Math and trigonometry', shortDescription: 'Returns the hyperbolic secant of the given value.', parameters: [{name: 'number', description: 'A number whose hyperbolic secant is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SECH(0)', '=SECH(1)'], }, SEQUENCE: { category: 'Math and trigonometry', shortDescription: 'Returns an array of sequential numbers.', parameters: [{name: 'rows', description: 'The number of rows in the returned array. The size must be resolvable at parse time, so use a literal (e.g. 3); a cell reference or formula yields a #VALUE! error whenever the result would span more than one cell, since the array size cannot be determined at parse time.'}, {name: 'cols', description: 'The number of columns in the returned array. Defaults to 1 when omitted; like rows, it must be resolvable at parse time.'}, {name: 'start', description: 'The first value of the sequence. Defaults to 1 when omitted.'}, {name: 'step', description: 'The increment between consecutive values, filled row by row. Defaults to 1 when omitted.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SEQUENCE(4)', '=SEQUENCE(3, 2)', '=SEQUENCE(3, 1, 10, 5)'], }, SERIESSUM: { category: 'Math and trigonometry', shortDescription: 'Evaluates series at a point.', parameters: [{name: 'x', description: 'The input value x to the power series.'}, {name: 'n', description: 'The initial power n to raise x to.'}, {name: 'm', description: 'The step m by which the power increases for each successive term.'}, {name: 'coefficients', description: 'A range of coefficients multiplying each successive power of x.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SERIESSUM(1, 0, 1, A1:A3)', '=SERIESSUM(2, 1, 2, B1:B4)'], }, SIGN: { category: 'Math and trigonometry', shortDescription: 'Returns sign of a number.', parameters: [{name: 'number', description: 'A number to test; returns 1 for positive, -1 for negative, and 0 for zero.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SIGN(-5)', '=SIGN(0)'], }, SIN: { category: 'Math and trigonometry', shortDescription: 'Returns the sine of the given angle (in radians).', parameters: [{name: 'number', description: 'An angle in radians whose sine is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SIN(0)', '=SIN(PI()/2)'], }, SINH: { category: 'Math and trigonometry', shortDescription: 'Returns the hyperbolic sine of the given value.', parameters: [{name: 'number', description: 'A number whose hyperbolic sine is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SINH(0)', '=SINH(1)'], }, SQRT: { category: 'Math and trigonometry', shortDescription: 'Returns the positive square root of a number.', parameters: [{name: 'number', description: 'A non-negative number whose positive square root is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SQRT(16)', '=SQRT(2)'], }, SQRTPI: { category: 'Math and trigonometry', shortDescription: 'Returns sqrt of number times pi.', parameters: [{name: 'number', description: 'A non-negative number to multiply by PI before taking the square root.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SQRTPI(1)', '=SQRTPI(2)'], }, SUBTOTAL: { category: 'Math and trigonometry', shortDescription: 'Computes aggregation using function specified by number.', parameters: [{name: 'function', description: 'A number (1-11 or 101-111) selecting the aggregation function to apply, e.g. 9 for SUM or 1 for AVERAGE.'}, {name: 'number1', description: 'A number, cell reference, or range to aggregate. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SUBTOTAL(9, A1:A10)', '=SUBTOTAL(1, B1:B10)'], }, SUM: { category: 'Math and trigonometry', shortDescription: 'Sums up the values of the specified cells.', parameters: [{name: 'number1', description: 'A number, cell reference, or range whose values are added together. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SUM(1, 2, 3)', '=SUM(A1:A10)', '=SUM(B1:B5, 100)'], }, SUMIF: { @@ -466,63 +466,63 @@ export const MATH_AND_TRIGONOMETRY_DOCS: Record = { {name: 'criteria', description: 'The condition that selects which cells are summed, e.g. ">5", "apples", or a cell reference.'}, {name: 'sum_range', description: 'The range of cells to sum. When omitted, the cells in range are summed instead.'}, ], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SUMIF(A1:A10, ">5")', '=SUMIF(B1:B10, "apples", C1:C10)'], }, SUMIFS: { category: 'Math and trigonometry', shortDescription: 'Sums up the values of cells that belong to the specified range and meet the specified sets of conditions.', parameters: [{name: 'sum_range', description: 'The range of cells to sum.'}, {name: 'criteria_range1', description: 'A range of cells tested against the paired criterion. Further criterion-range/criterion pairs can be passed as additional arguments; only cells that satisfy every pair are summed.'}, {name: 'criteria1', description: 'The condition applied to criteria_range1, e.g. ">5", "apples", or a cell reference.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SUMIFS(C1:C10, A1:A10, ">5", B1:B10, "apples")'], }, SUMPRODUCT: { category: 'Math and trigonometry', shortDescription: 'Multiplies corresponding elements in the given arrays, and returns the sum of those products.', parameters: [{name: 'array1', description: 'A range whose elements are multiplied element-wise with the corresponding elements of the other arrays before summing. Further same-sized ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SUMPRODUCT(A1:A5, B1:B5)', '=SUMPRODUCT(A1:A3)'], }, SUMSQ: { category: 'Math and trigonometry', shortDescription: 'Returns the sum of the squares of the arguments.', parameters: [{name: 'number1', description: 'A number, cell reference, or range whose values are squared and summed. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SUMSQ(3, 4)', '=SUMSQ(A1:A10)'], }, SUMX2MY2: { category: 'Math and trigonometry', shortDescription: 'Returns the sum of the differences of the squares of paired values, that is the sum of x squared minus y squared over all pairs.', parameters: [{name: 'array_x', description: 'The range providing the first value (x) of each pair.'}, {name: 'array_y', description: 'The range, of the same size as array_x, providing the second value (y) of each pair.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SUMX2MY2(A1:A5, B1:B5)'], }, SUMX2PY2: { category: 'Math and trigonometry', shortDescription: 'Returns the sum of the sums of the squares of paired values, that is the sum of x squared plus y squared over all pairs.', parameters: [{name: 'array_x', description: 'The range providing the first value (x) of each pair.'}, {name: 'array_y', description: 'The range, of the same size as array_x, providing the second value (y) of each pair.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SUMX2PY2(A1:A5, B1:B5)'], }, SUMXMY2: { category: 'Math and trigonometry', shortDescription: 'Returns the sum of the squares of the differences of paired values, that is the sum of x minus y, squared, over all pairs.', parameters: [{name: 'array_x', description: 'The range providing the first value (x) of each pair.'}, {name: 'array_y', description: 'The range, of the same size as array_x, providing the second value (y) of each pair.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SUMXMY2(A1:A5, B1:B5)'], }, TAN: { category: 'Math and trigonometry', shortDescription: 'Returns the tangent of the given angle (in radians).', parameters: [{name: 'number', description: 'An angle in radians whose tangent is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=TAN(0)', '=TAN(PI()/4)'], }, TANH: { category: 'Math and trigonometry', shortDescription: 'Returns the hyperbolic tangent of the given value.', parameters: [{name: 'number', description: 'A number whose hyperbolic tangent is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=TANH(0)', '=TANH(1)'], }, } diff --git a/src/interpreter/functionMetadata/categories/matrix-functions.ts b/src/interpreter/functionMetadata/categories/matrix-functions.ts index 841285db41..bf3b674514 100644 --- a/src/interpreter/functionMetadata/categories/matrix-functions.ts +++ b/src/interpreter/functionMetadata/categories/matrix-functions.ts @@ -14,21 +14,21 @@ export const MATRIX_FUNCTIONS_DOCS: Record = { category: 'Matrix functions', shortDescription: 'Calculates a smaller range which is a maximum of a window_size, in a given range, for every stride element.
The windows must fit range exactly: window_size cannot exceed either dimension of range, and both dimensions of range, reduced by window_size, must be whole multiples of stride. Otherwise the function returns the #VALUE! error. A window_size or stride that is not a positive integer returns the #NUM! error.', parameters: [{name: 'range', description: 'The range of numeric values to pool; must contain only numbers, otherwise the function returns the #VALUE! error.'}, {name: 'window_size', description: 'The width and height, in cells, of the square window whose maximum is taken at each step; a positive integer that is not greater than either dimension of range.'}, {name: 'stride', description: 'The number of cells the window moves between steps; a positive integer that defaults to window_size when omitted. Both dimensions of range, reduced by window_size, must be whole multiples of it. A stride greater than window_size skips the rows and columns between the windows.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MAXPOOL(A1:D4, 2)', '=MAXPOOL(A1:D4, 2, 1)'], }, MEDIANPOOL: { category: 'Matrix functions', shortDescription: 'Calculates a smaller range which is a median of a window_size, in a given range, for every stride element.
The windows must fit range exactly: window_size cannot exceed either dimension of range, and both dimensions of range, reduced by window_size, must be whole multiples of stride. Otherwise the function returns the #VALUE! error. A window_size or stride that is not a positive integer returns the #NUM! error.', parameters: [{name: 'range', description: 'The range of numeric values to pool; must contain only numbers, otherwise the function returns the #VALUE! error.'}, {name: 'window_size', description: 'The width and height, in cells, of the square window whose median is taken at each step; a positive integer that is not greater than either dimension of range.'}, {name: 'stride', description: 'The number of cells the window moves between steps; a positive integer that defaults to window_size when omitted. Both dimensions of range, reduced by window_size, must be whole multiples of it. A stride greater than window_size skips the rows and columns between the windows.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MEDIANPOOL(A1:D4, 2)', '=MEDIANPOOL(A1:D4, 2, 1)'], }, MMULT: { category: 'Matrix functions', shortDescription: 'Calculates the array product of two arrays.', parameters: [{name: 'array1', description: 'The first range of numbers in the matrix multiplication; its column count must equal the row count of array2.'}, {name: 'array2', description: 'The second range of numbers in the matrix multiplication; its row count must equal the column count of array1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MMULT(A1:B2, D1:E2)', '=MMULT(A1:C2, A4:B6)'], }, } diff --git a/src/interpreter/functionMetadata/categories/operator.ts b/src/interpreter/functionMetadata/categories/operator.ts index 82c222e027..0bf1014e11 100644 --- a/src/interpreter/functionMetadata/categories/operator.ts +++ b/src/interpreter/functionMetadata/categories/operator.ts @@ -14,105 +14,105 @@ export const OPERATOR_DOCS: Record = { category: 'Operator', shortDescription: 'Adds two values.', parameters: [{name: 'number1', description: 'The first number in the addition.'}, {name: 'number2', description: 'The second number, added to number1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HF.ADD(2, 3)', '=HF.ADD(A1, B1)'], }, 'HF.CONCAT': { category: 'Operator', shortDescription: 'Concatenates two strings.', parameters: [{name: 'string1', description: 'The first string in the concatenation.'}, {name: 'string2', description: 'The second string, appended to the end of string1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HF.CONCAT("Hello, ", "World!")', '=HF.CONCAT(A1, B1)'], }, 'HF.DIVIDE': { category: 'Operator', shortDescription: 'Divides two values.', parameters: [{name: 'number1', description: 'The dividend, i.e. the number being divided.'}, {name: 'number2', description: 'The divisor. Dividing by 0 returns the #DIV/0! error.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HF.DIVIDE(10, 2)', '=HF.DIVIDE(A1, B1)'], }, 'HF.EQ': { category: 'Operator', shortDescription: 'Tests two values for equality.', parameters: [{name: 'value1', description: 'The first value to compare.'}, {name: 'value2', description: 'The second value, compared with value1; the result is TRUE when the two values are equal.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HF.EQ(5, 5)', '=HF.EQ(A1, B1)'], }, 'HF.GT': { category: 'Operator', shortDescription: 'Tests two values for greater-than relation.', parameters: [{name: 'value1', description: 'The value tested against value2.'}, {name: 'value2', description: 'The value that value1 is compared against; the result is TRUE when value1 is greater than value2.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HF.GT(5, 3)', '=HF.GT(A1, B1)'], }, 'HF.GTE': { category: 'Operator', shortDescription: 'Tests two values for greater-equal relation.', parameters: [{name: 'value1', description: 'The value tested against value2.'}, {name: 'value2', description: 'The value that value1 is compared against; the result is TRUE when value1 is greater than or equal to value2.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HF.GTE(5, 5)', '=HF.GTE(A1, B1)'], }, 'HF.LT': { category: 'Operator', shortDescription: 'Tests two values for less-than relation.', parameters: [{name: 'value1', description: 'The value tested against value2.'}, {name: 'value2', description: 'The value that value1 is compared against; the result is TRUE when value1 is less than value2.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HF.LT(3, 5)', '=HF.LT(A1, B1)'], }, 'HF.LTE': { category: 'Operator', shortDescription: 'Tests two values for less-equal relation.', parameters: [{name: 'value1', description: 'The value tested against value2.'}, {name: 'value2', description: 'The value that value1 is compared against; the result is TRUE when value1 is less than or equal to value2.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HF.LTE(5, 5)', '=HF.LTE(A1, B1)'], }, 'HF.MINUS': { category: 'Operator', shortDescription: 'Subtracts two values.', parameters: [{name: 'number1', description: 'The number to subtract from.'}, {name: 'number2', description: 'The number subtracted from number1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HF.MINUS(10, 4)', '=HF.MINUS(A1, B1)'], }, 'HF.MULTIPLY': { category: 'Operator', shortDescription: 'Multiplies two values.', parameters: [{name: 'number1', description: 'The first factor in the multiplication.'}, {name: 'number2', description: 'The second factor, multiplied by number1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HF.MULTIPLY(4, 5)', '=HF.MULTIPLY(A1, B1)'], }, 'HF.NE': { category: 'Operator', shortDescription: 'Tests two values for inequality.', parameters: [{name: 'value1', description: 'The first value to compare.'}, {name: 'value2', description: 'The second value, compared with value1; the result is TRUE when the two values are not equal.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HF.NE(5, 3)', '=HF.NE(A1, B1)'], }, 'HF.POW': { category: 'Operator', shortDescription: 'Computes power of two values.', parameters: [{name: 'number1', description: 'The base number.'}, {name: 'number2', description: 'The exponent that number1 is raised to.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HF.POW(2, 3)', '=HF.POW(A1, 2)'], }, 'HF.UMINUS': { category: 'Operator', shortDescription: 'Negates the value.', parameters: [{name: 'number', description: 'The number to negate.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HF.UMINUS(5)', '=HF.UMINUS(A1)'], }, 'HF.UNARY_PERCENT': { category: 'Operator', shortDescription: 'Applies percent operator.', parameters: [{name: 'number', description: 'The number to convert to a percentage, i.e. divided by 100.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HF.UNARY_PERCENT(50)', '=HF.UNARY_PERCENT(A1)'], }, 'HF.UPLUS': { category: 'Operator', shortDescription: 'Applies unary plus.', parameters: [{name: 'number', description: 'The number that the unary plus operator is applied to; the value is returned unchanged.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HF.UPLUS(5)', '=HF.UPLUS(A1)'], }, } diff --git a/src/interpreter/functionMetadata/categories/statistical.ts b/src/interpreter/functionMetadata/categories/statistical.ts index 7a536e4cd2..a038361cde 100644 --- a/src/interpreter/functionMetadata/categories/statistical.ts +++ b/src/interpreter/functionMetadata/categories/statistical.ts @@ -14,602 +14,602 @@ export const STATISTICAL_DOCS: Record = { category: 'Statistical', shortDescription: 'Returns the average deviation of the arguments.', parameters: [{name: 'number1', description: 'A number, cell reference, or range included in the deviation calculation. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=AVEDEV(1, 2, 3)', '=AVEDEV(A1:A10)'], }, AVERAGE: { category: 'Statistical', shortDescription: 'Returns the average of the arguments.', parameters: [{name: 'number1', description: 'A number, cell reference, or range whose values are averaged. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=AVERAGE(1, 2, 3)', '=AVERAGE(A1:A10)'], }, AVERAGEA: { category: 'Statistical', shortDescription: 'Returns the average of the arguments, counting text and logical values found in ranges.', parameters: [{name: 'value1', description: 'A value, cell reference, or range whose values are averaged; inside a range, text counts as 0, TRUE as 1 and FALSE as 0, where the non-A variant would skip them, while a non-numeric text passed directly as an argument gives a #VALUE! error. Further values or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=AVERAGEA(1, 2, TRUE())', '=AVERAGEA(A1:A10)'], }, AVERAGEIF: { category: 'Statistical', shortDescription: 'Returns the arithmetic mean of all cells in a range that satisfy a given condition.', parameters: [{name: 'range', description: 'The range of cells tested against the criteria.'}, {name: 'criteria', description: 'The condition that selects which cells are averaged, e.g. ">5", "apples", or a cell reference.'}, {name: 'average_range', description: 'The range of cells to average. When omitted, the cells in range are averaged instead.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=AVERAGEIF(A1:A10, ">5")', '=AVERAGEIF(B1:B10, "apples", C1:C10)'], }, 'BETA.DIST': { category: 'Statistical', shortDescription: 'Returns the density of the beta distribution.', parameters: [{name: 'x', description: 'The value at which to evaluate the distribution, within the interval bounded by lower_bound and upper_bound.'}, {name: 'alpha', description: 'The alpha shape parameter of the distribution; must be greater than 0.'}, {name: 'beta', description: 'The beta shape parameter of the distribution; must be greater than 0.'}, {name: 'cumulative', description: 'TRUE returns the cumulative distribution function; FALSE returns the probability density function.'}, {name: 'lower_bound', description: 'The lower bound of the interval of x; defaults to 0 when omitted.'}, {name: 'upper_bound', description: 'The upper bound of the interval of x; defaults to 1 when omitted.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=BETA.DIST(0.5, 2, 3, TRUE())', '=BETA.DIST(2, 2, 3, TRUE(), 0, 4)'], }, 'BETA.INV': { category: 'Statistical', shortDescription: 'Returns the inverse of the beta distribution value.', parameters: [{name: 'probability', description: 'The probability associated with the beta distribution, between 0 and 1.'}, {name: 'alpha', description: 'The alpha shape parameter of the distribution; must be greater than 0.'}, {name: 'beta', description: 'The beta shape parameter of the distribution; must be greater than 0.'}, {name: 'lower_bound', description: 'The lower bound of the interval of the result; defaults to 0 when omitted.'}, {name: 'upper_bound', description: 'The upper bound of the interval of the result; defaults to 1 when omitted.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=BETA.INV(0.5, 2, 3)', '=BETA.INV(0.25, 2, 3, 0, 4)'], }, 'BINOM.DIST': { category: 'Statistical', shortDescription: 'Returns density of binomial distribution.', parameters: [{name: 'number_s', description: 'The number of successes in the trials.'}, {name: 'trials', description: 'The total number of independent trials.'}, {name: 'probability_s', description: 'The probability of success on a single trial.'}, {name: 'cumulative', description: 'TRUE returns the cumulative distribution function; FALSE returns the probability mass function.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=BINOM.DIST(3, 10, 0.5, FALSE())', '=BINOM.DIST(3, 10, 0.5, TRUE())'], }, 'BINOM.INV': { category: 'Statistical', shortDescription: 'Returns inverse binomial distribution value.', parameters: [{name: 'trials', description: 'The total number of Bernoulli trials.'}, {name: 'probability_s', description: 'The probability of success on a single trial.'}, {name: 'alpha', description: 'The criterion probability value; the function returns the smallest value for which the cumulative binomial distribution is greater than or equal to it.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=BINOM.INV(10, 0.5, 0.75)'], }, 'CHISQ.DIST': { category: 'Statistical', shortDescription: 'Returns value of chi-square distribution.', parameters: [{name: 'x', description: 'The value at which to evaluate the distribution; must be non-negative.'}, {name: 'degrees', description: 'The number of degrees of freedom.'}, {name: 'cumulative', description: 'TRUE returns the cumulative distribution function; FALSE returns the probability density function.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CHISQ.DIST(2, 3, TRUE())', '=CHISQ.DIST(2, 3, FALSE())'], }, 'CHISQ.DIST.RT': { category: 'Statistical', shortDescription: 'Returns probability of chi-square right-side distribution.', parameters: [{name: 'x', description: 'The value at which to evaluate the distribution; must be non-negative.'}, {name: 'degrees', description: 'The number of degrees of freedom.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CHISQ.DIST.RT(2, 3)'], }, 'CHISQ.INV': { category: 'Statistical', shortDescription: 'Returns inverse of chi-square distribution.', parameters: [{name: 'p', description: 'The probability associated with the chi-square distribution, between 0 and 1.'}, {name: 'degrees', description: 'The number of degrees of freedom.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CHISQ.INV(0.9, 3)'], }, 'CHISQ.INV.RT': { category: 'Statistical', shortDescription: 'Returns inverse of chi-square right-side distribution.', parameters: [{name: 'p', description: 'The right-tail probability associated with the chi-square distribution, between 0 and 1.'}, {name: 'degrees', description: 'The number of degrees of freedom.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CHISQ.INV.RT(0.1, 3)'], }, 'CHISQ.TEST': { category: 'Statistical', shortDescription: 'Returns chisquared-test value for a dataset.', parameters: [{name: 'array1', description: 'The range of observed values.'}, {name: 'array2', description: 'The range of expected values, matching the size of array1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CHISQ.TEST(A1:B3, D1:E3)'], }, 'CONFIDENCE.NORM': { category: 'Statistical', shortDescription: 'Returns upper confidence bound for normal distribution.', parameters: [{name: 'alpha', description: 'The significance level used to compute the confidence level, between 0 and 1.'}, {name: 'stdev', description: 'The population standard deviation; must be greater than 0.'}, {name: 'size', description: 'The sample size.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CONFIDENCE.NORM(0.05, 2.5, 50)'], }, 'CONFIDENCE.T': { category: 'Statistical', shortDescription: 'Returns upper confidence bound for T distribution.', parameters: [{name: 'alpha', description: 'The significance level used to compute the confidence level, between 0 and 1.'}, {name: 'stdev', description: 'The sample standard deviation; must be greater than 0.'}, {name: 'size', description: 'The sample size.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CONFIDENCE.T(0.05, 2.5, 10)'], }, CORREL: { category: 'Statistical', shortDescription: 'Returns the correlation coefficient between two data sets.', parameters: [{name: 'data1', description: 'The first range of numeric values.'}, {name: 'data2', description: 'The second range of numeric values, matching the size of data1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CORREL(A1:A10, B1:B10)'], }, COUNT: { category: 'Statistical', shortDescription: 'Counts how many numbers are in the list of arguments.', parameters: [{name: 'value1', description: 'A number, cell reference, or range counted if it contains a number. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=COUNT(1, 2, "text")', '=COUNT(A1:A10)'], }, COUNTA: { category: 'Statistical', shortDescription: 'Counts how many values are in the list of arguments.', parameters: [{name: 'value1', description: 'A value, cell reference, or range counted if it is not empty. Further values or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=COUNTA(A1:A10)', '=COUNTA(1, "text", TRUE())'], }, COUNTBLANK: { category: 'Statistical', shortDescription: 'Returns the number of empty cells.', parameters: [{name: 'range', description: 'A value, cell reference, or range checked for emptiness. Further values or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=COUNTBLANK(A1:A10)', '=COUNTBLANK(A1:A10, C1:C10)'], }, COUNTIF: { category: 'Statistical', shortDescription: 'Returns the number of cells that meet with certain criteria within a cell range.', parameters: [{name: 'range', description: 'The range of cells tested against the criteria.'}, {name: 'criteria', description: 'The condition that selects which cells are counted, e.g. ">5", "apples", or a cell reference.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=COUNTIF(A1:A10, ">5")', '=COUNTIF(B1:B10, "apples")'], }, COUNTIFS: { category: 'Statistical', shortDescription: 'Returns the count of rows or columns that meet criteria in multiple ranges.', parameters: [{name: 'criteria_range1', description: 'A range of cells tested against the paired criterion. Further range/criterion pairs can be passed as additional arguments, and only cells meeting every criterion are counted.'}, {name: 'criteria1', description: 'The condition applied to the preceding range, e.g. ">5", "apples", or a cell reference.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=COUNTIFS(A1:A10, ">5")', '=COUNTIFS(A1:A10, ">5", B1:B10, "apples")'], }, COUNTUNIQUE: { category: 'Statistical', shortDescription: 'Counts the number of unique values in a list of specified values and ranges.', parameters: [{name: 'value1', description: 'A value, cell reference, or range to check for uniqueness. Further values or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=COUNTUNIQUE(1, 2, 2, 3)', '=COUNTUNIQUE(A1:A10)'], }, 'COVARIANCE.P': { category: 'Statistical', shortDescription: 'Returns the covariance between two data sets, population normalized.', parameters: [{name: 'data1', description: 'The first range of numeric values.'}, {name: 'data2', description: 'The second range of numeric values, matching the size of data1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=COVARIANCE.P(A1:A10, B1:B10)'], }, 'COVARIANCE.S': { category: 'Statistical', shortDescription: 'Returns the covariance between two data sets, sample normalized.', parameters: [{name: 'data1', description: 'The first range of numeric values.'}, {name: 'data2', description: 'The second range of numeric values, matching the size of data1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=COVARIANCE.S(A1:A10, B1:B10)'], }, DEVSQ: { category: 'Statistical', shortDescription: 'Returns sum of squared deviations.', parameters: [{name: 'number1', description: 'A number, cell reference, or range included in the sum of squared deviations. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=DEVSQ(1, 2, 3)', '=DEVSQ(A1:A10)'], }, 'EXPON.DIST': { category: 'Statistical', shortDescription: 'Returns density of a exponential distribution.', parameters: [{name: 'x', description: 'The value at which to evaluate the distribution; must be non-negative.'}, {name: 'lambda', description: 'The lambda rate parameter of the distribution; must be greater than 0.'}, {name: 'cumulative', description: 'TRUE returns the cumulative distribution function; FALSE returns the probability density function.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=EXPON.DIST(1, 0.5, TRUE())', '=EXPON.DIST(1, 0.5, FALSE())'], }, 'F.DIST': { category: 'Statistical', shortDescription: 'Returns value of F distribution.', parameters: [{name: 'x', description: 'The value at which to evaluate the distribution; must be non-negative.'}, {name: 'degree1', description: 'The numerator degrees of freedom.'}, {name: 'degree2', description: 'The denominator degrees of freedom.'}, {name: 'cumulative', description: 'TRUE returns the cumulative distribution function; FALSE returns the probability density function.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=F.DIST(2, 3, 10, TRUE())', '=F.DIST(2, 3, 10, FALSE())'], }, 'F.DIST.RT': { category: 'Statistical', shortDescription: 'Returns probability of F right-side distribution.', parameters: [{name: 'x', description: 'The value at which to evaluate the distribution; must be non-negative.'}, {name: 'degree1', description: 'The numerator degrees of freedom.'}, {name: 'degree2', description: 'The denominator degrees of freedom.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=F.DIST.RT(2, 3, 10)'], }, 'F.INV': { category: 'Statistical', shortDescription: 'Returns inverse of F distribution.', parameters: [{name: 'p', description: 'The probability associated with the F distribution, between 0 and 1.'}, {name: 'degree1', description: 'The numerator degrees of freedom.'}, {name: 'degree2', description: 'The denominator degrees of freedom.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=F.INV(0.9, 3, 10)'], }, 'F.INV.RT': { category: 'Statistical', shortDescription: 'Returns inverse of F right-side distribution.', parameters: [{name: 'p', description: 'The right-tail probability associated with the F distribution, between 0 and 1.'}, {name: 'degree1', description: 'The numerator degrees of freedom.'}, {name: 'degree2', description: 'The denominator degrees of freedom.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=F.INV.RT(0.1, 3, 10)'], }, 'F.TEST': { category: 'Statistical', shortDescription: 'Returns f-test value for a dataset.', parameters: [{name: 'array1', description: 'The first range or array of sample values.'}, {name: 'array2', description: 'The second range or array of sample values.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=F.TEST(A1:A10, B1:B10)'], }, FISHER: { category: 'Statistical', shortDescription: 'Returns Fisher transformation value.', parameters: [{name: 'number', description: 'The value to transform; must be greater than -1 and less than 1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=FISHER(0.5)'], }, FISHERINV: { category: 'Statistical', shortDescription: 'Returns inverse Fisher transformation value.', parameters: [{name: 'number', description: 'The value of the Fisher transformation to invert.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=FISHERINV(0.5)'], }, GAMMA: { category: 'Statistical', shortDescription: 'Returns value of Gamma function.', parameters: [{name: 'number', description: 'The value at which to evaluate the Gamma function; must not be zero or a negative integer.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=GAMMA(5)'], }, 'GAMMA.DIST': { category: 'Statistical', shortDescription: 'Returns density of Gamma distribution.', parameters: [{name: 'x', description: 'The value at which to evaluate the distribution; must be non-negative.'}, {name: 'alpha', description: 'The alpha shape parameter of the distribution; must be greater than 0.'}, {name: 'beta', description: 'The beta scale parameter of the distribution; must be greater than 0.'}, {name: 'cumulative', description: 'TRUE returns the cumulative distribution function; FALSE returns the probability density function.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=GAMMA.DIST(2, 1, 2, TRUE())', '=GAMMA.DIST(2, 1, 2, FALSE())'], }, 'GAMMA.INV': { category: 'Statistical', shortDescription: 'Returns inverse Gamma distribution value.', parameters: [{name: 'probability', description: 'The probability associated with the Gamma distribution, between 0 and 1.'}, {name: 'alpha', description: 'The alpha shape parameter of the distribution; must be greater than 0.'}, {name: 'beta', description: 'The beta scale parameter of the distribution; must be greater than 0.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=GAMMA.INV(0.5, 1, 2)'], }, GAMMALN: { category: 'Statistical', shortDescription: 'Returns natural logarithm of Gamma function.', parameters: [{name: 'number', description: 'The value at which to evaluate the natural logarithm of the Gamma function; must be greater than 0.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=GAMMALN(5)'], }, GAUSS: { category: 'Statistical', shortDescription: 'Returns the probability that a member of a standard normal population falls between the mean and `number` standard deviations from the mean.', parameters: [{name: 'number', description: 'The number of standard deviations from the mean, Z, of a standard normal variable.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=GAUSS(2)'], }, GEOMEAN: { category: 'Statistical', shortDescription: 'Returns the geometric average.', parameters: [{name: 'number1', description: 'A number, cell reference, or range to average geometrically; all values must be positive, otherwise the result is #NUM!. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=GEOMEAN(1, 2, 3)', '=GEOMEAN(A1:A10)'], }, HARMEAN: { category: 'Statistical', shortDescription: 'Returns the harmonic average.', parameters: [{name: 'number1', description: 'A number, cell reference, or range to average harmonically; all values must be positive, otherwise the result is #NUM!. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HARMEAN(1, 2, 4)', '=HARMEAN(A1:A10)'], }, 'HYPGEOM.DIST': { category: 'Statistical', shortDescription: 'Returns density of hypergeometric distribution.', parameters: [{name: 'sample_s', description: 'The number of successes in the sample.'}, {name: 'number_sample', description: 'The size of the sample.'}, {name: 'population_s', description: 'The number of successes in the population.'}, {name: 'number_population', description: 'The size of the population.'}, {name: 'cumulative', description: 'TRUE returns the cumulative distribution function; FALSE returns the probability mass function.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=HYPGEOM.DIST(1, 4, 8, 20, FALSE())', '=HYPGEOM.DIST(1, 4, 8, 20, TRUE())'], }, LARGE: { category: 'Statistical', shortDescription: 'Returns k-th largest value in a range.', parameters: [{name: 'range', description: 'The range of values to evaluate.'}, {name: 'k', description: 'The position, from the largest, of the value to return; 1 returns the largest value.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=LARGE(A1:A10, 1)', '=LARGE(A1:A10, 3)'], }, 'LOGNORM.DIST': { category: 'Statistical', shortDescription: 'Returns density of lognormal distribution.', parameters: [{name: 'x', description: 'The value at which to evaluate the distribution; must be greater than 0.'}, {name: 'mean', description: 'The mean of the natural logarithm of the distribution.'}, {name: 'stddev', description: 'The standard deviation of the natural logarithm of the distribution; must be greater than 0.'}, {name: 'cumulative', description: 'TRUE returns the cumulative distribution function; FALSE returns the probability density function.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=LOGNORM.DIST(4, 0, 1, TRUE())', '=LOGNORM.DIST(4, 0, 1, FALSE())'], }, 'LOGNORM.INV': { category: 'Statistical', shortDescription: 'Returns value of inverse lognormal distribution.', parameters: [{name: 'p', description: 'The probability associated with the lognormal distribution, between 0 and 1.'}, {name: 'mean', description: 'The mean of the natural logarithm of the distribution.'}, {name: 'stddev', description: 'The standard deviation of the natural logarithm of the distribution; must be greater than 0.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=LOGNORM.INV(0.5, 0, 1)'], }, MAX: { category: 'Statistical', shortDescription: 'Returns the maximum value in a list of arguments.', parameters: [{name: 'number1', description: 'A number, cell reference, or range compared against the current maximum. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MAX(1, 2, 3)', '=MAX(A1:A10)'], }, MAXA: { category: 'Statistical', shortDescription: 'Returns the maximum value in a list of arguments, counting text and logical values found in ranges.', parameters: [{name: 'value1', description: 'A value, cell reference, or range compared against the current maximum; inside a range, text counts as 0, TRUE as 1 and FALSE as 0, where the non-A variant would skip them, while a non-numeric text passed directly as an argument gives a #VALUE! error. Further values or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MAXA(1, 2, TRUE())', '=MAXA(A1:A10)'], }, MAXIFS: { category: 'Statistical', shortDescription: 'Returns the maximum value of the cells in a range that meet a set of criteria.', parameters: [{name: 'max_range', description: 'The range of cells to evaluate for the maximum.'}, {name: 'criteria_range1', description: 'A range of cells tested against the paired criterion. Further range/criterion pairs can be passed as additional arguments, and only cells meeting every criterion are considered.'}, {name: 'criteria1', description: 'The condition applied to the preceding range, e.g. ">5", "apples", or a cell reference.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MAXIFS(A1:A10, B1:B10, ">5")', '=MAXIFS(A1:A10, B1:B10, ">5", C1:C10, "apples")'], }, MEDIAN: { category: 'Statistical', shortDescription: 'Returns the median of a set of numbers.', parameters: [{name: 'number1', description: 'A number, cell reference, or range included in the median calculation. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MEDIAN(1, 2, 3)', '=MEDIAN(A1:A10)'], }, MIN: { category: 'Statistical', shortDescription: 'Returns the minimum value in a list of arguments.', parameters: [{name: 'number1', description: 'A number, cell reference, or range compared against the current minimum. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MIN(1, 2, 3)', '=MIN(A1:A10)'], }, MINA: { category: 'Statistical', shortDescription: 'Returns the minimum value in a list of arguments, counting text and logical values found in ranges.', parameters: [{name: 'value1', description: 'A value, cell reference, or range compared against the current minimum; inside a range, text counts as 0, TRUE as 1 and FALSE as 0, where the non-A variant would skip them, while a non-numeric text passed directly as an argument gives a #VALUE! error. Further values or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MINA(1, 2, FALSE())', '=MINA(A1:A10)'], }, MINIFS: { category: 'Statistical', shortDescription: 'Returns the minimum value of the cells in a range that meet a set of criteria.', parameters: [{name: 'min_range', description: 'The range of cells to evaluate for the minimum.'}, {name: 'criteria_range1', description: 'A range of cells tested against the paired criterion. Further range/criterion pairs can be passed as additional arguments, and only cells meeting every criterion are considered.'}, {name: 'criteria1', description: 'The condition applied to the preceding range, e.g. ">5", "apples", or a cell reference.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MINIFS(A1:A10, B1:B10, ">5")', '=MINIFS(A1:A10, B1:B10, ">5", C1:C10, "apples")'], }, 'NEGBINOM.DIST': { category: 'Statistical', shortDescription: 'Returns density of negative binomial distribution.', parameters: [{name: 'number_f', description: 'The number of failures.'}, {name: 'number_s', description: 'The threshold number of successes.'}, {name: 'probability_s', description: 'The probability of success on a single trial.'}, {name: 'cumulative', description: 'TRUE returns the cumulative distribution function; FALSE returns the probability mass function.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=NEGBINOM.DIST(3, 5, 0.5, FALSE())', '=NEGBINOM.DIST(3, 5, 0.5, TRUE())'], }, 'NORM.DIST': { category: 'Statistical', shortDescription: 'Returns density of normal distribution.', parameters: [{name: 'x', description: 'The value at which to evaluate the distribution.'}, {name: 'mean', description: 'The arithmetic mean of the distribution.'}, {name: 'stddev', description: 'The standard deviation of the distribution; must be greater than 0.'}, {name: 'cumulative', description: 'TRUE returns the cumulative distribution function; FALSE returns the probability density function.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=NORM.DIST(1, 0, 1, TRUE())', '=NORM.DIST(1, 0, 1, FALSE())'], }, 'NORM.INV': { category: 'Statistical', shortDescription: 'Returns value of inverse normal distribution.', parameters: [{name: 'p', description: 'The probability associated with the normal distribution, between 0 and 1.'}, {name: 'mean', description: 'The arithmetic mean of the distribution.'}, {name: 'stddev', description: 'The standard deviation of the distribution; must be greater than 0.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=NORM.INV(0.5, 0, 1)'], }, 'NORM.S.DIST': { category: 'Statistical', shortDescription: 'Returns density of the standard normal distribution (mean 0, standard deviation 1).', parameters: [{name: 'x', description: 'The value at which to evaluate the standard normal distribution.'}, {name: 'cumulative', description: 'TRUE returns the cumulative distribution function; FALSE returns the probability density function.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=NORM.S.DIST(1, TRUE())', '=NORM.S.DIST(1, FALSE())'], }, 'NORM.S.INV': { category: 'Statistical', shortDescription: 'Returns value of the inverse standard normal distribution (mean 0, standard deviation 1).', parameters: [{name: 'p', description: 'The probability associated with the standard normal distribution, between 0 and 1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=NORM.S.INV(0.5)'], }, 'PERCENTILE.EXC': { category: 'Statistical', shortDescription: 'Returns the k-th percentile of values in a range, exclusive of 0 and 1.', parameters: [{name: 'data', description: 'The range of values to evaluate.'}, {name: 'k', description: 'The percentile to return, exclusive of 0 and 1, e.g. 0.25.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=PERCENTILE.EXC(A1:A10, 0.25)'], }, 'PERCENTILE.INC': { category: 'Statistical', shortDescription: 'Returns the k-th percentile of values in a range, inclusive of 0 and 1.', parameters: [{name: 'data', description: 'The range of values to evaluate.'}, {name: 'k', description: 'The percentile to return, inclusive of 0 and 1, e.g. 0.9.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=PERCENTILE.INC(A1:A10, 0.9)'], }, PHI: { category: 'Statistical', shortDescription: 'Returns probability density of normal distribution.', parameters: [{name: 'x', description: 'The value at which to evaluate the standard normal probability density function.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=PHI(1)'], }, 'POISSON.DIST': { category: 'Statistical', shortDescription: 'Returns density of Poisson distribution.', parameters: [{name: 'x', description: 'The number of events; must be non-negative.'}, {name: 'mean', description: 'The expected number of events; must be non-negative.'}, {name: 'cumulative', description: 'TRUE returns the cumulative distribution function; FALSE returns the probability mass function.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=POISSON.DIST(3, 5, FALSE())', '=POISSON.DIST(3, 5, TRUE())'], }, 'QUARTILE.EXC': { category: 'Statistical', shortDescription: 'Returns the quartile of a data set, based on exclusive percentile values.', parameters: [{name: 'data', description: 'The range of values to evaluate.'}, {name: 'quart', description: 'The quartile to return, exclusive of 0 and 4, an integer from 1 to 3.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=QUARTILE.EXC(A1:A10, 1)'], }, 'QUARTILE.INC': { category: 'Statistical', shortDescription: 'Returns the quartile of a data set, based on inclusive percentile values.', parameters: [{name: 'data', description: 'The range of values to evaluate.'}, {name: 'quart', description: 'The quartile to return, inclusive of 0 and 4, an integer from 0 to 4.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=QUARTILE.INC(A1:A10, 3)'], }, RSQ: { category: 'Statistical', shortDescription: 'Returns the squared correlation coefficient between two data sets.', parameters: [{name: 'data1', description: 'The range of dependent (y) values.'}, {name: 'data2', description: 'The range of independent (x) values, matching the size of data1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=RSQ(A1:A10, B1:B10)'], }, SKEW: { category: 'Statistical', shortDescription: 'Returns skewness of a sample.', parameters: [{name: 'number1', description: 'A number, cell reference, or range included in the sample skewness calculation. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SKEW(1, 2, 3, 10)', '=SKEW(A1:A10)'], }, 'SKEW.P': { category: 'Statistical', shortDescription: 'Returns skewness of a population.', parameters: [{name: 'number1', description: 'A number, cell reference, or range included in the population skewness calculation. Further numbers or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SKEW.P(1, 2, 3, 10)', '=SKEW.P(A1:A10)'], }, SLOPE: { category: 'Statistical', shortDescription: 'Returns the slope of a linear regression line.', parameters: [{name: 'array1', description: 'The range of dependent (y) values.'}, {name: 'array2', description: 'The range of independent (x) values, matching the size of array1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SLOPE(A1:A10, B1:B10)'], }, SMALL: { category: 'Statistical', shortDescription: 'Returns k-th smallest value in a range.', parameters: [{name: 'range', description: 'The range of values to evaluate.'}, {name: 'k', description: 'The position, from the smallest, of the value to return; 1 returns the smallest value.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SMALL(A1:A10, 1)', '=SMALL(A1:A10, 3)'], }, STANDARDIZE: { category: 'Statistical', shortDescription: 'Returns normalized value wrt expected value and standard deviation.', parameters: [{name: 'x', description: 'The value to normalize.'}, {name: 'mean', description: 'The arithmetic mean of the distribution.'}, {name: 'stddev', description: 'The standard deviation of the distribution; must be greater than 0.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=STANDARDIZE(5, 3, 2)'], }, 'STDEV.P': { category: 'Statistical', shortDescription: 'Returns standard deviation of a population.', parameters: [{name: 'value1', description: 'A number, cell reference, or range included in the population standard deviation calculation. Further values or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=STDEV.P(1, 2, 3)', '=STDEV.P(A1:A10)'], }, 'STDEV.S': { category: 'Statistical', shortDescription: 'Returns standard deviation of a sample.', parameters: [{name: 'value1', description: 'A number, cell reference, or range included in the sample standard deviation calculation. Further values or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=STDEV.S(1, 2, 3)', '=STDEV.S(A1:A10)'], }, STDEVA: { category: 'Statistical', shortDescription: 'Returns standard deviation of a sample, counting text and logical values found in ranges.', parameters: [{name: 'value1', description: 'A value, cell reference, or range included in the sample standard deviation calculation; inside a range, text counts as 0, TRUE as 1 and FALSE as 0, where the non-A variant would skip them, while a non-numeric text passed directly as an argument gives a #VALUE! error. Further values or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=STDEVA(1, TRUE(), 3)', '=STDEVA(A1:A10)'], }, STDEVPA: { category: 'Statistical', shortDescription: 'Returns standard deviation of a population, counting text and logical values found in ranges.', parameters: [{name: 'value1', description: 'A value, cell reference, or range included in the population standard deviation calculation; inside a range, text counts as 0, TRUE as 1 and FALSE as 0, where the non-A variant would skip them, while a non-numeric text passed directly as an argument gives a #VALUE! error. Further values or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=STDEVPA(1, TRUE(), 3)', '=STDEVPA(A1:A10)'], }, STEYX: { category: 'Statistical', shortDescription: 'Returns the standard error of the predicted y value for each x value in the linear regression of array1 on array2.', parameters: [{name: 'array1', description: 'The range of dependent (y) values.'}, {name: 'array2', description: 'The range of independent (x) values, matching the size of array1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=STEYX(A1:A10, B1:B10)'], }, 'T.DIST': { category: 'Statistical', shortDescription: 'Returns density of Student-t distribution.', parameters: [{name: 'x', description: 'The value at which to evaluate the distribution.'}, {name: 'degrees', description: 'The number of degrees of freedom.'}, {name: 'cumulative', description: 'TRUE returns the cumulative distribution function; FALSE returns the probability density function.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=T.DIST(1, 10, TRUE())', '=T.DIST(1, 10, FALSE())'], }, 'T.DIST.2T': { category: 'Statistical', shortDescription: 'Returns density of Student-t distribution, both-sided.', parameters: [{name: 'x', description: 'The value at which to evaluate the distribution; must be non-negative.'}, {name: 'degrees', description: 'The number of degrees of freedom.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=T.DIST.2T(1, 10)'], }, 'T.DIST.RT': { category: 'Statistical', shortDescription: 'Returns density of Student-t distribution, right-tailed.', parameters: [{name: 'x', description: 'The value at which to evaluate the distribution.'}, {name: 'degrees', description: 'The number of degrees of freedom.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=T.DIST.RT(1, 10)'], }, 'T.INV': { category: 'Statistical', shortDescription: 'Returns inverse Student-t distribution.', parameters: [{name: 'p', description: 'The probability associated with the left-tailed Student-t distribution, between 0 and 1.'}, {name: 'degrees', description: 'The number of degrees of freedom.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=T.INV(0.9, 10)'], }, 'T.INV.2T': { category: 'Statistical', shortDescription: 'Returns inverse Student-t distribution, both-sided.', parameters: [{name: 'p', description: 'The probability associated with the two-tailed Student-t distribution, between 0 and 1.'}, {name: 'degrees', description: 'The number of degrees of freedom.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=T.INV.2T(0.1, 10)'], }, 'T.TEST': { category: 'Statistical', shortDescription: 'Returns t-test value for a dataset.', parameters: [{name: 'array1', description: 'The first range or array of sample values.'}, {name: 'array2', description: 'The second range or array of sample values.'}, {name: 'tails', description: 'The number of distribution tails to use: 1 for a one-tailed test, or 2 for a two-tailed test.'}, {name: 'type', description: 'The kind of t-test to perform: 1 for paired, 2 for two-sample equal variance, or 3 for two-sample unequal variance.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=T.TEST(A1:A10, B1:B10, 2, 1)'], }, TDIST: { category: 'Statistical', shortDescription: 'Returns density of Student-t distribution, both-sided or right-tailed.', parameters: [{name: 'x', description: 'The value at which to evaluate the distribution; must be non-negative.'}, {name: 'degrees', description: 'The number of degrees of freedom.'}, {name: 'tails', description: 'The number of distribution tails to return: 1 for right-tailed, or 2 for two-tailed.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=TDIST(1, 10, 1)', '=TDIST(1, 10, 2)'], }, 'VAR.P': { category: 'Statistical', shortDescription: 'Returns variance of a population.', parameters: [{name: 'value1', description: 'A number, cell reference, or range included in the population variance calculation. Further values or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=VAR.P(1, 2, 3)', '=VAR.P(A1:A10)'], }, 'VAR.S': { category: 'Statistical', shortDescription: 'Returns variance of a sample.', parameters: [{name: 'value1', description: 'A number, cell reference, or range included in the sample variance calculation. Further values or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=VAR.S(1, 2, 3)', '=VAR.S(A1:A10)'], }, VARA: { category: 'Statistical', shortDescription: 'Returns variance of a sample, counting text and logical values found in ranges.', parameters: [{name: 'value1', description: 'A value, cell reference, or range included in the sample variance calculation; inside a range, text counts as 0, TRUE as 1 and FALSE as 0, where the non-A variant would skip them, while a non-numeric text passed directly as an argument gives a #VALUE! error. Further values or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=VARA(1, TRUE(), 3)', '=VARA(A1:A10)'], }, VARPA: { category: 'Statistical', shortDescription: 'Returns variance of a population, counting text and logical values found in ranges.', parameters: [{name: 'value1', description: 'A value, cell reference, or range included in the population variance calculation; inside a range, text counts as 0, TRUE as 1 and FALSE as 0, where the non-A variant would skip them, while a non-numeric text passed directly as an argument gives a #VALUE! error. Further values or ranges can be passed as additional arguments.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=VARPA(1, TRUE(), 3)', '=VARPA(A1:A10)'], }, 'WEIBULL.DIST': { category: 'Statistical', shortDescription: 'Returns density of Weibull distribution.', parameters: [{name: 'x', description: 'The value at which to evaluate the distribution; must be non-negative.'}, {name: 'alpha', description: 'The alpha shape parameter of the distribution; must be greater than 0.'}, {name: 'beta', description: 'The beta scale parameter of the distribution; must be greater than 0.'}, {name: 'cumulative', description: 'TRUE returns the cumulative distribution function; FALSE returns the probability density function.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=WEIBULL.DIST(2, 1, 2, TRUE())', '=WEIBULL.DIST(2, 1, 2, FALSE())'], }, 'Z.TEST': { category: 'Statistical', shortDescription: 'Returns z-test value for a dataset.', parameters: [{name: 'array', description: 'The range or array of sample values to test against.'}, {name: 'x', description: 'The value to test.'}, {name: 'sigma', description: 'The known population standard deviation; when omitted, the sample standard deviation of array is used instead.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=Z.TEST(A1:A10, 5)', '=Z.TEST(A1:A10, 5, 2)'], }, } diff --git a/src/interpreter/functionMetadata/categories/text.ts b/src/interpreter/functionMetadata/categories/text.ts index 9672db3045..f868967919 100644 --- a/src/interpreter/functionMetadata/categories/text.ts +++ b/src/interpreter/functionMetadata/categories/text.ts @@ -14,175 +14,175 @@ export const TEXT_DOCS: Record = { category: 'Text', shortDescription: 'Converts a number into a character according to the current code table.', parameters: [{name: 'number', description: 'A code between 1 and 255 that identifies the character to return.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CHAR(65)', '=CHAR(97)'], }, CLEAN: { category: 'Text', shortDescription: 'Returns text that has been "cleaned" of line breaks and other non-printable characters.', parameters: [{name: 'text', description: 'The text to strip of non-printable characters.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CLEAN(A1)', '=CLEAN("Hello"&CHAR(10)&"World")'], }, CODE: { category: 'Text', shortDescription: 'Returns a numeric code for the first character in a text string.', parameters: [{name: 'text', description: 'The text whose first character\'s numeric code is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CODE("A")', '=CODE(A1)'], }, CONCATENATE: { category: 'Text', shortDescription: 'Combines several text strings into one string.', parameters: [{name: 'text1', description: 'A text value, cell reference, or range to include in the joined string. Further text values or ranges can be passed as additional arguments and are appended in order.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=CONCATENATE("Hello", " ", "World")', '=CONCATENATE(A1, A2, A3)'], }, EXACT: { category: 'Text', shortDescription: 'Returns TRUE if both text strings are exactly the same.', parameters: [{name: 'text1', description: 'The first text value to compare.'}, {name: 'text2', description: 'The second text value to compare, matched case-sensitively against text1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=EXACT("Apple", "apple")', '=EXACT(A1, B1)'], }, FIND: { category: 'Text', shortDescription: 'Returns the location of one text string inside another.', parameters: [{name: 'search_string', description: 'The text to search for. The search is case-sensitive.'}, {name: 'text', description: 'The text to search within.'}, {name: 'start_position', description: 'The 1-based character position in text at which to start searching. Defaults to 1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=FIND("o", "Hello World")', '=FIND("o", "Hello World", 6)'], }, LEFT: { category: 'Text', shortDescription: 'Extracts a given number of characters from the left side of a text string.', parameters: [{name: 'text', description: 'The text to extract characters from.'}, {name: 'number', description: 'The number of characters to extract, counting from the left. Defaults to 1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=LEFT("Hello", 2)', '=LEFT(A1)'], }, LEN: { category: 'Text', shortDescription: 'Returns length of a given text.', parameters: [{name: 'text', description: 'The text whose number of characters is counted.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=LEN("Hello")', '=LEN(A1)'], }, LOWER: { category: 'Text', shortDescription: 'Returns text converted to lowercase.', parameters: [{name: 'text', description: 'The text to convert to lowercase.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=LOWER("HELLO")', '=LOWER(A1)'], }, MID: { category: 'Text', shortDescription: 'Returns a substring of a given length starting from start_position.', parameters: [{name: 'text', description: 'The text to extract a substring from.'}, {name: 'start_position', description: 'The 1-based position of the first character to extract.'}, {name: 'length', description: 'The number of characters to extract, starting at start_position.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=MID("Hello World", 7, 5)', '=MID(A1, 1, 3)'], }, PROPER: { category: 'Text', shortDescription: 'Capitalizes words given text string.', parameters: [{name: 'text', description: 'The text whose words are capitalized, with the first letter of each word converted to uppercase and the rest to lowercase.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=PROPER("hello world")', '=PROPER(A1)'], }, REPLACE: { category: 'Text', shortDescription: 'Replaces substring of a text of a given length that starts at given position.', parameters: [{name: 'text', description: 'The text in which characters are replaced.'}, {name: 'start_position', description: 'The 1-based position of the first character to replace.'}, {name: 'length', description: 'The number of characters to replace, starting at start_position.'}, {name: 'new_text', description: 'The text that replaces the removed characters.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=REPLACE("Hello World", 7, 5, "There")', '=REPLACE(A1, 1, 3, "New")'], }, REPT: { category: 'Text', shortDescription: 'Repeats text a given number of times.', parameters: [{name: 'text', description: 'The text to repeat.'}, {name: 'number', description: 'The number of times to repeat text.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=REPT("ab", 3)', '=REPT(A1, 2)'], }, RIGHT: { category: 'Text', shortDescription: 'Extracts a given number of characters from the right side of a text string.', parameters: [{name: 'text', description: 'The text to extract characters from.'}, {name: 'number', description: 'The number of characters to extract, counting from the right. Defaults to 1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=RIGHT("Hello", 2)', '=RIGHT(A1)'], }, SEARCH: { category: 'Text', shortDescription: 'Returns the location of search_string inside text. Case-insensitive. Allows the use of wildcards.', parameters: [{name: 'search_string', description: 'The text to search for. The search is case-insensitive and may contain "?" and "*" wildcards.'}, {name: 'text', description: 'The text to search within.'}, {name: 'start_position', description: 'The 1-based character position in text at which to start searching. Defaults to 1.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SEARCH("o", "Hello World")', '=SEARCH("w*d", "Hello World")'], }, SPLIT: { category: 'Text', shortDescription: 'Divides the provided text using the space character as a separator and returns the substring at the zero-based position specified by the second argument. For example, SPLIT("Lorem ipsum", 0) returns "Lorem" and SPLIT("Lorem ipsum", 1) returns "ipsum".', parameters: [{name: 'text', description: 'The text to split on the space character.'}, {name: 'index', description: 'The zero-based position of the chunk to return after splitting.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SPLIT("Lorem ipsum", 0)', '=SPLIT(A1, 1)'], }, SUBSTITUTE: { category: 'Text', shortDescription: 'Returns a string where occurrences of old_text are replaced by new_text. Replaces only specific occurrence if last parameter is provided.', parameters: [{name: 'text', description: 'The text in which occurrences of old_text are replaced.'}, {name: 'old_text', description: 'The text to search for and replace.'}, {name: 'new_text', description: 'The text that replaces each matched occurrence of old_text.'}, {name: 'occurrence', description: 'The 1-based occurrence of old_text to replace. When omitted, every occurrence is replaced.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=SUBSTITUTE("a-b-c", "-", ":")', '=SUBSTITUTE("a-b-c", "-", ":", 2)'], }, T: { category: 'Text', shortDescription: 'Returns text if given value is text, empty string otherwise.', parameters: [{name: 'value', description: 'The value to check; returned unchanged if it is text, otherwise an empty string is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=T("Hello")', '=T(A1)', '=T(123)'], }, TEXT: { category: 'Text', - shortDescription: 'Converts a number into text according to a given format. By default it accepts the same formats as the [`dateFormats`](https://hyperformula.handsontable.com/docs/api/interfaces/configparams.html#dateformats) option, and can be further customized with the [`stringifyDateTime`](https://hyperformula.handsontable.com/docs/api/interfaces/configparams.html#stringifydatetime) and [`stringifyCurrency`](https://hyperformula.handsontable.com/docs/api/interfaces/configparams.html#stringifycurrency) options.', + shortDescription: 'Converts a number into text according to a given format. By default it accepts the same formats as the [`dateFormats`](https://handsontable.com/docs/hyperformula/api/interfaces/configparams.html#dateformats) option, and can be further customized with the [`stringifyDateTime`](https://handsontable.com/docs/hyperformula/api/interfaces/configparams.html#stringifydatetime) and [`stringifyCurrency`](https://handsontable.com/docs/hyperformula/api/interfaces/configparams.html#stringifycurrency) options.', parameters: [{name: 'number', description: 'The number or date serial value to format as text.'}, {name: 'format', description: 'The format pattern used to render number as text, e.g. "0.00" or "YYYY-MM-DD".'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=TEXT(1234.5, "0.00")', '=TEXT(TODAY(), "YYYY-MM-DD")'], }, TEXTJOIN: { category: 'Text', shortDescription: 'Joins text from multiple strings and/or ranges with a delimiter. Supports array/range delimiters that cycle through gaps. When ignore_empty is TRUE, empty strings are skipped. Returns #VALUE! if result exceeds 32,767 characters.', parameters: [{name: 'delimiter', description: 'The text (or range/array of texts, cycled through the gaps) inserted between joined values.'}, {name: 'ignore_empty', description: 'When TRUE, empty strings among the joined values are skipped instead of producing an extra delimiter.'}, {name: 'text1', description: 'A text value, cell reference, or range to join. Further text values or ranges can be passed as additional arguments and are appended in order.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=TEXTJOIN(", ", TRUE(), A1:A3)', '=TEXTJOIN("-", FALSE(), "a", "b", "c")'], }, TRIM: { category: 'Text', shortDescription: 'Strips extra spaces from text.', parameters: [{name: 'text', description: 'The text to strip of leading, trailing, and repeated inner spaces.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=TRIM(" Hello World ")', '=TRIM(A1)'], }, UNICHAR: { category: 'Text', shortDescription: 'Returns the character created by using provided code point.', parameters: [{name: 'number', description: 'The Unicode code point that identifies the character to return.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=UNICHAR(65)', '=UNICHAR(8364)'], }, UNICODE: { category: 'Text', shortDescription: 'Returns the Unicode code point of a first character of a text.', parameters: [{name: 'text', description: 'The text whose first character\'s Unicode code point is returned.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=UNICODE("A")', '=UNICODE(A1)'], }, UPPER: { category: 'Text', shortDescription: 'Returns text converted to uppercase.', parameters: [{name: 'text', description: 'The text to convert to uppercase.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=UPPER("hello")', '=UPPER(A1)'], }, VALUE: { category: 'Text', shortDescription: 'Parses a number, date, time, datetime, currency, or percentage from a text string.', parameters: [{name: 'text', description: 'The text to parse as a number, date, time, datetime, currency, or percentage.'}], - documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html', + documentationUrl: 'https://handsontable.com/docs/hyperformula/guide/built-in-functions.html', examples: ['=VALUE("123")', '=VALUE("50%")', '=VALUE(A1)'], }, }