Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
5c3df0c
feat: add TAKE function
Tobiadefami Aug 4, 2026
efde710
docs: align TAKE comments with array plugin style
Tobiadefami Aug 4, 2026
d76e2b4
fix: return CALC for empty TAKE results
Tobiadefami Aug 5, 2026
2174419
docs: document TAKE CALC behavior
Tobiadefami Aug 5, 2026
1f3e435
docs: link TAKE PR in changelog
Tobiadefami Aug 6, 2026
a66b330
fix: refine TAKE argument and error handling
Tobiadefami Aug 7, 2026
14da55a
fix: predict TAKE size from literal counts
Tobiadefami Aug 7, 2026
7ed7256
perf: avoid materializing unused TAKE cells
Tobiadefami Aug 7, 2026
b902d53
i18n: use Excel's official names for TAKE, VSTACK and HSTACK
sequba Aug 10, 2026
4172023
fix: avoid breaking language packs for TAKE
Tobiadefami Aug 11, 2026
d6708dc
fix: enforce TAKE arity locally
Tobiadefami Aug 11, 2026
3335d99
docs: remove unrelated translation policy
Tobiadefami Aug 11, 2026
86a6a93
fix: preserve TAKE result identity
Tobiadefami Aug 11, 2026
d7c87b8
fix: reject unbounded TAKE results
Tobiadefami Aug 11, 2026
f34f6a8
fix: size TAKE from numeric text literals
Tobiadefami Aug 12, 2026
a18429c
fix: preserve TAKE coercion errors
Tobiadefami Aug 12, 2026
4459034
fix: align TAKE sizing with Excel
Tobiadefami Aug 17, 2026
5ca25fc
Revert "fix: align TAKE sizing with Excel"
Tobiadefami Aug 17, 2026
cb5bc3c
fix: align TAKE result sizing with Excel
Tobiadefami Aug 17, 2026
9e38116
docs: document localized stack function names
Tobiadefami Aug 17, 2026
3fd5a70
fix: evaluate constant TAKE dimensions before spill allocation
Tobiadefami Aug 25, 2026
a5ecaa2
Merge branch 'develop' into feature/take-function
sequba Sep 2, 2026
5078a8c
fix: allow nested unbounded TAKE results
Tobiadefami Sep 2, 2026
f53a01b
Merge branch 'develop' into feature/take-function
Tobiadefami Sep 2, 2026
9bd7be4
fix: preserve TAKE zero-count errors
Tobiadefami Sep 2, 2026
5b1bd12
fix: bound unbounded TAKE predictions
Tobiadefami Sep 2, 2026
7c5e0b4
fix: preserve bounded TAKE predictions
Tobiadefami Sep 2, 2026
67b26a2
refactor: short-circuit zero TAKE dimensions
Tobiadefami Sep 2, 2026
453b097
fix: respect boolean overrides in TAKE size prediction
Tobiadefami Sep 3, 2026
2f5a74d
fix: distinguish unresolved TAKE dimensions
Tobiadefami Sep 3, 2026
8d9e74e
docs: correct TAKE compatibility details
Tobiadefami Sep 3, 2026
95c86fe
Merge branch 'develop' into feature/take-function
Tobiadefami Oct 2, 2026
216e205
feat: add DROP function (HF-384)
Tobiadefami Oct 6, 2026
60fbf90
docs: link the DROP pull request in the changelog
Tobiadefami Oct 6, 2026
ebd7363
fix: return #SPILL! for unresolved DROP counts below the first row
Tobiadefami Oct 14, 2026
f16a63f
docs: list more DROP differences from Excel
Tobiadefami Oct 15, 2026
043bd70
Merge branch 'develop' into feature/take-function
Tobiadefami Oct 21, 2026
d0e4a3c
Register TAKE in the license capability table
Tobiadefami Oct 21, 2026
8322153
Merge branch 'feature/take-function' into feature/hf-384-drop
Tobiadefami Oct 21, 2026
df8aa44
Register DROP in the license capability table
Tobiadefami Oct 21, 2026
d382d7d
Return #SPILL! for TAKE over a same-sheet whole column with a count f…
Tobiadefami Nov 2, 2026
7472c5e
Merge remote-tracking branch 'origin/feature/take-function' into feat…
Tobiadefami Nov 2, 2026
bf43c52
List DROP's negative count over a whole column as a difference from E…
Tobiadefami Nov 2, 2026
6d0464d
Merge remote-tracking branch 'origin/develop' into feature/take-function
Tobiadefami Nov 2, 2026
05a1ded
Merge remote-tracking branch 'origin/feature/take-function' into feat…
Tobiadefami Nov 2, 2026
09c2e40
Merge remote-tracking branch 'origin/develop' into feature/take-function
Tobiadefami Nov 5, 2026
00e6379
Document that TAKE over a whole row counts back from the last used co…
Tobiadefami Nov 5, 2026
a2e1980
Merge remote-tracking branch 'origin/develop' into feature/take-function
Tobiadefami Nov 11, 2026
6b4b1c0
Spill TAKE results whose cell-read count fits the reserved area
Tobiadefami Nov 11, 2026
dc1b2da
Merge remote-tracking branch 'origin/feature/take-function' into feat…
Tobiadefami Nov 11, 2026
e3f952f
Report TAKE's rows argument as required
Tobiadefami Nov 12, 2026
ab5fc64
Merge remote-tracking branch 'origin/develop' into feature/take-function
Tobiadefami Nov 12, 2026
df4c98d
Merge remote-tracking branch 'origin/develop' into feature/take-function
Tobiadefami Nov 16, 2026
17e151e
Merge the final TAKE head (squash-merged into develop as #1722) into …
Tobiadefami Nov 16, 2026
ac175c1
Merge remote-tracking branch 'origin/develop' into feature/hf-384-drop
Tobiadefami Nov 16, 2026
781a2ab
Merge remote-tracking branch 'origin/develop' into feature/hf-384-drop
Tobiadefami Nov 18, 2026
0d89b07
Merge remote-tracking branch 'origin/develop' into feature/hf-384-drop
Tobiadefami Nov 19, 2026
8158c18
Merge remote-tracking branch 'origin/develop' into feature/hf-384-drop
Tobiadefami Nov 19, 2026
b5e7baa
Merge remote-tracking branch 'origin/develop' into feature/hf-384-drop
Tobiadefami Nov 19, 2026
256ebae
Merge remote-tracking branch 'origin/develop' into feature/hf-384-drop
Tobiadefami Nov 19, 2026
28fb2ac
Merge remote-tracking branch 'origin/develop' into feature/hf-384-drop
Tobiadefami Nov 20, 2026
561e990
Merge remote-tracking branch 'origin/develop' into feature/hf-384-drop
Tobiadefami Nov 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Added the `ODDFPRICE` and `ODDLPRICE` functions, which return the price per 100 face value of a security with an odd first or last coupon period. [#1850](https://github.com/handsontable/hyperformula/pull/1850)
- Added the `YIELD`, `ODDFYIELD` and `ODDLYIELD` functions, which return the yield of a security that pays periodic interest, with a regular, an odd first or an odd last coupon period. [#1851](https://github.com/handsontable/hyperformula/pull/1851)
- Added the `MDURATION` function, which returns the modified duration of a security that pays periodic interest. [#1849](https://github.com/handsontable/hyperformula/pull/1849)
- Added the `DROP` dynamic-array function. [#1796](https://github.com/handsontable/hyperformula/pull/1796)

### Fixed

Expand Down
8 changes: 8 additions & 0 deletions docs/guide/list-of-differences.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ A single cell that holds an error, passed as `known_x` or `new_x`, returns that
| Ranges created with `:` | A1:A2<br><br>A$1:$A$2<br><br>A:C<br><br>1:2<br><br>Sheet1!A1:A2 | Allowed ranges consist of two addresses (A1:B5), columns (A:C) or rows (3:5).<br>They cannot be mixed or contain named expressions. | Everything allowed. | Same as Google Sheets. |
| Formatting inside the TEXT function | TEXT(A1,"dd-mm-yy")<br><br>TEXT(A1,"###.###”) | To support all date, time and currency formats, set [`stringifyDateTime`](compatibility-with-microsoft-excel.md#date-and-time-formats) and [`stringifyCurrency`](currency-handling.md) configuration options. | A wide variety of options for string formatting is supported. | Same as Google Sheets. |
| Cell references inside inline arrays | ={A1, A2} | The array's value is calculated but not updated when the cells' values change. | The array's value is calculated and updated when the cells' values change. | ERROR: invalid array |
| Errors in array results | =DROP(Data!A1:C3, NA()) | The error fills the whole area reserved for the array (here 3x3), because the array's size is predicted before the formula is evaluated. | No such function. | A single N/A error. |
| Array size that depends on cell values | =DROP(Data!A1:C3, Counts!A1) in A1,<br>where Counts!A1 = 1 and A3 holds a value | Returns SPILL: the whole source (3x3) is reserved, because the count is read after the array's size is set. | No such function. | Spills the two remaining rows into A1:C2. |
| SPLIT function | =SPLIT("Lorem ipsum dolor", 0) | This function works differently from Google Sheets version but should be sufficient to achieve the same functionality in most scenarios. Read SPLIT function description on [the Built-in Functions page](built-in-functions.md#text). | Different syntax and return value. | No such function. |
| DATEVALUE function | =DATEVALUE("25/02/1991") | Type of the returned value: `CellValueDetailedType.NUMBER_DATE` (compliant with the [OpenDocument](https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part4-formula/OpenDocument-v1.3-os-part4-formula.html) standard) | Cell auto-formatted as **regular number** | Cell auto-formatted as **regular number** |
| TIMEVALUE function | =TIMEVALUE("14:31") | Type of the returned value: `CellValueDetailedType.NUMBER_TIME` (compliant with the [OpenDocument](https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part4-formula/OpenDocument-v1.3-os-part4-formula.html) standard) | Cell auto-formatted as **regular number** | Cell auto-formatted as **regular number** |
Expand Down Expand Up @@ -146,6 +148,12 @@ To remove the differences, create [custom implementations](custom-functions.md)
| TAKE | =SUM(TAKE(1:1, , -2))<br>where A1:C1: 1, 2, 3 | 5 (counts back from the last used column) | No such function. | 0 (counts back from the last column of the sheet) |
| TAKE | =TAKE(A:A, B1) in C5,<br>where A1:A5: 1, 2, 3, 4, 5 and B1 = 6 | Returns SPILL: the result is taller than the area reserved for it below row 1 (5 rows, the source's height). A count that fits, such as 2, spills 1, 2. A negative count, such as -2, counts back from the end of the reserved area and returns 2 empty cells. | No such function. | Spills 1, 2, 3, 4, 5, 0 into C5:C10. With B1 = -2, spills 0, 0. |
| TAKE | =TAKE(A1:C3, NA()) | Fills the whole area reserved for the array (here 3x3) with N/A. | No such function. | A single N/A error. |
| DROP | =DROP(A1:A3, 3) | N/A | No such function. | CALC |
| DROP | =DROP(Data!A:A, 1) | Spills to the source sheet's current height minus one row; returns SPILL below row 2. | No such function. | Spills all 1,048,575 remaining rows, with blank source cells as 0; returns SPILL below row 2. |
Comment thread
Tobiadefami marked this conversation as resolved.
Resolved
| DROP | =DROP(Data!A:A, B1) | Spills from row 1 only; returns SPILL below row 1, because the count is read after the result size is set. | No such function. | Spills 1,048,576 minus B1 rows when entered in row B1+1 or above; returns SPILL below. |
| DROP | =SUM(DROP(A:A, -1))<br>where A1:A5: 1, 2, 3, 4, 5 | 10 (drops the last used row) | No such function. | 15 (drops the last row of the sheet) |
| DROP | =DROP(A1:C3, {1,2}) | Uses the first count and drops one row. | No such function. | Returns a 1x2 array of VALUE errors. |
| DROP | =ISREF(DROP(Data!A1:C3, 1)) | FALSE (returns values, not a reference) | No such function. | TRUE |
| INT | =INT(-8.9) | -8 | -9 | -9 |
| ISEVEN | =ISEVEN(2.5) | FALSE | TRUE | TRUE |
| ISODD | =ISODD(3.5) | FALSE | TRUE | TRUE |
Expand Down
1 change: 1 addition & 0 deletions hyperformula/src/i18n/languages/csCZ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const dictionary: RawTranslationPackage = {
DISC: 'DISC',
DOLLARDE: 'DOLLARDE',
DOLLARFR: 'DOLLARFR',
DROP: 'ZAHODIT',
DURATION: 'DURATION',
EDATE: 'EDATE',
EFFECT: "EFFECT",
Expand Down
1 change: 1 addition & 0 deletions hyperformula/src/i18n/languages/daDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const dictionary: RawTranslationPackage = {
DISC: 'DISKONTO',
DOLLARDE: 'KR.DECIMAL',
DOLLARFR: 'KR.BRØK',
DROP: 'UDELAD',
DURATION: 'VARIGHED',
EDATE: 'EDATO',
EFFECT: "EFFEKTIV.RENTE",
Expand Down
1 change: 1 addition & 0 deletions hyperformula/src/i18n/languages/deDE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const dictionary: RawTranslationPackage = {
DISC: 'DISAGIO',
DOLLARDE: 'NOTIERUNGDEZ',
DOLLARFR: 'NOTIERUNGBRU',
DROP: 'WEGLASSEN',
DURATION: 'DURATION',
EDATE: 'EDATUM',
EFFECT: "EFFEKTIV",
Expand Down
1 change: 1 addition & 0 deletions hyperformula/src/i18n/languages/enGB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const dictionary: RawTranslationPackage = {
DISC: 'DISC',
DOLLARDE: 'DOLLARDE',
DOLLARFR: 'DOLLARFR',
DROP: 'DROP',
DURATION: 'DURATION',
EDATE: 'EDATE',
EFFECT: 'EFFECT',
Expand Down
1 change: 1 addition & 0 deletions hyperformula/src/i18n/languages/esES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export const dictionary: RawTranslationPackage = {
DISC: 'TASA.DESC',
DOLLARDE: 'MONEDA.DEC',
DOLLARFR: 'MONEDA.FRAC',
DROP: 'EXCLUIR',
DURATION: 'DURACION',
EDATE: 'FECHA.MES',
EFFECT: "INT.EFECTIVO",
Expand Down
1 change: 1 addition & 0 deletions hyperformula/src/i18n/languages/fiFI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const dictionary: RawTranslationPackage = {
DISC: 'DISKONTTOKORKO',
DOLLARDE: 'VALUUTTA.DES',
DOLLARFR: 'VALUUTTA.MURTO',
DROP: 'HYLKÄÄ',
DURATION: 'KESTO',
EDATE: 'PÄIVÄ.KUUKAUSI',
EFFECT: "KORKO.EFEKT",
Expand Down
1 change: 1 addition & 0 deletions hyperformula/src/i18n/languages/frFR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const dictionary: RawTranslationPackage = {
DISC: 'TAUX.ESCOMPTE',
DOLLARDE: 'PRIX.DEC',
DOLLARFR: 'PRIX.FRAC',
DROP: 'EXCLURE',
DURATION: 'DUREE',
EDATE: 'MOIS.DECALER',
EFFECT: "TAUX.EFFECTIF",
Expand Down
1 change: 1 addition & 0 deletions hyperformula/src/i18n/languages/huHU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const dictionary: RawTranslationPackage = {
DISC: 'LESZÁM',
DOLLARDE: 'FORINT.DEC',
DOLLARFR: 'FORINT.TÖRT',
DROP: 'ELTÁVOLÍT',
DURATION: 'KAMATÉRZ',
EDATE: 'KALK.DÁTUM',
EFFECT: "TÉNYLEGES",
Expand Down
1 change: 1 addition & 0 deletions hyperformula/src/i18n/languages/idID.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const dictionary: RawTranslationPackage = {
DISC: 'DISC',
DOLLARDE: 'DOLAR.DES',
DOLLARFR: 'DOLAR.PEC',
DROP: 'DROP',
DURATION: 'DURATION',
EDATE: 'EDATE',
EFFECT: 'EFEKTIF',
Expand Down
1 change: 1 addition & 0 deletions hyperformula/src/i18n/languages/itIT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const dictionary: RawTranslationPackage = {
DISC: 'TASSO.SCONTO',
DOLLARDE: 'VALUTA.DEC',
DOLLARFR: 'VALUTA.FRAZ',
DROP: 'ESCLUDI',
DURATION: 'DURATA',
EDATE: 'DATA.MESE',
EFFECT: "EFFETTIVO",
Expand Down
1 change: 1 addition & 0 deletions hyperformula/src/i18n/languages/nbNO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const dictionary: RawTranslationPackage = {
DISC: 'DISKONTERT',
DOLLARDE: 'DOLLARDE',
DOLLARFR: 'DOLLARBR',
DROP: 'UTELAT',
DURATION: 'VARIGHET',
EDATE: 'DAG.ETTER',
EFFECT: "EFFEKTIV.RENTE",
Expand Down
1 change: 1 addition & 0 deletions hyperformula/src/i18n/languages/nlNL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const dictionary: RawTranslationPackage = {
DISC: 'DISCONTO',
DOLLARDE: 'EURO.DE',
DOLLARFR: 'EURO.BR',
DROP: 'WEGLATEN',
DURATION: 'DUUR',
EDATE: 'ZELFDE.DAG',
EFFECT: "EFFECT.RENTE",
Expand Down
1 change: 1 addition & 0 deletions hyperformula/src/i18n/languages/plPL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const dictionary: RawTranslationPackage = {
DISC: 'STOPA.DYSK',
DOLLARDE: 'CENA.DZIES',
DOLLARFR: 'CENA.UŁAM',
DROP: 'POMIŃ',
DURATION: 'ROCZ.PRZYCH',
EDATE: 'NR.SER.DATY',
EFFECT: "EFEKTYWNA",
Expand Down
1 change: 1 addition & 0 deletions hyperformula/src/i18n/languages/ptPT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const dictionary: RawTranslationPackage = {
DISC: 'DESC',
DOLLARDE: 'MOEDADEC',
DOLLARFR: 'MOEDAFRA',
DROP: 'EXCLUIR',
DURATION: 'DURAÇÃO',
EDATE: 'DATAM',
EFFECT: "EFETIVA",
Expand Down
1 change: 1 addition & 0 deletions hyperformula/src/i18n/languages/ruRU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const dictionary: RawTranslationPackage = {
DISC: 'СКИДКА',
DOLLARDE: 'РУБЛЬ.ДЕС',
DOLLARFR: 'РУБЛЬ.ДРОБЬ',
DROP: 'СБРОСИТЬ',
DURATION: 'ДЛИТ',
EDATE: 'ДАТАМЕС',
EFFECT: "ЭФФЕКТ",
Expand Down
1 change: 1 addition & 0 deletions hyperformula/src/i18n/languages/svSE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const dictionary: RawTranslationPackage = {
DISC: 'DISK',
DOLLARDE: 'DECTAL',
DOLLARFR: 'BRÅK',
DROP: 'UTESLUT',
DURATION: 'LÖPTID',
EDATE: 'EDATUM',
EFFECT: "EFFRÄNTA",
Expand Down
1 change: 1 addition & 0 deletions hyperformula/src/i18n/languages/trTR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const dictionary: RawTranslationPackage = {
DISC: 'İNDİRİM',
DOLLARDE: 'LİRAON',
DOLLARFR: 'LİRAKES',
DROP: 'BIRAK',
DURATION: 'SÜRE',
EDATE: 'SERİTARİH',
EFFECT: "ETKİN",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ export const LOOKUP_AND_REFERENCE_DOCS: Record<string, FunctionDoc> = {
documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html',
examples: ['=COLUMNS(A1:C5)', '=COLUMNS(A1:F1)'],
},
DROP: {
category: 'Lookup and reference',
shortDescription: 'Removes specified rows or columns from the beginning or end of an array.',
parameters: [{name: 'array', description: 'The array or range from which to remove rows or columns.'}, {name: 'rows', description: 'The number of rows to remove; a negative value removes rows from the end. Zero or an empty argument removes no rows.'}, {name: 'columns', description: 'The number of columns to remove; a negative value removes columns from the end. When omitted, empty, or zero, no columns are removed.'}],
documentationUrl: 'https://hyperformula.handsontable.com/docs/guide/built-in-functions.html',
examples: ['=DROP(A1:C5, 2)', '=DROP(A1:C5, -1, -1)', '=DROP(A1:C5, , 1)'],
},
FILTER: {
category: 'Lookup and reference',
shortDescription: 'Filters an array, based on multiple conditions (boolean arrays).',
Expand Down
Loading
Loading