`;
}
diff --git a/docs/examples/sorting-data/example1.ts b/docs/examples/sorting-data/example1.ts
index 8454d6382..00cd2cdf5 100644
--- a/docs/examples/sorting-data/example1.ts
+++ b/docs/examples/sorting-data/example1.ts
@@ -3,7 +3,7 @@ import HyperFormula from 'hyperformula';
console.log(
`%c Using HyperFormula ${HyperFormula.version}`,
- 'color: blue; font-weight: bold'
+ 'color: blue; font-weight: bold',
);
/* end:skip-in-compilation */
@@ -37,7 +37,7 @@ hf.setCellContents(
col: 0,
sheet: sheetId,
},
- tableData
+ tableData,
);
/**
diff --git a/docs/examples/undo-redo/example1.css b/docs/examples/undo-redo/example1.css
index 224282eb7..2581c230c 100644
--- a/docs/examples/undo-redo/example1.css
+++ b/docs/examples/undo-redo/example1.css
@@ -3,7 +3,7 @@
color: #606c76;
font-family: sans-serif;
font-size: 14px;
- font-weight: 300;
+ font-weight: 400;
letter-spacing: .01em;
line-height: 1.6;
-webkit-box-sizing: border-box;
diff --git a/docs/examples/undo-redo/example1.js b/docs/examples/undo-redo/example1.js
index 9a3be5b48..92f191f70 100644
--- a/docs/examples/undo-redo/example1.js
+++ b/docs/examples/undo-redo/example1.js
@@ -3,7 +3,7 @@ import HyperFormula from 'hyperformula';
console.log(
`%c Using HyperFormula ${HyperFormula.version}`,
- 'color: blue; font-weight: bold'
+ 'color: blue; font-weight: bold',
);
/* end:skip-in-compilation */
@@ -31,7 +31,7 @@ hf.setCellContents(
col: 0,
sheet: sheetId,
},
- tableData
+ tableData,
);
// Clear the undo stack to prevent undoing the initialization steps.
hf.clearUndoStack();
diff --git a/docs/examples/undo-redo/example1.ts b/docs/examples/undo-redo/example1.ts
index 3b03b8034..03f0b313f 100644
--- a/docs/examples/undo-redo/example1.ts
+++ b/docs/examples/undo-redo/example1.ts
@@ -3,7 +3,7 @@ import HyperFormula from 'hyperformula';
console.log(
`%c Using HyperFormula ${HyperFormula.version}`,
- 'color: blue; font-weight: bold'
+ 'color: blue; font-weight: bold',
);
/* end:skip-in-compilation */
@@ -31,7 +31,7 @@ hf.setCellContents(
col: 0,
sheet: sheetId,
},
- tableData
+ tableData,
);
// Clear the undo stack to prevent undoing the initialization steps.
diff --git a/docs/guide/built-in-functions.md b/docs/guide/built-in-functions.md
index 1ed8e18fb..adb05c579 100644
--- a/docs/guide/built-in-functions.md
+++ b/docs/guide/built-in-functions.md
@@ -112,15 +112,15 @@ Total number of functions: **{{ $page.functionsCount }}**
| HEX2BIN | The result is the binary number for the hexadecimal number entered. | HEX2BIN(Number, Places) |
| HEX2DEC | The result is the decimal number for the hexadecimal number entered. | HEX2DEC(Number) |
| HEX2OCT | The result is the octal number for the hexadecimal number entered. | HEX2OCT(Number, Places) |
-| IMABS | Returns module of a complex number. | IMABS(Complex) |
+| IMABS | Returns modulus of a complex number. | IMABS(Complex) |
| IMAGINARY | Returns imaginary part of a complex number. | IMAGINARY(Complex) |
| IMARGUMENT | Returns argument of a complex number. | IMARGUMENT(Complex) |
| IMCONJUGATE | Returns conjugate of a complex number. | IMCONJUGATE(Complex) |
| IMCOS | Returns cosine of a complex number. | IMCOS(Complex) |
| IMCOSH | Returns hyperbolic cosine of a complex number. | IMCOSH(Complex) |
-| IMCOT | Returns cotangens of a complex number. | IMCOT(Complex) |
-| IMCSC | Returns cosecans of a complex number. | IMCSC(Complex) |
-| IMCSCH | Returns hyperbolic cosecans of a complex number. | IMCSCH(Complex) |
+| IMCOT | Returns cotangent of a complex number. | IMCOT(Complex) |
+| IMCSC | Returns cosecant of a complex number. | IMCSC(Complex) |
+| IMCSCH | Returns hyperbolic cosecant of a complex number. | IMCSCH(Complex) |
| IMDIV | Divides two complex numbers. | IMDIV(Complex1, Complex2) |
| IMEXP | Returns exponent of a complex number. | IMEXP(Complex) |
| IMLN | Returns natural logarithm of a complex number. | IMLN(Complex) |
@@ -212,21 +212,22 @@ Total number of functions: **{{ $page.functionsCount }}**
### Lookup and reference
-| Function ID | Description | Syntax |
-|:------------|:-----------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------|
-| ADDRESS | Returns a cell reference as a string. | ADDRESS(Row, Column[, AbsoluteRelativeMode[, UseA1Notation[, Sheet]]]) |
-| CHOOSE | Uses an index to return a value from a list of values. | CHOOSE(Index, Value1, Value2, ...ValueN) |
-| COLUMN | Returns column number of a given reference or formula reference if argument not provided. | COLUMNS([Reference]) |
-| COLUMNS | Returns the number of columns in the given reference. | COLUMNS(Array) |
-| FORMULATEXT | Returns a formula in a given cell as a string. | FORMULATEXT(Reference) |
-| HLOOKUP | Searches horizontally with reference to adjacent cells to the bottom. | HLOOKUP(Search_Criterion, Array, Index, Sort_Order) |
-| HYPERLINK | Stores the url in the cell's metadata. It can be read using method [`getCellHyperlink`](../api/classes/hyperformula.md#getcellhyperlink) | HYPERLINK(Url[, LinkLabel]) |
-| INDEX | Returns the contents of a cell specified by row and column number. The column number is optional and defaults to 1. | INDEX(Range, Row [, Column]) |
-| MATCH | Returns the relative position of an item in an array that matches a specified value. | MATCH(Searchcriterion, Lookuparray [, MatchType]) |
-| OFFSET | Returns the value of a cell offset by a certain number of rows and columns from a given reference point. | OFFSET(Reference, Rows, Columns, Height, Width) |
-| ROW | Returns row number of a given reference or formula reference if argument not provided. | ROW([Reference]) |
-| ROWS | Returns the number of rows in the given reference. | ROWS(Array) |
-| VLOOKUP | Searches vertically with reference to adjacent cells to the right. | VLOOKUP(Search_Criterion, Array, Index, Sort_Order) |
+| Function ID | Description | Syntax |
+|:------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------|
+| ADDRESS | Returns a cell reference as a string. | ADDRESS(Row, Column[, AbsoluteRelativeMode[, UseA1Notation[, Sheet]]]) |
+| CHOOSE | Uses an index to return a value from a list of values. | CHOOSE(Index, Value1, Value2, ...ValueN) |
+| COLUMN | Returns column number of a given reference or formula reference if argument not provided. | COLUMNS([Reference]) |
+| COLUMNS | Returns the number of columns in the given reference. | COLUMNS(Array) |
+| FORMULATEXT | Returns a formula in a given cell as a string. | FORMULATEXT(Reference) |
+| HLOOKUP | Searches horizontally with reference to adjacent cells to the bottom. | HLOOKUP(Search_Criterion, Array, Index, Sort_Order) |
+| HYPERLINK | Stores the url in the cell's metadata. It can be read using method [`getCellHyperlink`](../api/classes/hyperformula.md#getcellhyperlink) | HYPERLINK(Url[, LinkLabel]) |
+| INDEX | Returns the contents of a cell specified by row and column number. The column number is optional and defaults to 1. | INDEX(Range, Row [, Column]) |
+| MATCH | Returns the relative position of an item in an array that matches a specified value. | MATCH(Searchcriterion, LookupArray [, MatchType]) |
+| OFFSET | Returns the value of a cell offset by a certain number of rows and columns from a given reference point. | OFFSET(Reference, Rows, Columns, Height, Width) |
+| ROW | Returns row number of a given reference or formula reference if argument not provided. | ROW([Reference]) |
+| ROWS | Returns the number of rows in the given reference. | ROWS(Array) |
+| VLOOKUP | Searches vertically with reference to adjacent cells to the right. | VLOOKUP(Search_Criterion, Array, Index, Sort_Order) |
+| XLOOKUP | 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. | XLOOKUP(LookupValue, LookupArray, ReturnArray, [IfNotFound], [MatchMode], [SearchMode]) |
### Math and trigonometry
@@ -254,7 +255,7 @@ Total number of functions: **{{ $page.functionsCount }}**
| COT | Returns the cotangent of the given angle (in radians). | COT(Number) |
| COTH | Returns the hyperbolic cotangent of the given value. | COTH(Number) |
| COUNTUNIQUE | Counts the number of unique values in a list of specified values and ranges. | COUNTUNIQUE(Value1, Value2, ...ValueN) |
-| CSC | Returns the cosecans of the given angle (in radians). | CSC(Number) |
+| CSC | Returns the cosecant of the given angle (in radians). | CSC(Number) |
| CSCH | Returns the hyperbolic cosecant of the given value. | CSCH(Number) |
| DECIMAL | Converts text with characters from a number system to a positive integer in the base radix given. | DECIMAL("Text", Radix) |
| DEGREES | Converts radians into degrees. | DEGREES(Number) |
@@ -268,7 +269,7 @@ Total number of functions: **{{ $page.functionsCount }}**
| GCD | Computes greatest common divisor of numbers. | GCD(Number1, Number2, ...NumberN) |
| INT | Rounds a number down to the nearest integer. | INT(Number) |
| ISO.CEILING | Rounds a number up to the nearest multiple of Significance. | ISO.CEILING(Number[, Significance]) |
-| LCM | Computes least common multiplicity of numbers. | LCM(Number1, Number2, ...NumberN) |
+| LCM | Computes least common multiple of numbers. | LCM(Number1, Number2, ...NumberN) |
| LN | Returns the natural logarithm based on the constant e of a number. | LN(Number) |
| LOG | Returns the logarithm of a number to the specified base. | LOG(Number, Base) |
| LOG10 | Returns the base-10 logarithm of a number. | LOG10(Number) |
@@ -349,8 +350,8 @@ Total number of functions: **{{ $page.functionsCount }}**
| BESSELJ | Returns value of Bessel function. | BESSELJ(x, n) |
| BESSELK | Returns value of Bessel function. | BESSELK(x, n) |
| BESSELY | Returns value of Bessel function. | BESSELY(x, n) |
-| BETA.DIST | Returns the denisty of Beta distribution. | BETA.DIST(Number1, Number2, Number3, Boolean[, Number4[, Number5]]) |
-| BETADIST | Returns the denisty of Beta distribution. | BETADIST(Number1, Number2, Number3, Boolean[, Number4[, Number5]]) |
+| BETA.DIST | Returns the density of Beta distribution. | BETA.DIST(Number1, Number2, Number3, Boolean[, Number4[, Number5]]) |
+| BETADIST | Returns the density of Beta distribution. | BETADIST(Number1, Number2, Number3, Boolean[, Number4[, Number5]]) |
| BETA.INV | Returns the inverse Beta distribution value. | BETA.INV(Number1, Number2, Number3[, Number4[, Number5]]) |
| BETAINV | Returns the inverse of Beta distribution value. | BETAINV(Number1, Number2, Number3[, Number4[, Number5]]) |
| BINOM.DIST | Returns density of binomial distribution. | BINOM.DIST(Number1, Number2, Number3, Boolean) |
@@ -403,7 +404,7 @@ Total number of functions: **{{ $page.functionsCount }}**
| GAMMALN.PRECISE | Returns natural logarithm of Gamma function. | GAMMALN.PRECISE(Number) |
| GAMMA.INV | Returns inverse Gamma distribution value. | GAMMA.INV(Number1, Number2, Number3) |
| GAMMAINV | Returns inverse Gamma distribution value. | GAMMAINV(Number1, Number2, Number3) |
-| GAUSS | Returns the probability of gaussian variable fall more than this many times standard deviation from mean. | GAUSS(Number) |
+| GAUSS | Returns the probability of gaussian variable falling more than this many times standard deviation from mean. | GAUSS(Number) |
| GEOMEAN | Returns the geometric average. | GEOMEAN(Number1, Number2, ...NumberN) |
| HARMEAN | Returns the harmonic average. | HARMEAN(Number1, Number2, ...NumberN) |
| HYPGEOMDIST | Returns density of hypergeometric distribution. | HYPGEOMDIST(Number1, Number2, Number3, Number4, Boolean) |
diff --git a/docs/guide/cell-references.md b/docs/guide/cell-references.md
index e2662ee2b..b3b286bda 100644
--- a/docs/guide/cell-references.md
+++ b/docs/guide/cell-references.md
@@ -205,6 +205,25 @@ In contrast to Google Sheets or Microsoft Excel, HyperFormula doesn't treat sing
- [Types of operators: Reference operators](/guide/types-of-operators.md#reference-operators)
- [API reference: Ranges](/api/classes/hyperformula.md#ranges)
+## Sheet names in references
+
+When referencing cells or ranges from different sheets, you can specify the sheet name using the following syntax:
+
+```
+=SheetName!CellReference
+```
+
+If a sheet name contains any character other than `[A-Za-z\u00C0-\u02AF0-9_]`, it must be enclosed in single quotes. E.g.:
+```javascript
+=Data2023!A1
+=Sheet_1!B2
+=ÄöüSheet!C3
+='My Sheet'!A1
+='Sales-2023'!B2
+='Data (Q1)'!C3
+='Sheet #1'!D4
+```
+
## Circular references
Since HyperFormula does not embed any UI, it allows for the input of a circular reference into a cell. Compared to popular spreadsheets,
diff --git a/docs/guide/compatibility-with-microsoft-excel.md b/docs/guide/compatibility-with-microsoft-excel.md
index 9f96283d4..65f252f4e 100644
--- a/docs/guide/compatibility-with-microsoft-excel.md
+++ b/docs/guide/compatibility-with-microsoft-excel.md
@@ -1,6 +1,6 @@
# Compatibility with Microsoft Excel
-Achieve nearly full compatibility wih Microsoft Excel, using the right HyperFormula configuration.
+Achieve nearly full compatibility with Microsoft Excel, using the right HyperFormula configuration.
**Contents:**
[[toc]]
diff --git a/docs/guide/configuration-options.md b/docs/guide/configuration-options.md
index 73a082a8d..4f3076065 100644
--- a/docs/guide/configuration-options.md
+++ b/docs/guide/configuration-options.md
@@ -17,7 +17,7 @@ static method called to initiate a new instance of HyperFormula.
// define options
const options = {
licenseKey: 'gpl-v3',
- precisionRounding: 10,
+ precisionRounding: 9,
nullDate: { year: 1900, month: 1, day: 1 },
functionArgSeparator: '.'
};
diff --git a/docs/guide/custom-functions.md b/docs/guide/custom-functions.md
index 14ace0edd..3444cdacd 100644
--- a/docs/guide/custom-functions.md
+++ b/docs/guide/custom-functions.md
@@ -363,7 +363,7 @@ This demo contains the implementation of both the
[`DOUBLE_RANGE`](#advanced-custom-function-example) custom functions.