Skip to content
Merged
Show file tree
Hide file tree
Changes from 53 commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
8d07004
CUMIPMT function
izulin Aug 9, 2020
7af1487
CUMPRINC function
izulin Aug 9, 2020
cad252a
.
izulin Aug 9, 2020
acf7302
DB function
izulin Aug 9, 2020
2f2d4ed
db compatibility
izulin Aug 10, 2020
6e3b74f
ddb implementation
izulin Aug 10, 2020
2fe3c6b
ddb translations
izulin Aug 10, 2020
c90927d
linter
izulin Aug 10, 2020
a7a319b
docs
izulin Aug 10, 2020
66276c1
dollarde function
izulin Aug 11, 2020
ad2c34f
docs
izulin Aug 11, 2020
15fac6a
dollarfr
izulin Aug 11, 2020
4ccf975
docs
izulin Aug 11, 2020
5b1dd6d
effect implementation
izulin Aug 13, 2020
ea5a280
Merge branch 'develop' into pu/financial-functions
izulin Aug 13, 2020
731f0fb
effectiv translation
izulin Aug 13, 2020
c199f9a
effective() implementation
izulin Aug 13, 2020
3221e3e
linter
izulin Aug 13, 2020
78bbbe7
docs
izulin Aug 13, 2020
c7eb295
ispmt
izulin Aug 13, 2020
8844854
ismpt tests
izulin Aug 13, 2020
4d4732d
doc
izulin Aug 13, 2020
e495e57
nominal() implementation
izulin Aug 13, 2020
79618f3
docs
izulin Aug 13, 2020
a2b20d3
nper implementation
izulin Aug 13, 2020
bd4b1f5
nper translation
izulin Aug 13, 2020
3ba4fea
docs
izulin Aug 13, 2020
41359ba
refactor
izulin Aug 14, 2020
07a5ae5
.
izulin Aug 14, 2020
877397f
RATE() function
izulin Aug 14, 2020
290f480
translations
izulin Aug 14, 2020
bf0aaf7
refactor
izulin Aug 14, 2020
8f51989
docs
izulin Aug 14, 2020
d0a4f27
Merge branch 'develop' into pu/financial-functions
izulin Aug 19, 2020
6f02983
PV function
izulin Aug 19, 2020
684f307
docs
izulin Aug 19, 2020
dfe728d
RRI
izulin Aug 19, 2020
a08d033
docs
izulin Aug 19, 2020
a20d41a
SLN()
izulin Aug 19, 2020
e74b763
translation + docs
izulin Aug 19, 2020
45db5b7
SYD()
izulin Aug 19, 2020
2ecb845
docs
izulin Aug 19, 2020
4dcd5ac
linter
izulin Aug 19, 2020
61aad4a
tbilleq()
izulin Aug 21, 2020
c43cdd3
docs
izulin Aug 21, 2020
c1a6450
linter
izulin Aug 21, 2020
6a2cd31
tbillprice
izulin Aug 21, 2020
431e82b
docs
izulin Aug 21, 2020
0d757fe
tbillyield
izulin Aug 21, 2020
fa0e367
transl
izulin Aug 21, 2020
7df2526
docs
izulin Aug 21, 2020
07ace9b
sort
izulin Aug 21, 2020
a0ccf59
docs
izulin Aug 23, 2020
0aafd7e
ddb simpler
izulin Aug 28, 2020
0fb9d19
typo
izulin Aug 28, 2020
af94d15
precision
izulin Aug 28, 2020
2014ad7
simpler
izulin Aug 29, 2020
c987a00
fractional ddb
izulin Aug 29, 2020
f77cb36
db mark
izulin Aug 29, 2020
a0ba4e1
rate
izulin Aug 29, 2020
d078ccc
rri
izulin Aug 29, 2020
74700c8
rate fix
izulin Aug 30, 2020
8814036
descriptions
izulin Aug 30, 2020
b349c6f
Merge branch 'develop' into pu/financial-functions
izulin Aug 30, 2020
4360e33
fix
izulin Aug 30, 2020
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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Added 9 text functions LEN, TRIM, PROPER, CLEAN, REPT, RIGHT, LEFT, SEARCH, FIND. (#221)
- Added helper methods for keeping track of cell/range dependencies: getCellPrecedents and getCellDependents. (#441)
- Added 4 financial functions FV, PMT, PPMT, IPMT.
- Added 22 financial functions FV, PMT, PPMT, IPMT, CUMIPMT, CUMPRINC, DB, DDB, DOLLARDE, DOLLARFR, EFFECT, ISPMT, NOMINAL, NPER, RATE, PV, RRI, SLN, SYD, TBILLEQ, TBILLPRICE, TBILLYIELD.
- Added FORMULATEXT function.
- Added 8 information functions ISERR, ISNA, ISREF, NA, SHEET, SHEETS, ISBINARY, ISFORMULA (#481)
- Added 15 date functions: WEEKDAY, DATEVALUE, HOUR, MINUTE, SECOND, TIME, TIMEVALUE, NOW, TODAY, EDATE, WEEKNUM, ISOWEEKNUM, DATEDIF, DAYS360, YEARFRAC.
Expand Down
20 changes: 19 additions & 1 deletion docs/guide/built-in-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,28 @@ lets you design your own [custom functions](custom-functions).
| SHEET | Information | Returns sheet number of a given value or a formula sheet number if no argument is provided. | SHEET([Value]) |
| SHEETS | Information | Returns number of sheet of a given reference or number of all sheets in workbook when no argument is provided. | SHEETS([Value]) |
| NA | Information | Returns #N/A! error value.| NA(Value) |
| CUMIPMT | Financial | Returns the cumulative interest paid on a loan between a start period and an end period. | CUMIPMT(Rate; Nper; Pv; Start, End; type) |
| CUMPRINC | Financial | Returns the cumulative principal paid on a loan between a start period and an end period. | CUMPRINC(Rate; Nper; Pv; Start; End; Type) |
| DB | Financial | Returns the depreciation of an asset for a period using the fixed-declining balance method. | DB(Cost; Salvage; Life; Period[; Month]) |
| DDB | Financial | Returns the depreciation of an asset for a period using the double-declining balance method. | DDB(Cost, Salvage; Life; Period[; Factor]) |
| DOLLARDE | Financial | Converts a price entered with a special notation to a price displayed as a decimal number. | DOLLARDE(Price, Fraction) |
| DOLLARFR | Financial | Converts a price displayed as a decimal number to a price entered with a special notation. | DOLLARFR(Price, Fraction) |
| EFFECT | Financial | Calculates the effective annual interest rate from a nominal interest rate and the number of compounding periods per year. | EFFECT (Nominal_rate; Npery) |
| FV | Financial | Returns the future value of an investment. | FV(Rate; Nper; Pmt[; Pv;[ Type]]) |
| IPMT | Financial | Calculates the interest portion of a given loan payment in a given payment period. | IPMT(Rate; Per; Nper; Pv[; Fv[; Type]]) |
| IPMT | Financial | Returnss the interest portion of a given loan payment in a given payment period. | IPMT(Rate; Per; Nper; Pv[; Fv[; Type]]) |
Comment thread
izulin marked this conversation as resolved.
Resolved
| ISPMT | Financial | Returns the interest paid for a given period of an investment with equal principal payments. | ISPMT(Rate; Per; Nper; Value) |
| NOMINAL | Financial | Returns the nominal interest rate. | NOMINAL(Effect_rate; Npery) |
| NPER | Financial | Returns the number of periods for an investment assuming periodic, constant payments and a constant interest rate. | NPER(Rate; Pmt; Pv[; Fv[; Type]]) |
| PMT | Financial | Returns the periodic payment for a loan. | PMT(Rate; Nper; Pv[; Fv[; Type]]) |
| PPMT | Financial | Calculates the principal portion of a given loan payment. | PPMT(Rate; Per; Nper; Pv[; Fv[; Type]]) |
| PV | Financial | Returns the present value of an investment. | PV(Rate; Nper; Pmt[; Fv[; Type]]) |
| RATE | Financial | Returns the interest rate per period of an annuity. | RATE(Nper; Pmt; Pv[; Fv[; Type[; guess]]]) |
| RRI | Financial | Returns an equivalent interest rate for the growth of an investment. | RRI(Nper; Pv; Fv) |
| SLN | Financial | Returns the depreciation of an asset for one period, based on a straight-line method. | SLN(Cost; Salvage; Life) |
| SYD | Financial | Returns the "sum-of-years" depreciation for an asset in a period. | SYD(Cost; Salvage; Life; Period) |
| TBILLEQ | Financial | Returns the bond-equivalent yield for a Treasury bill. | TBILLEQ(Settlement; Maturity; Discount) |
| TBILLPRICE | Financial | Returns the price per $100 face value for a Treasury bill. | TBILLPRICE(Settlement; Maturity; Discount) |
| TBILLYIELD | Financial | Returns the yield for a Treasury bill. | TBILLYIELD(Settlement; Maturity; Price) |
| AND | Logical | Returns TRUE if all arguments are TRUE. | AND(Logicalvalue1; Logicalvalue2 ...Logicalvalue30) |
| FALSE | Logical | Returns the logical value FALSE. | FALSE() |
| IF | Logical | Specifies a logical test to be performed. | IF(Test; Then value; Otherwisevalue) |
Expand Down
28 changes: 23 additions & 5 deletions src/i18n/languages/csCZ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const dictionary: RawTranslationPackage = {
AND: 'A',
ASIN: 'ARCSIN',
ASINH: 'ARCSINH',
ATAN: 'ARCTG',
ATAN2: 'ARCTG2',
ATAN: 'ARCTG',
ATANH: 'ARCTGH',
AVERAGE: 'PRŮMĚR',
AVERAGEA: 'AVERAGEA',
Expand Down Expand Up @@ -61,19 +61,26 @@ const dictionary: RawTranslationPackage = {
COUNTUNIQUE: 'COUNTUNIQUE',
CSC: 'CSC',
CSCH: 'CSCH',
CUMIPMT: 'CUMIPMT',
CUMPRINC: 'CUMPRINC',
DATE: 'DATUM',
DATEDIF: 'DATEDIF', //FIXME
DATEVALUE: 'DATUMHODN',
DAY: 'DEN',
DAYS: 'DAYS',
DAYS360: 'ROK360',
DAYS: 'DAYS',
DB: 'ODPIS.ZRYCH',
DDB: 'ODPIS.ZRYCH2',
DEC2BIN: 'DEC2BIN',
DEC2HEX: 'DEC2HEX',
DEC2OCT: 'DEC2OCT',
DECIMAL: 'DECIMAL',
DEGREES: 'DEGREES',
DELTA: 'DELTA',
DOLLARDE: 'DOLLARDE',
DOLLARFR: 'DOLLARFR',
EDATE: 'EDATE',
EFFECT: "EFFECT",
EOMONTH: 'EOMONTH',
ERF: 'ERF',
ERFC: 'ERFC',
Expand Down Expand Up @@ -102,13 +109,14 @@ const dictionary: RawTranslationPackage = {
ISNUMBER: 'JE.ČISLO',
ISODD: 'ISODD',
ISOWEEKNUM: 'ISOWEEKNUM',
ISPMT: 'ISPMT',
ISREF: 'JE.ODKAZ',
ISTEXT: 'JE.TEXT',
LEFT: 'ZLEVA',
LEN: 'DÉLKA',
LN: 'LN',
LOG: 'LOGZ',
LOG10: 'LOG',
LOG: 'LOGZ',
MATCH: 'POZVYHLEDAT',
MAX: 'MAX',
MAXA: 'MAXA',
Expand All @@ -122,8 +130,10 @@ const dictionary: RawTranslationPackage = {
MOD: 'MOD',
MONTH: 'MĚSÍC',
NA: 'NEDEF',
NOW: 'NYNÍ',
NOMINAL: 'NOMINAL',
NOT: 'NE',
NOW: 'NYNÍ',
NPER: 'POČET.OBDOBÍ',
ODD: 'ZAOKROUHLIT.NA.LICHÉ',
OFFSET: 'POSUN',
OR: 'NEBO',
Expand All @@ -132,22 +142,26 @@ const dictionary: RawTranslationPackage = {
POWER: 'POWER',
PPMT: 'PLATBA.ZÁKLAD',
PROPER: 'VELKÁ2',
PV: 'SOUČHODNOTA',
RADIANS: 'RADIANS',
RAND: 'NÁHČÍSLO',
RATE: 'ÚROKOVÁ.MÍRA',
REPT: 'OPAKOVAT',
RIGHT: 'ZPRAVA',
ROUND: 'ZAOKROUHLIT',
ROUNDDOWN: 'ROUNDDOWN',
ROUNDUP: 'ROUNDUP',
ROWS: 'ŘÁDKY',
RRI: 'RRI',
SEARCH: 'HLEDAT',
SEC: 'SEC',
SECH: 'SECH',
SECOND: 'SEKUNDA',
SHEETS: 'SHEETS',
SHEET: 'SHEET',
SHEETS: 'SHEETS',
SIN: 'SIN',
SINH: 'SINH',
SLN: 'ODPIS.LIN',
SPLIT: 'SPLIT',
SQRT: 'ODMOCNINA',
SUM: 'SUMA',
Expand All @@ -156,8 +170,12 @@ const dictionary: RawTranslationPackage = {
SUMPRODUCT: 'SOUČIN.SKALÁRNÍ',
SUMSQ: 'SUMA.ČTVERCŮ',
SWITCH: '',
SYD: 'ODPIS.NELIN',
TAN: 'TG',
TANH: 'TGH',
TBILLEQ: 'TBILLEQ',
TBILLPRICE: 'TBILLPRICE',
TBILLYIELD: 'TBILLYIELD',
TEXT: 'HODNOTA.NA.TEXT',
TIME: 'ČAS',
TIMEVALUE: 'ČASHODN',
Expand Down
28 changes: 23 additions & 5 deletions src/i18n/languages/daDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const dictionary: RawTranslationPackage = {
AND: 'OG',
ASIN: 'ARCSIN',
ASINH: 'ARCSINH',
ATAN: 'ARCTAN',
ATAN2: 'ARCTAN2',
ATAN: 'ARCTAN',
ATANH: 'ARCTANH',
AVERAGE: 'MIDDEL',
AVERAGEA: 'MIDDELV',
Expand Down Expand Up @@ -61,19 +61,26 @@ const dictionary: RawTranslationPackage = {
COUNTUNIQUE: 'COUNTUNIQUE',
CSC: 'CSC',
CSCH: 'CSCH',
CUMIPMT: 'AKKUM.RENTE',
CUMPRINC: 'AKKUM.HOVEDSTOL',
DATE: 'DATO',
DATEDIF: 'DATEDIF', //FIXME
DATEVALUE: 'DATOVÆRDI',
DAY: 'DAG',
DAYS: 'DAGE',
DAYS360: 'DAGE360',
DAYS: 'DAGE',
DB: 'DB',
DDB: 'DSA',
DEC2BIN: 'DEC.TIL.BIN',
DEC2HEX: 'DEC.TIL.HEX',
DEC2OCT: 'DEC.TIL.OKT',
DECIMAL: 'DECIMAL',
DEGREES: 'GRADER',
DELTA: 'DELTA',
DOLLARDE: 'KR.DECIMAL',
DOLLARFR: 'KR.BRØK',
EDATE: 'EDATO',
EFFECT: "EFFEKTIV.RENTE",
EOMONTH: 'SLUT.PÅ.MÅNED',
ERF: 'FEJLFUNK',
ERFC: 'FEJLFUNK.KOMP',
Expand Down Expand Up @@ -102,13 +109,14 @@ const dictionary: RawTranslationPackage = {
ISNUMBER: 'ER.TAL',
ISODD: 'ER.ULIGE',
ISOWEEKNUM: 'ISOUGE.NR',
ISPMT: 'ISPMT',
ISREF: 'ER.REFERENCE',
ISTEXT: 'ER.TEKST',
LEFT: 'VENSTRE',
LEN: 'LÆNGDE',
LN: 'LN',
LOG: 'LOG',
LOG10: 'LOG10',
LOG: 'LOG',
MATCH: 'SAMMENLIGN',
MAX: 'MAKS',
MAXA: 'MAKSV',
Expand All @@ -122,8 +130,10 @@ const dictionary: RawTranslationPackage = {
MOD: 'REST',
MONTH: 'MÅNED',
NA: 'IKKE.TILGÆNGELIG',
NOW: 'NU',
NOMINAL: 'NOMINEL',
NOT: 'IKKE',
NOW: 'NU',
NPER: 'NPER',
ODD: 'ULIGE',
OFFSET: 'FORSKYDNING',
OR: 'ELLER',
Expand All @@ -132,22 +142,26 @@ const dictionary: RawTranslationPackage = {
POWER: 'POTENS',
PPMT: 'H.YDELSE',
PROPER: 'STORT.FORBOGSTAV',
PV: 'NV',
RADIANS: 'RADIANER',
RAND: 'SLUMP',
RATE: 'RENTE',
REPT: 'GENTAG',
RIGHT: 'HØJRE',
ROUND: 'AFRUND',
ROUNDDOWN: 'RUND.NED',
ROUNDUP: 'RUND.OP',
ROWS: 'RÆKKER',
RRI: 'RRI',
SEARCH: 'SØG',
SEC: 'SEC',
SECH: 'SECH',
SECOND: 'SEKUND',
SHEETS: 'ARK.FLERE',
SHEET: 'ARK',
SHEETS: 'ARK.FLERE',
SIN: 'SIN',
SINH: 'SINH',
SLN: 'LA',
SPLIT: 'SPLIT',
SQRT: 'KVROD',
SUM: 'SUM',
Expand All @@ -156,8 +170,12 @@ const dictionary: RawTranslationPackage = {
SUMPRODUCT: 'SUMPRODUKT',
SUMSQ: 'SUMKV',
SWITCH: '',
SYD: 'ÅRSAFSKRIVNING',
TAN: 'TAN',
TANH: 'TANH',
TBILLEQ: 'STATSOBLIGATION',
TBILLPRICE: 'STATSOBLIGATION.KURS',
TBILLYIELD: 'STATSOBLIGATION.AFKAST',
TEXT: 'TEKST',
TIME: 'TID',
TIMEVALUE: 'TIDSVÆRDI',
Expand Down
28 changes: 23 additions & 5 deletions src/i18n/languages/deDE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const dictionary: RawTranslationPackage = {
AND: 'UND',
ASIN: 'ARCSIN',
ASINH: 'ARCSINHYP',
ATAN: 'ARCTAN',
ATAN2: 'ARCTAN2',
ATAN: 'ARCTAN',
ATANH: 'ARCTANHYP',
AVERAGE: 'MITTELWERT',
AVERAGEA: 'MITTELWERTA',
Expand Down Expand Up @@ -61,19 +61,26 @@ const dictionary: RawTranslationPackage = {
COUNTUNIQUE: 'COUNTUNIQUE',
CSC: 'COSEC',
CSCH: 'COSECHYP',
CUMIPMT: 'KUMZINSZ',
CUMPRINC: 'KUMKAPITAL',
DATE: 'DATUM',
DATEDIF: 'DATEDIF', //FIXME
DATEVALUE: 'DATWERT',
DAY: 'TAG',
DAYS: 'TAGE',
DAYS360: 'TAGE360',
DAYS: 'TAGE',
DB: 'GDA2',
DDB: 'GDA',
DEC2BIN: 'DEZINBIN',
DEC2HEX: 'DEZINHEX',
DEC2OCT: 'DEZINOKT',
DECIMAL: 'DEZIMAL',
DEGREES: 'GRAD',
DELTA: 'DELTA',
DOLLARDE: 'NOTIERUNGDEZ',
DOLLARFR: 'NOTIERUNGBRU',
EDATE: 'EDATUM',
EFFECT: "EFFEKTIV",
EOMONTH: 'MONATSENDE',
ERF: 'GAUSSFEHLER',
ERFC: 'GAUSSFKOMPL',
Expand Down Expand Up @@ -102,13 +109,14 @@ const dictionary: RawTranslationPackage = {
ISNUMBER: 'ISTZAHL',
ISODD: 'ISTUNGERADE',
ISOWEEKNUM: 'ISOKALENDERWOCHE',
ISPMT: 'ISPMT',
ISREF: 'ISTBEZUG',
ISTEXT: 'ISTTEXT',
LEFT: 'LINKS',
LEN: 'LÄNGE',
LN: 'LN',
LOG: 'LOG',
LOG10: 'LOG10',
LOG: 'LOG',
MATCH: 'VERGLEICH',
MAX: 'MAX',
MAXA: 'MAXA',
Expand All @@ -122,8 +130,10 @@ const dictionary: RawTranslationPackage = {
MOD: 'REST',
MONTH: 'MONAT',
NA: 'NV',
NOW: 'JETZT',
NOMINAL: 'NOMINAL',
NOT: 'NICHT',
NOW: 'JETZT',
NPER: 'ZZR',
ODD: 'UNGERADE',
OFFSET: 'BEREICH.VERSCHIEBEN',
OR: 'ODER',
Expand All @@ -132,22 +142,26 @@ const dictionary: RawTranslationPackage = {
POWER: 'POTENZ',
PPMT: 'KAPZ',
PROPER: 'GROSS2',
PV: 'BW',
RADIANS: 'BOGENMASS',
RAND: 'ZUFALLSZAHL',
RATE: 'ZINS',
REPT: 'WIEDERHOLEN',
RIGHT: 'RECHTS',
ROUND: 'RUNDEN',
ROUNDDOWN: 'ABRUNDEN',
ROUNDUP: 'AUFRUNDEN',
ROWS: 'ZEILEN',
RRI: 'ZSATZINVEST',
SEARCH: 'SUCHEN',
SEC: 'SEC',
SECH: 'SECHYP',
SECOND: 'SEKUNDE',
SHEETS: 'BLÄTTER',
SHEET: 'BLATT',
SHEETS: 'BLÄTTER',
SIN: 'SIN',
SINH: 'SINHYP',
SLN: 'LIA',
SPLIT: 'SPLIT',
SQRT: 'WURZEL',
SUM: 'SUMME',
Expand All @@ -156,8 +170,12 @@ const dictionary: RawTranslationPackage = {
SUMPRODUCT: 'SUMMENPRODUKT',
SUMSQ: 'QUADRATESUMME',
SWITCH: '',
SYD: 'DIA',
TAN: 'TAN',
TANH: 'TANHYP',
TBILLEQ: 'TBILLÄQUIV',
TBILLPRICE: 'TBILLKURS',
TBILLYIELD: 'TBILLRENDITE',
TEXT: 'TEXT',
TIME: 'ZEIT',
TIMEVALUE: 'ZEITWERT',
Expand Down
Loading