xlsgen > overview > Formulas

Formulas and conditional formattings bring dynamic capabilities to Excel documents. There are a number of aspects in Excel formulas :



 

A formula is attached to a cell at the worksheet level (see IXlsWorksheet for more information), or in the case of merged cells, at the merged cells object level (see IXlsMergedCells for more information).

Formulas are passed just like in Excel. Examples of formulas are as follows :

=SUM(C3:C5) // calculates the sum of the specified cell range
=IF(R1C4 > 5; "yes"; "no") // calculates a content depending on a given condition

Supported functions are listed in the following table.

In addition to supporting functions, xlsgen supports the following operators : +, -, *, /, =, <, <=, >, >=, <>, ^ (power), % (percent), & (concatenation).

If the wrong number of parameters is being passed, then an error is raised. A subset of functions support an arbitrary number of parameters, for instance the SUM function supports any number of parameters. Use the semi-colon character to separate parameters.

Formulas and parenthesis can be combined at an arbitrary level. Sometimes, you may have to explicitely add parenthesis for the parser to resolve ambiguities. For instance, A3-A4=0 can be better understood if you pass (A3-A4)=0 instead.

Operands supported include :

The R1C1 notation is one of the two notations supported by Excel, where in RxxxCyyy xxx is a row and yyy is a column, both starting at 1. The Ax notation is the natural Excel notation where A denotes a column (there is more than one letter after the 26th column), and x denotes a row number starting at 1.

Functions are parsed and read using the current formula language. The default formula language is English, but xlsgen supports 5 other languages. See the code below for an example of how to use localized function names.

 

In order to produce the example in the screen above, the following code is required :

VB code

wksht.Number(3, 3) = 5
wksht.Number(4, 3) = 10
wksht.Number(5, 3) = 15

Dim style As IXlsStyle
Set style = wksht.NewStyle
style.Font.Bold = True
style.Apply

wksht.Formula(6, 3) = "=SUM(C3:C5)"

C# code

wksht.set_Number(3,3, 5);
wksht.set_Number(4,3, 10);
wksht.set_Number(5,3, 15);

IXlsStyle style = wksht.NewStyle();
style.Font.Bold = 1;
style.Apply();

wksht.set_Formula(6,3, "=SUM(C3:C5)");

C/C++ code

wksht->Number[3][3] = 5;
wksht->Number[4][3] = 10;
wksht->Number[5][3] = 15;

xlsgen::IXlsStylePtr style = wksht->NewStyle();
style->Font->Bold = TRUE;
style->Apply();

wksht->Formula[6][3] = "=SUM(C3:C5)";

If you'd like to write this function using French function names, you can do the following :

VB code

' Tell xlsgen to recognize French function names
wbk.FormulaLanguage = xlsgen.formulalanguage_fr

wksht.Number(3, 3) = 5
wksht.Number(4, 3) = 10
wksht.Number(5, 3) = 15

Dim style As IXlsStyle
Set style = wksht.NewStyle
style.Font.Bold = True
style.Apply

' French function name, without uppercase
wksht.Formula(6, 3) = "=somme(C3:C5)"

C# code

// Tell xlsgen to recognize French function names
wbk.FormulaLanguage = (int) xlsgen.enumFormulaLanguage.formulalanguage_fr;

wksht.set_Number(3,3, 5);
wksht.set_Number(4,3, 10);
wksht.set_Number(5,3, 15);

IXlsStyle style = wksht.NewStyle();
style.Font.Bold = 1;
style.Apply();

// French function name, without uppercase
wksht.set_Formula(6,3, "=somme(C3:C5)");

C/C++ code

// Tell xlsgen to recognize French function names
wbk->FormulaLanguage = xlsgen::formulalanguage_fr;

wksht->Number[3][3] = 5;
wksht->Number[4][3] = 10;
wksht->Number[5][3] = 15;

xlsgen::IXlsStylePtr style = wksht->NewStyle();
style->Font->Bold = TRUE;
style->Apply();

// French function name, without uppercase
wksht->Formula[6][3] = "=somme(C3:C5)";

If you call user-defined functions (otherwise known as add-ins), you must declare them first using the DeclareUserDefinedFunction method. An example is :

 ' declare an external user defined function
 '  (Book1.xls exposes a VBA procedure called Discount1)
 wksht.DeclareUserDefinedFunction("Book1.xls!Discount1")

 ' create a formula with it
 wksht.Formula(15,3) = "=Book1.xls!Discount1(970;3)"

 

List of supported built-in Excel functions (all functions below are supported in xlsgen for reading and writing. Only a subset of these are supported by the xlsgen calculation engine) :

English French German Spanish Italian Portuguese Supported by the built-in calculation engine Description
ABS ABS ABSABSASSABS
X
Returns the absolute value of a number
ACOS ACOS ARCCOSACOSARCCOSACOS
X
Returns the arccosine of a number
ACOSH ACOSH ARCCOSHYPACOSHARCCOSHACOSH   Returns the inverse hyperbolic cosine of a number
ADDRESS ADRESSE ADRESSEDIRECCIONINDIRIZZOENDEREÇO
X
Returns a reference as text to a single cell in a worksheet
AND ET UNDYEE
X
Returns TRUE if all of its arguments are TRUE
AREAS ZONES BEREICHEAREASAREEAREAS   Returns the number of areas in a reference
ASIN ASIN ARCSINASENOARCSENASEN
X
Returns the arcsine of a number
ASINH ASINH ARCSINHYPASENOHARCSENHASENH   Returns the inverse hyperbolic sine of a number
ATAN ATAN ARCTANATANARCTANATAN
X
Returns the arctangent of a number
ATAN2 ATAN2 ARCTAN2ATAN2ARCTAN.2ATAN2   Returns the arctangent from x- and y-coordinates
ATANH ATANH ARCTANHYPATANHARCTANHATANH   Returns the inverse hyperbolic tangent of a number
AVEDEV ECART.MOYEN MITTELABWDESVPROMMEDIA.DEVDESV.MÉDIO   Returns the average of the absolute deviations of data points from their mean
AVERAGE MOYENNE MITTELWERTPROMEDIOMEDIAMÉDIA
X
Returns the average of its arguments
AVERAGEA AVERAGEA MITTELWERTAPROMEDIOAMEDIAAMÉDIAA
X
Returns the average of its arguments, including numbers, text, and logical values
BETADIST LOI.BETA BETAVERTDISTR.BETADISTRIB.BETADISTBETA   Returns the beta cumulative distribution function
BETAINV BETA.INVERSE BETAINVDISTR.BETA.INVINV.BETABETA.ACUM.INV   Returns the inverse of the cumulative distribution function for a specified beta distribution
BINOMDIST LOI.BINOMIALE BINOMVERTDISTR.BINOMDISTRIB.BINOMDISTRBINOM   Returns the individual term binomial distribution probability
CEILING PLAFOND OBERGRENZEMULTIPLO.SUPERIORARROTONDA.ECCESSOTETO
X
Rounds a number to the nearest integer or to the nearest multiple of significance
CELL CELLULE ZELLECELDACELLA   Returns information about the formatting, location, or contents of a cell
CHAR CAR ZEICHENCARACTERCODICE.CARATTCARACT
X
Returns the character specified by the code number
CHIDIST LOI.KHIDEUX CHIVERTDISTR.CHIDISTRIB.CHIDIST.QUI   Returns the one-tailed probability of the chi-squared distribution
CHIINV KHIDEUX.INVERSE CHIINVPRUEBA.CHI.INVINV.CHIINV.QUI   Returns the inverse of the one-tailed probability of the chi-squared distribution
CHITEST TEST.KHIDEUX CHITESTPRUEBA.CHITEST.CHITESTE.QUI   Returns the test for independence
CHOOSE CHOISIR WAHLELEGIRSCEGLIESCOLHER
X
Chooses a value from a list of values
CLEAN EPURAGE SÄUBERNLIMPIARLIBERATIRAR   Removes all nonprintable characters from text
CODE CODE CODECODIGOCODICECÓDIGO
X
Returns a numeric code for the first character in a text string
COLUMN COLONNE SPALTECOLUMNARIF.COLONNACO
X
Returns the column number of a reference
COLUMNS COLONNES SPALTENCOLUMNASCOLONNECOLS   Returns the number of columns in a reference
COMBIN COMBIN KOMBINATIONENCOMBINATCOMBINAZIONECOMBIN   Returns the number of combinations for a given number of objects
CONCATENATE CONCATENER VERKETTENCONCATENARCONCATENACONCATENAR
X
Joins several text items into one text item
CONFIDENCE INTERVALLE.CONFIANCE KONFIDENZINTERVALO.CONFIANZACONFIDENZAINT.CONFIANÇA   Returns the confidence interval for a population mean
CORREL COEFFICIENT.CORRELATION KORRELCOEF.DE.CORRELCORRELAZIONECORRE   Returns the correlation coefficient between two data sets
COS COS COSCOSCOSCOS
X
Returns the cosine of a number
COSH COSH COSHYPCOSHCOSHCOSH   Returns the hyperbolic cosine of a number
COUNT NB ANZAHLCONTARCONTA.NUMERICONT.NÚM
X
Counts how many numbers are in the list of arguments
COUNTA NBVAL ANZAHL2CONTARACONTA.VALORICONT.VALORES
X
Counts how many values are in the list of arguments
COUNTBLANK NB.VIDE ANZAHLLEEREZELLENCONTAR.BLANCOCONTA.VUOTECONTAR.VAZIO
X
Counts blanks
COUNTIF NB.SI ZÄHLENWENNCONTAR.SICONTA.SECONT.SE
X
Counts values matching an expression
COVAR COVARIANCE KOVARCOVARCOVARIANZACOVAR   Returns covariance, the average of the products of paired deviations
CRITBINOM CRITERE.LOI.BINOMIALE KRITBINOMBINOM.CRITCRIT.BINOMCRIT.BINOM   Returns the smallest value for which the cumulative binomial distribution is less than or equal to a criterion value
DATE DATE DATUMFECHADATADATA
X
Returns the serial number of a particular date
DATEVALUE DATEVAL DATWERTFECHANUMERODATA.VALOREDATA.VALOR
X
Converts a date in the form of text to a serial number
DAVERAGE BDMOYENNE DBMITTELWERTBDPROMEDIODB.MEDIABDMÉDIA   Returns the average of selected database entries
DAY JOUR TAGDIAGIORNODIA
X
Converts a serial number to a day of the month
DAYS360 JOURS360 TAGE360DIAS360GIORNO360DIAS360
X
Calculates the number of days between two dates based on a 360-day year
DB DB GDA2DBAMMORT.FISSOBD   Returns the depreciation of an asset for a specified period by using the fixed-declining balance method
DCOUNT BDNB DBANZAHLBDCONTARDB.CONTA.NUMERIBDCONTAR   Counts the cells that contain numbers in a database
DCOUNTA BDNBVAL DBANZAHL2BDCONTARADB.CONTA.VALORIBDCONTARA   Counts nonblank cells in a database
DDB DDB GDADDBAMMORTBDD   Returns the depreciation of an asset for a specified period by using the double-declining balance method or some other method that you specify
DEGREES DEGRES GRADGRADOSGRADIGRAUS
X
Converts radians to degrees
DEVSQ SOMME.CARRE.ECARTS SUMQUADABWDESVIA2DEV.QDESVQ   Returns the sum of squares of deviations
DGET BDLIRE DBAUSZUGBDEXTRAERDB.VALORIBDEXTRAIR   Extracts from a database a single record that matches the specified criteria
DMAX BDMAX DBMAXBDMAXDB.MAXBDMÁX   Returns the maximum value from selected database entries
DMIN BDMIN DBMINBDMINDB.MINBDMÍN   Returns the minimum value from selected database entries
DOLLAR FRANC DMMONEDAVALUTAMOEDA   Converts a number to text, using the $ (dollar) currency format
DPRODUCT BDPRODUIT DBPRODUKTBDPRODUCTODB.PRODOTTOBDMULTIP   Multiplies the values in a particular field of records that match the criteria in a database
DSTDEV BDECARTTYPE DBSTDABWBDDESVESTDB.DEV.STBDEST   Estimates the standard deviation based on a sample of selected database entries
DSTDEVP BDECARTTYPEP DBSTDABWNBDDESVESTPDB.DEV.ST.POPBDDESVPA   Calculates the standard deviation based on the entire population of selected database entries
DSUM BDSOMME DBSUMMEBDSUMADB.SOMMABDSOMA   Adds the numbers in the field column of records in the database that match the criteria
DVAR BDVAR DBVARIANZBDVARDB.VARBDVAREST   Estimates variance based on a sample from selected database entries
DVARP BDVARP DBVARIANZENBDVARPDB.VAR.POPBDVARP   Calculates variance based on the entire population of selected database entries
ERROR.TYPE TYPE.ERREUR FEHLER.TYPTIPO.DE.ERRORERRORE.TIPOTIPO.ERRO   Returns a number corresponding to an error type
EVEN PAIR GERADEREDONDEA.PARPARIPAR   Rounds a number up to the nearest even integer
EXACT EXACT IDENTISCHIGUALIDENTICOEXATO   Checks to see if two text values are identical
EXP EXP EXPEXPEXPEXP
X
Returns e raised to the power of a given number
EXPONDIST LOI.EXPONENTIELLE EXPONVERTDISTR.EXPDISTRIB.EXPDISTEXPON   Returns the exponential distribution
FACT FACT FAKULTÄTFACTFATTORIALEFATORIA   Returns the factorial of a number
FALSE FAUX FALSCHFALSOFALSOFALSO
X
Returns the logical value of FALSE
FDIST LOI.F FVERTDISTR.FDISTRIB.FDISTF   Returns the F probability distribution
FIND TROUVE FINDENENCONTRARTROVAPROCURAR
X
Finds one text value within another (case-sensitive)
FINV INSERVE.LOI.F FINVDISTR.F.INVINV.FINVF   Returns the inverse of the F probability distribution
FISHER FISHER FISHERFISHERFISHERFISHER   Returns the Fisher transformation
FISHERINV FISHER.INVERSE FISHERINVPRUEBA.FISHER.INVINV.FISHERFISHERINV   Returns the inverse of the Fisher transformation
FIXED CTXT FESTDECIMALFISSODEF.NÚM.DEC
X
Formats a number as text with a fixed number of decimals
FLOOR PLANCHER UNTERGRENZEMULTIPLO.INFERIORARROTONDA.DIFETTOARREDMULTB
X
Rounds a number down, toward zero
FORECAST PREVISION SCHÄTZERPRONOSTICOPREVISIONEPREVISÃO   Returns a value along a linear trend
FREQUENCY FREQUENCE HÄUFIGKEITFRECUENCIAFREQUENZAFREQÜÊNCIA   Returns a frequency distribution as a vertical array
FTEST TEST.F FTESTPRUEBA.FTEST.FTESTEF   Returns the result of an F-test
FV VC ZWVFVAL.FUTVF   Returns the future value of an investment
GAMMADIST LOI.GAMMA GAMMAVERTDISTR.GAMMADISTRIB.GAMMADISTGAMA   Returns the gamma distribution
GAMMAINV LOI.GAMMA.INVERSE GAMMAINVDISTR.GAMMA.INVINV.GAMMAINVGAMA   Returns the inverse of the gamma cumulative distribution
GAMMALN LNGAMMA GAMMALNGAMMA.LNLN.GAMMALNGAMA   Returns the natural logarithm of the gamma function, G(x)
GEOMEAN MOYENNE.GEOMETRIQUE GEOMITTELMEDIA.GEOMMEDIA.GEOMETRICAMÉDIA.GEOMÉTRICA
X
Returns the geometric mean
GETPIVOTDATA LIREDONNEESTABCROISDYNAMIQUE GETPIVOTDATAGETPIVOTDATAGETPIVOTDATAGETPIVOTDATA    
GROWTH CROISSANCE VARIATIONCRECIMIENTOCRESCITACRESCIMENTO   Returns values along an exponential trend
HARMEAN MOYENNE.HARMONIQUE HARMITTELMEDIA.ARMOMEDIA.ARMONICAMÉDIA.HARMÔNICA
X
Returns the harmonic mean
HLOOKUP RECHERCHEH WVERWEISBUSCARHCERCA.ORIZZPROCH
X
Looks in the top row of an array and returns the value of the indicated cell
HOUR HEURE STUNDEHORAORAHORA
X
Converts a serial number to an hour
HYPERLINK LIEN_HYPERTEXTE HYPERLINKHYPERLINKHYPERLINKHYPERLINK   Creates a shortcut or jump that opens a document stored on a network server, an intranet, or the Internet
HYPGEOMDIST LOI.HYPERGEOMETRIQUE HYPGEOMVERTDISTR.HIPERGEOMDISTRIB.IPERGEOMDIST.HIPERGEOM   Returns the hypergeometric distribution
IF SI WENNSISESE
X
Specifies a logical test to perform
INDEX INDEX INDEXINDICEINDICEÍNDICE
X
Uses an index to choose a value from a reference or array
INDIRECT INDIRECT INDIREKTINDIRECTOINDIRETTOINDIRETO
X
Returns a reference indicated by a text value
INFO INFO INFOINFOAMBIENTE.INFOINFORMAÇÃO   Returns information about the current operating environment
INT ENT GANZZAHLENTEROINTINT
X
Rounds a number down to the nearest integer
INTERCEPT ORDONNEE.ORIGINE ACHSENABSCHNITTINTERSECCIONINTERCETTAINTERCEPÇÃO
X
Returns the intercept of the linear regression line
INTERSECT INTERSECTION INTERSECTINTERSECTINTERSECTINTERSECT
X
Returns the logical intersection of an arbitrary number of ranges
IPMT INTPER ZINSZPAGOINTINTERESSIIPGTO   Returns the interest payment for an investment for a given period
IRR TRI IKVTIRTIR.COSTTIR   Returns the internal rate of return for a series of cash flows
ISBLANK ESTVIDE ISTLEERESBLANCOVAL.VUOTOÉCÉL.VAZIA
X
Returns TRUE if the value is blank
ISERR ESTERR ISTFEHLESERRVAL.ERRÉERRO
X
Returns TRUE if the value is any error value except #N/A
ISERROR ESTERREUR ISTFEHLERESERRORVAL.ERROREÉERROS
X
Returns TRUE if the value is any error value
ISLOGICAL ESTLOGIQUE ISTLOGESLOGICOVAL.LOGICOÉLÓGICO
X
Returns TRUE if the value is a logical value
ISNA ESTNA ISTNVESNODVAL.NON.DISPÉ.NÃO.DISP
X
Returns TRUE if the value is the #N/A error value
ISNONTEXT ESTNONTEXTE ISTKTEXTESNOTEXTOVAL.NON.TESTOÉ.NÃO.TEXTO
X
Returns TRUE if the value is not text
ISNUMBER ESTNUM ISTZAHLESNUMEROVAL.NUMEROÉNÚM
X
Returns TRUE if the value is a number
ISPMT ISPMT ISPMTINT.PAGO.DIRISPMTÉPGTO   Calculates the interest paid during a specific period of an investment
ISREF ESTREF ISTBEZUGESREFVAL.RIFÉREF
X
Returns TRUE if the value is a reference
ISTEXT ESTTEXTE ISTTEXTESTEXTOVAL.TESTOÉTEXTO
X
Returns TRUE if the value is text
KURT KURTOSIS KURTCURTOSISCURTOSICURT   Returns the kurtosis of a data set
LARGE GRANDE.VALEUR KGRÖSSTEK.ESIMO.MAYORGRANDEMAIOR
X
Returns the k-th largest value in a data set
LEFT GAUCHE LINKSIZQUIERDASINISTRAESQUERDA
X
Returns the leftmost characters from a text value
LEN NBCAR LÄNGELARGOLUNGHEZZANÚM.CARACT
X
Returns the number of characters in a text string
LINEST DROITEREG RGPESTIMACION.LINEALREGR.LINPROJ.LIN   Returns the parameters of a linear trend
LN LN LNLNLNLN
X
Returns the natural logarithm of a number
LOG LOG LOGLOGLOGLOG
X
Returns the logarithm of a number to a specified base
LOG10 LOG10 LOG10LOG10LOG10LOG10
X
Returns the base-10 logarithm of a number
LOGEST LOGREG RKPESTIMACION.LOGARITMICAREGR.LOGPROJ.LOG
X
Returns the parameters of an exponential trend
LOGINV LOI.LOGNORMALE.INVERSE LOGINVDISTR.LOG.INVINV.LOGNORMINVLOG   Returns the inverse of the lognormal distribution
LOGNORMDIST LOI.LOGNORMALE LOGNORMVERTDISTR.LOG.NORMDISTRIB.LOGNORMDIST.LOGNORMA
X
Returns the cumulative lognormal distribution
LOOKUP RECHERCHE VERWEISBUSCARCERCAPROC
X
Looks up values in a vector or array
LOWER MINUSCULE KLEINMINUSCMINUSCMINÚSCULA
X
Converts text to lowercase
MATCH EQUIV VERGLEICHCOINCIDIRCONFRONTACORRESP
X
Looks up values in a reference or array
MAX MAX MAXMAXMAXMÁXIMO
X
Returns the maximum value in a list of arguments
MAXA MAXA MAXAMAXAMAXAMÁXIMOA
X
Returns the maximum value in a list of arguments, including numbers, text, and logical values
MDETERM DETERMAT MDETMDETERMMATR.DETERMMATRIZ.DETERM   Returns the matrix determinant of an array
MEDIAN MEDIANE MEDIANMEDIANAMEDIANAMED
X
Returns the median of the given numbers
MID STXT TEILEXTRAESTRINGA.ESTRAIEXT.TEXTO
X
Returns a specific number of characters from a text string starting at the position you specify
MIN MIN MINMINMINMÍNIMO
X
Returns the minimum value in a list of arguments
MINA MINA MINAMINAMINAMÍNIMOA
X
Returns the smallest value in a list of arguments, including numbers, text, and logical values
MINUTE MINUTE MINUTEMINUTOMINUTOMINUTO
X
Converts a serial number to a minute
MINVERSE INVERSEMAT MINVMINVERSAMATR.INVERSAMATRIZ.INVERSO   Returns the matrix inverse of an array
MIRR TRIM QIKVTIRMTIR.VARMTIR   Returns the internal rate of return where positive and negative cash flows are financed at different rates
MMULT PRODUITMAT MMULTMMULTMATR.PRODOTTOMATRIZ.MULT   Returns the matrix product of two arrays
MOD MOD RESTRESIDUORESTOMOD
X
Returns the remainder from division
MODE MODE MODALWERTMODAMODAMODO   Returns the most common value in a data set
MONTH MOIS MONATMESMESEMÊS
X
Converts a serial number to a month
N N NNNUMN
X
Returns a value converted to a number
NA NA NVNODNON.DISPNÃO.DISP
X
Returns the error value #N/A
NEGBINOMDIST LOI.BINOMIALE.NEG NEGBINOMVERTNEGBINOMDISTDISTRIB.BINOM.NEGDIST.BIN.NEG   Returns the negative binomial distribution
NORMDIST LOI.NORMALE NORMVERTDISTR.NORMDISTRIB.NORMDIST.NORM
X
Returns the normal cumulative distribution
NORMINV LOI.NORMALE.INVERSE NORMINVDISTR.NORM.INVINV.NORMINV.NORM   Returns the inverse of the normal cumulative distribution
NORMSDIST LOI.NORMALE.STANDARD STANDNORMVERTDISTR.NORM.ESTANDDISTRIB.NORM.STDIST.NORMP
X
Returns the standard normal cumulative distribution
NORMSINV LOI.NORMALE.STANDARD.INVERSE STANDNORMINVDISTR.NORM.ESTAND.INVINV.NORM.STINV.NORMP   Returns the inverse of the standard normal cumulative distribution
NOT NON NICHTNONONNÃO
X
Reverses the logic of its argument
NOW MAINTENANT JETZTAHORAADESSOAGORA
X
Returns the serial number of the current date and time
NPER NPM ZZRNPERNUM.RATENPER   Returns the number of periods for an investment
NPV VAN NBWVNAVANVP   Returns the net present value of an investment based on a series of periodic cash flows and a discount rate
ODD IMPAIR UNGERADEREDONDEA.IMPARDISPARIÍMPAR   Rounds a number up to the nearest odd integer
OFFSET DECALER BEREICH.VERSCHIEBENDESREFSCARTODESLOC
X
Returns a reference offset from a given reference
OR OU ODEROOOU
X
Returns TRUE if any argument is TRUE
PEARSON PEARSON PEARSONPEARSONPEARSONPEARSON   Returns the Pearson product moment correlation coefficient
PERCENTILE CENTILE QUANTILPERCENTILPERCENTILEPERCENTI
X
Returns the k-th percentile of values in a range
PERCENTRANK RANG.POURCENTAGE QUANTILSRANGRANGO.PERCENTILPERCENT.RANGOORDEM.PORCENTUA   Returns the percentage rank of a value in a data set
PERMUT PERMUTATION VARIATIONENPERMUTACIONESPERMUTAZIONEPERMUT   Returns the number of permutations for a given number of objects
PI PI PIPIPI.GRECOPI   Returns the value of pi
PMT VPM RMZPAGORATAPGTO   Returns the periodic payment for an annuity
POISSON LOI.POISSON POISSONPOISSONPOISSONPOISSON   Returns the Poisson distribution
POWER PUISSANCE POTENZPOTENCIAPOTENZAPOTÊNCIA
X
Returns the result of a number raised to a power
PPMT PRINCPER KAPZPAGOPRINP.RATAPPGTO   Returns the payment on the principal for an investment for a given period
PROB PROBABILITE WAHRSCHBEREICHPROBABILIDADPROBABILITÀPROB   Returns the probability that values in a range are between two limits
PRODUCT PRODUIT PRODUKTPRODUCTOPRODOTTOMULT   Multiplies its arguments
PROPER NOMPROPRE GROSS2NOMPROPIOMAIUSC.INIZPRI.MAIÚSCULA   Capitalizes the first letter in each word of a text value
PV VA BWVAVAVP   Returns the present value of an investment
QUARTILE QUARTILE QUARTILECUARTILQUARTILEQUARTI   Returns the quartile of a data set
RADIANS RADIANS RADIANTRADIANESRADIANTIRADIANOS
X
Converts degrees to radians
RAND ALEA ZUFALLSZAHLALEATORIOCASUALEALEATÓRIO
X
Returns a random number between 0 and 1
RANK RANG RANGJERARQUIARANGOORDEM
X
Returns the rank of a number in a list of numbers
RATE TAUX ZINSTASATASSOTAXA   Returns the interest rate per period of an annuity
REPLACE REMPLACER ERSETZENREEMPLAZARRIMPIAZZAMUDAR
X
Replaces characters within text
REPT REPT WIEDERHOLENREPETIRRIPETIREPETIR
X
Repeats text a given number of times
RIGHT DROITE RECHTSDERECHADESTRADIREITA
X
Returns the rightmost characters from a text value
ROMAN ROMAIN RÖMISCHNUMERO.ROMANOROMANOROMANO   Converts an arabic numeral to roman, as text
ROUND ARRONDI RUNDENREDONDEARARROTONDAARRED
X
Rounds a number to a specified number of digits
ROUNDDOWN ARRONDI.INF ABRUNDENREDONDEAR.MENOSARROTONDA.PER.DIFARREDONDAR.PARA.BAIXO
X
Rounds a number down, toward zero
ROUNDUP ARRONDI.SUP AUFRUNDENREDONDEAR.MASARROTONDA.PER.ECCARREDONDAR.PARA.CIMA
X
Rounds a number up, away from zero
ROW LIGNE ZEILEFILARIF.RIGALIN
X
Returns the row number of a reference
ROWS LIGNES ZEILENFILASRIGHELINS   Returns the number of rows in a reference
RSQ COEFFICIENT.DETERMINATION BESTIMMTHEITSMASSCOEFICIENTE.R2RQRQUAD   Returns the square of the Pearson product moment correlation coefficient
RTD RTD RTDRTDRTDRTD    
SEARCH CHERCHE SUCHENHALLARRICERCALOCALIZAR
X
Finds one text value within another (not case-sensitive)
SECOND SECONDE SEKUNDESEGUNDOSECONDOSEGUNDO
X
Converts a serial number to a second
SIGN SIGNE VORZEICHENSIGNOSEGNOSINA
X
Returns the sign of a number
SIN SIN SINSENOSENSEN
X
Returns the sine of the given angle
SINH SINH SINHYPSENOHSENHSENH   Returns the hyperbolic sine of a number
SKEW COEFFICIENT.ASYMETRIE SCHIEFECOEFICIENTE.ASIMETRIAASIMMETRIADISTORÇÃO   Returns the skewness of a distribution
SLN AMORLIN LIASLNAMMORT.COSTDPD   Returns the straight-line depreciation of an asset for one period
SLOPE PENTE STEIGUNGPENDIENTEPENDENZAINCLINAÇÃO
X
Returns the slope of the linear regression line
SMALL PETITE.VALEUR KKLEINSTEK.ESIMO.MENORPICCOLOMENOR
X
Returns the k-th smallest value in a data set
SQRT RACINE WURZELRAIZRADQRAIZ
X
Returns a positive square root
STANDARDIZE CENTREE.REDUITE STANDARDISIERUNGNORMALIZACIONNORMALIZZAPADRONIZAR   Returns a normalized value
STDEV ECARTYPE STABWDESVESTDEV.STDESVPAD
X
Estimates standard deviation based on a sample
STDEVA STDEVA STABWADESVESTADEV.STADESVPADA
X
Estimates standard deviation based on a sample, including numbers, text, and logical values
STDEVP ECARTYPEP STABWNDESVESTPDEV.ST.POPDESVPADP
X
Calculates standard deviation based on the entire population
STDEVPA STDEVPA STABWNADESVESTPADEV.ST.POPADESVPADPA
X
Calculates standard deviation based on the entire population, including numbers, text, and logical values
STEYX ERREUR.TYPE.XY STFEHLERYXERROR.TIPICO.XYERR.STD.YXEPADYX   Returns the standard error of the predicted y-value for each x in the regression
SUBSTITUTE SUBSTITUE WECHSELNSUSTITUIRSOSTITUISCISUBSTITUIR
X
Substitutes new text for old text in a text string
SUBTOTAL SOUS.TOTAL TEILERGEBNISSUBTOTALESSUBTOTALESUBTOTA
X
Returns a subtotal in a list or database
SUM SOMME SUMMESUMASOMMASOMA
X
Adds its arguments
SUMIF SOMME.SI SUMMEWENNSUMAR.SISOMMA.SESOMASE
X
Adds the cells specified by a given criteria
SUMPRODUCT SOMMEPROD SUMMENPRODUKTSUMAPRODUCTOMATR.SOMMA.PRODOTTOSOMARPRODUTO   Returns the sum of the products of corresponding array components
SUMSQ SOMME.CARRES QUADRATESUMMESUMA.CUADRADOSSOMMA.QSOMAQUAD   Returns the sum of the squares of the arguments
SUMX2MY2 SOMME.X2MY2 SUMMEX2MY2SUMAX2MENOSY2SOMMA.DIFF.QSOMAX2DY2   Returns the sum of the difference of squares of corresponding values in two arrays
SUMX2PY2 SOMME.X2PY2 SUMMEX2PY2SUMAX2MASY2SOMMA.SOMMA.QSOMAX2SY2   Returns the sum of the sum of squares of corresponding values in two arrays
SUMXMY2 SOMME.XMY2 SUMMEXMY2SUMAXMENOSY2SOMMA.Q.DIFFSOMAXMY2   Returns the sum of squares of differences of corresponding values in two arrays
SYD SYD DIASYDAMMORT.ANNUOSDA   Returns the sum-of-years' digits depreciation of an asset for a specified period
T T TTTT
X
Converts its arguments to text
TAN TAN TANTANTANTAN
X
Returns the tangent of a number
TANH TANH TANHYPTANHTANHTANH   Returns the hyperbolic tangent of a number
TDIST LOI.STUDENT TVERTDISTR.TDISTRIB.TDISTT   Returns the Student's t-distribution
TEXT TEXTE TEXTTEXTOTESTOTEXTO
X
Formats a number and converts it to text
TIME TEMPS ZEITNSHORAORARIOTEMPO
X
Returns the serial number of a particular time
TIMEVALUE TEMPSVAL ZEITWERTHORANUMEROORARIO.VALOREVALOR.TEMPO
X
Converts a time in the form of text to a serial number
TINV LOI.STUDENT.INVERSE TINVDISTR.T.INVINV.TINVT   Returns the inverse of the Student's t-distribution
TODAY AUJOURDHUI HEUTEHOYOGGIHOJE
X
Returns the serial number of today's date
TRANSPOSE TRANSPOSE MTRANSTRANSPONERMATR.TRASPOSTATRANSPOR   Returns the transpose of an array
TREND TENDANCE TRENDTENDENCIATENDENZATENDÊNCIA   Returns values along a linear trend
TRIM SUPPRESPACE GLÄTTENESPACIOSANNULLA.SPAZIARRUMAR   Removes spaces from text
TRIMMEAN MOYENNE.REDUITE GESTUTZTMITTELMEDIA.ACOTADAMEDIA.TRONCATAMÉDIA.INTERNA   Returns the mean of the interior of a data set
TRUE VRAI WAHRVERDADEROVEROVERDADEIRO
X
Returns the logical value of TRUE
TRUNC TRONQUE KÜRZENTRUNCARTRONCATRUNCAR   Truncates a number to an integer
TTEST TEST.STUDENT TTESTPRUEBA.TTEST.TTESTET   Returns the probability associated with a Student's t-test
TYPE TYPE TYPTIPOTIPOTIPO
X
Returns a number indicating the data type of a value
UNION UNION UNIONUNIONUNIONUNION
X
Returns the logical union of an arbitrary number of ranges
UPPER MAJUSCULE GROSSMAYUSCMAIUSCMAIÚSCULA
X
Converts text to uppercase
VALUE CNUM WERTVALORVALOREVALOR
X
Converts a text argument to a number
VAR VAR VARIANZVARVARVAR
X
Estimates variance based on a sample
VARA VARA VARIANZAVARAVARAVARA
X
Estimates variance based on a sample, including numbers, text, and logical values
VARP VAR.P VARIANZENVARPVAR.POPVARP
X
Calculates variance based on the entire population
VARPA VARPA VARIANZENAVARPAVAR.POPAVARPA
X
Calculates variance based on the entire population, including numbers, text, and logical values
VDB VDB VDBDVSAMMORT.VARBDV   Returns the depreciation of an asset for a specified or partial period by using a declining balance method
VLOOKUP RECHERCHEV SVERWEISBUSCARVCERCA.VERTPROCV
X
Looks in the first column of an array and moves across the row to return the value of a cell
WEEKDAY JOURSEM WOCHENTAGDIASEMGIORNO.SETTIMANADIA.DA.SEMANA
X
Converts a serial number to a day of the week
WEIBULL LOI.WEIBULL WEIBULLDIST.WEIBULLWEIBULLWEIBUL   Returns the Weibull distribution
YEAR ANNEE JAHRAÑOANNOANO
X
Converts a serial number to a year
ZTEST TEST.Z GTESTPRUEBA.ZTEST.ZTESTEZ   Returns the one-tailed probability-value of a z-test

All of functions above are supported by xlsgen for reading and writing.

Functions supported by the calculation engine (see the third column of the above table) : a subset of the over 200 built-in Excel functions are currently supported, and support for other functions is being added on a case by case basis. In addition, xlsgen does not currently provide calculation support for the following :

If, upon closing a workbook in Excel that was generated by xlsgen, Excel brings a prompt saying "Microsoft Excel recalculates formulas when opening files last saved by an earlier version of Excel (than the one currently running)", then you may avoid this behavior by setting the appropriate Excel target version. See here.

 

Calculating external workbook references

Detailed here.

 

xlsgen documentation. © ARsT Design all rights reserved.