Formulas and functions¶
Odoo Spreadsheet supports functions found in most spreadsheet solutions, allowing you to perform calculations, retrieve information, and manipulate data using formulas. In addition, using Odoo-specific functions allows you to work with live Odoo data from your database.
To help ensure data accuracy, Odoo Spreadsheet offers various ways to troubleshoot errors and inconsistencies in formulas and functions.
Truco
Use F2 to view the formula behind an active cell, and, if desired, edit it directly in the
cell.
Available functions¶
This section presents the available functions by category. Odoo-specific functions are included both in the relevant category and in a dedicated Odoo category:
Nota
Las fórmulas que contienen funciones que no son compatibles con Excel se reemplazan por su resultado evaluado al exportar una hoja de cálculo.
Arreglo¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
ARRAY.CONSTRAIN(input_range, filas, columnas) |
Muestra un arreglo con resultados limitado a un ancho y alto específicos (no es compatible con Excel) |
CHOOSECOLS(arreglo, col_num, [col_num2, …]) |
|
CHOOSEROWS(arreglo, row_num, [row_num2, …]) |
|
EXPAND(arreglo, filas, [columnas], [pad_with]) |
|
FLATTEN(range, [range2, …]) |
Combina todos los valores de uno o más rangos en una sola columna (no es compatible con Excel). |
FREQUENCY(data, classes) |
|
HSTACK(range1, [range2, …]) |
|
MDETERM(square_matrix) |
|
MINVERSE(square_matrix) |
|
MMULT(matrix1, matrix2) |
|
SUMPRODUCT(range1, [range2, …]) |
|
SUMX2MY2(array_x, array_y) |
|
SUMX2PY2(array_x, array_y) |
|
SUMXMY2(array_x, array_y) |
|
TOCOL(array, [ignore], [scan_by_column]) |
|
TOROW(array, [ignore], [scan_by_column]) |
|
TRANSPOSE(rango) |
|
VSTACK(range1, [range2, …]) |
|
WRAPCOLS(range, wrap_count, [pad_with]) |
|
WRAPROWS(range, wrap_count, [pad_with]) |
Base de datos¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
DAVERAGE(base_de_datos, nombre_de_campo, criterios) |
|
DCOUNT(base_de_datos, nombre_de_campo, criterios) |
|
DCOUNTA(base_de_datos, nombre_de_campo, criterios) |
|
DGET(base_de_datos, nombre_de_campo, criterios) |
|
DMAX(base_de_datos, nombre_de_campo, criterios) |
|
DMIN(base_de_datos, nombre_de_campo, criterios) |
|
DPRODUCT(base_de_datos, nombre_de_campo, criterios) |
|
DSTDEV(base_de_datos, nombre_de_campo, criterios) |
|
DSTDEVP(base_de_datos, nombre_de_campo, criterios) |
|
DSUM(base_de_datos, nombre_de_campo, criterios) |
|
DVAR(base_de_datos, nombre_de_campo, criterios) |
|
DVARP(base_de_datos, nombre_de_campo, criterios) |
Fecha¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
DATE(año, mes, día) |
|
DATEDIF(start_date, end_date, unit) |
|
DATEVALUE(texto_de_fecha) |
|
DAY(núm_de_serie) |
|
DAYS(fecha_final, fecha_inicial) |
|
DAYS360(fecha_inicial, fecha_final, [método]) |
|
EDATE(fecha_inicial, meses) |
|
EOMONTH(fecha_inicial, meses) |
|
HOUR(núm_de_serie) |
|
ISOWEEKNUM(fecha) |
|
MINUTE(núm_de_serie) |
|
MONTH(núm_de_serie) |
|
MONTH.END(núm_de_serie) |
Último día del mes siguiente a una fecha (no es compatible con Excel) |
MONTH.START(núm_de_serie) |
Primer día del mes anterior a una fecha (no es compatible con Excel) |
NETWORKDAYS(fecha_inicial, fecha_final, [vacaciones]) |
|
NETWORKDAYS.INTL(fecha_inicial, fecha_final, [fin_de_semana], [vacaciones]) |
|
NOW() |
|
QUARTER(núm_de_serie) |
Trimestre del año en el que cae una fecha específica (no es compatible con Excel) |
QUARTER.END(núm_de_serie) |
Último día del trimestre del año en el que cae una fecha específica (no es compatible con Excel) |
QUARTER.START(núm_de_serie) |
Primer día del trimestre del año en el que cae una fecha específica (no es compatible con Excel) |
SECOND(núm_de_serie) |
|
TIME(hora, minuto, segundo) |
|
TIMEVALUE(texto_de_hora) |
|
TODAY() |
|
WEEKDAY(núm_de_serie, [tipo]) |
|
WEEKNUM(núm_de_serie, [tipo]) |
|
WORKDAY(fecha_inicial, días, [vacaciones]) |
|
WORKDAY.INTL(fecha_inicial, días, [fin_de_semana], [vacaciones]) |
|
YEAR(núm_de_serie) |
|
YEAR.END(núm_de_serie) |
Último día del año en el que cae una fecha específica (no es compatible con Excel) |
YEAR.START(núm_de_serie) |
Primer día del año en el que cae una fecha específica (no es compatible con Excel) |
YEARFRAC(fecha_inicial, fecha_final, [base]) |
Número exacto de años entre dos fechas (no es compatible con Excel) |
Ingeniería¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
DELTA(número1, [número2]) |
Filtro¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
FILTER(range, condition1, [condition2, …]) |
|
ODOO.FILTER.LABEL(filter_name) |
Returns the label of the current value of a spreadsheet filter (not compatible with Excel) |
ODOO.FILTER.VALUE(nombre_del_filtro) |
Returns the current value of a spreadsheet filter (not compatible with Excel) |
SORT(range, [sort_column, …], [is_ascending, …]) |
|
UNIQUE(range, [by_column], [exactly_once]) |
Financiero¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
ACCRINTM(emisión, liquidación, tasa, v_nominal, [base]) |
|
AMORLINC(coste, fecha_compra, primer_periodo, coste_residual, periodo, tasa, [base]) |
|
COUPDAYBS(liquidación, vencimiento, frecuencia, [base]) |
|
COUPDAYS(liquidación, vencimiento, frecuencia, [base]) |
|
COUPDAYSNC(liquidación, vencimiento, frecuencia, [base]) |
|
COUPNCD(liquidación, vencimiento, frecuencia, [base]) |
|
COUPNUM(liquidación, vencimiento, frecuencia, [base]) |
|
COUPPCD(liquidación, vencimiento, frecuencia, [base]) |
|
CUMIPMT(tasa, núm_periodos, valor_actual, primer_periodo, último_periodo, [tipo]) |
|
CUMPRINC(tasa, núm_periodos, valor_actual, primer_periodo, último_periodo, [tipo]) |
|
DB(coste, valor_residual, vida, periodo, [mes]) |
|
DBB(coste, valor_residual, vida, periodo, [factor]) |
|
DISC(liquidación, vencimiento, precio, amortización, [base]) |
|
DOLLARDE(precio_fractional, fracción) |
|
DOLLARFR(precio_decimal, fracción) |
|
DURATION(liquidación, vencimiento, cupón, rendimiento, frecuencia, [base]) |
|
EFFECT(tasa_nominal, núm_por_año) |
|
FV(tasa, núm_periodos, pago, [valor_actual], [tipo]) |
|
FVSCHEDULE(principal, programación) |
|
INTRATE(liquidación, vencimiento, inversión, amortización, [base]) |
|
IPMT(tasa, periodo, núm_periodos, valor_actual, [valor_futuro], [tipo]) |
|
IRR(valores, [estimación]) |
|
ISPMT((tasa, periodo, núm_periodos, valor_actual) |
|
MDURATION(liquidación, vencimiento, cupón, rendimiento, frecuencia, [base]) |
|
MIRR(valores, tasa_financiación, tasa_reinversión) |
|
NOMINAL(tasa_efectiva, núm_por_año) |
|
NPER(tasa, pago, valor_actual, [valor_futuro], [tipo]) |
|
NPV(tasa, valor1, [valor2], …) |
|
ODOO.ACCOUNT.GROUP(tipo) |
Muestra los ID de las cuentas del grupo indicado (no es compatible con Excel) |
ODOO.BALANCE(códigos_de_cuenta, rango_de_fechas, [desplazamiento], [id_de_la_empresa], [incluir_sin_registrar]) |
Returns the total balance for the specified account(s) and period (not compatible with Excel) |
ODOO.BALANCE.TAG(account_tag_ids, [date_range], [offset], [company_id], [include_unposted]) |
Returns the balance of accounts for the specified tag(s) and period (not compatible with Excel) |
ODOO.CREDIT(códigos_de_cuenta, rango_de_fechas, [desplazamiento], [id_de_la_empresa], [incluir_sin_registrar]) |
Returns the total credit for the specified account(s) and period (not compatible with Excel) |
ODOO.CURRENCY.RATE(moneda_a_convertir, moneda_de_conversión, [fecha]) |
Takes two currency codes as arguments, and returns the exchange rate from the first currency to the second as float (not compatible with Excel) |
ODOO.DEBIT(códigos_de_cuenta, rango_de_fechas, [desplazamiento], [id_de_la_empresa], [incluir_sin_registrar]) |
Returns the total debit for the specified account(s) and period (not compatible with Excel) |
ODOO.FISCALYEAR.END(día, [id_de_la_empresa]) |
Muestra la fecha final del año fiscal e incluye la fecha indicada (no es compatible con Excel) |
ODOO.FISCALYEAR.START(día, [id_de_la_empresa]) |
Muestra la fecha inicial del año fiscal e incluye la fecha indicada (no es compatible con Excel) |
ODOO.PARTNER.BALANCE(partner_ids, [account_codes], [date_range], [offset], [company_id], [include_unposted]) |
Returns the partner balance for the specified account(s) and period (not compatible with Excel) |
ODOO.RESIDUAL([account_codes], [date_range], [offset], [company_id], [include_unposted]) |
Returns the residual amount for the specified account(s) and period (not compatible with Excel) |
PDURATION(tasa, valor_actual, valor_futuro) |
|
PMT(tasa, núm_periodos, valor_actual, [valor_futuro], [tipo]) |
|
PPMT(tasa, periodo, núm_periodos, valor_actual, [valor_futuro], [tipo]) |
|
PRICE(liquidación, vencimiento, tasa, rendimiento, amortización, frecuencia, [base]) |
|
PRICEDISC(liquidación, vencimiento, descuento, amortización, [base]) |
|
PRICEMAT(liquidación, vencimiento, emisión, tasa, rendimiento, [base]) |
|
PV(tasa, núm_periodos, pago, [valor_futuro], [tipo]) |
|
RATE(núm_periodos, pago, valor_actual, [valor_futuro], [tipo], [estimar]) |
|
RECEIVED(liquidación, vencimiento, inversión, descuento, [base]) |
|
RRI(núm_periodos, valor_actual, valor_futuro) |
|
SLN(coste, valor_residual, vida) |
|
SYD(coste, valor_residual, vida, periodo) |
|
TBILLEQ(liquidación, vencimiento, descuento) |
|
TBILLPRICE(liquidación, vencimiento, descuento) |
|
TBILLYIELD(liquidación, vencimiento, precio) |
|
VDB(coste, valor_residual, vida, periodo_inicial, periodo_final, [factor], [sin_cambios]) |
|
XIRR(valores, fechas, [estimación]) |
|
XNPV(tasa, valores, fechas) |
|
YIELD(liquidación, vencimiento, tasa, precio, amortización, frecuencia, [base]) |
|
YIELDDISC(liquidación, vencimiento, precio, amortización, [base]) |
|
YIELDMAT(liquidación, vencimiento, emisión, tasa, precio, [base]) |
Información¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
CELL(info_type, reference) |
|
ISBLANK(valor) |
|
ISERR(valor) |
|
ISERROR(valor) |
|
ISFORMULA(cell_reference) |
|
ISLOGICAL(valor) |
|
ISNA(valor) |
|
ISNONTEXT(valor) |
|
ISNUMBER(valor) |
|
ISTEXT(valor) |
|
NA() |
Lógico¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
AND(expresión_lógica1, [expresión_lógica2, …]) |
|
FALSE() |
|
IF(expresión_lógica, valor_en_caso_de_SI, [valor_en_caso_de_NO]) |
|
IFERROR(valor, [valor_si_error]) |
|
IFNA(valor, [valor_si_error]) |
|
IFS(condición1, valor1, [condición2, …], [valor2, …]) |
|
NOT(expresión_lógica) |
|
OR(expresión_lógica1, [expresión_lógica2, …]) |
|
SWITCH(expression, case1, value1, [case2, …], [value2, …], [default]) |
|
TRUE() |
|
XOR(expresión_lógica1, [expresión_lógica2, …]) |
Búsqueda¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
ADDRESS(row, column, [absolute_relative_mode], [use_a1_notation], [sheet]) |
|
CHOOSE(index, [choice, …]) |
|
COLUMN([referencia]) |
|
COLUMNS(matriz) |
|
DROP(array, rows, [columns]) |
|
FORMULATEXT(cell_reference) |
|
HLOOKUP(valor_buscado, matriz_buscar_en, indicador_filas, [ordenado]) |
|
INDEX(referencia, fila, columna) |
|
INDIRECT(reference, [use_a1_notation]) |
|
LOOKUP((valor_buscado, vector_de_comparación, [vector_resultado]) |
|
MATCH(valor_buscado, matriz_buscada, [tipo_de_coincidencia]) |
|
OFFSET(reference, rows, cols, [height], [width]) |
|
PIVOT(pivot_id, [row_count], [include_total], [include_column_titles], [column_count]) |
Creates a pivot table (not compatible with Excel) |
PIVOT.HEADER(pivot_id, [domain_field_name, …], [domain_value, …]) |
Returns the header of a pivot table (not compatible with Excel) |
PIVOT.VALUE(pivot_id, measure_name, [domain_field_name, …], [domain_value, …]) |
Returns the value from a pivot table (not compatible with Excel) |
ROW([referencia]) |
|
ROWS(matriz) |
|
TAKE(array, rows, [columns]) |
|
VLOOKUP(valor_buscado, matriz_buscar_en, indicador_filas, [ordenado]) |
|
XLOOKUP(valor_buscado, matriz_buscada, matriz_devuelta, [si_no_se_encuentra], [modo_de_coincidencia], [modo_de_búsqueda]) |
Matemática¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
ABS(valor) |
|
ACOS(valor) |
|
ACOSH(valor) |
|
ACOT(valor) |
|
ACOTH(valor) |
|
ASIN(valor) |
|
ASINH(valor) |
|
ATAN(valor) |
|
ATAN2(x, y) |
|
ATANH(valor) |
|
CEILING(valor, [factor]) |
|
CEILING.MATH(número, [cifra_significativa], [mode]) |
|
CEILING.PRECISE(número, [cifra_significativa]) |
|
COS(ángulo) |
|
COSH(valor) |
|
COT(ángulo) |
|
COTH(valor) |
|
COUNTBLANK(valor1, [valor2, …]) |
|
COUNTIF(rango, criterio) |
|
COUNTIFS(rango_criterios1, criterios1, [rango_criterios2, …], [criterios2, …]) |
|
CSC(ángulo) |
|
CSCH(valor) |
|
DECIMAL(valor, base) |
|
DEGREES(ángulo) |
|
EXP(valor) |
|
FLOOR(valor, [factor]) |
|
FLOOR.MATH(número, [cifra_significativa], [mode]) |
|
FLOOR.PRECISE(número, [cifra_significativa]) |
|
INT(valor) |
|
ISEVEN(valor) |
|
ISO.CEILING(número, [cifra_significativa]) |
|
ISODD(valor) |
|
LN(valor) |
|
LOG(value, [base]) |
Returns the logarithm of a number for a given base (not compatible with Excel) |
MOD(número, divisor) |
|
MUNIT(dimension) |
|
ODD(valor) |
|
PI() |
|
POWER(base, exponente) |
|
PRODUCT(factor1, [factor2, …]) |
|
RAND() |
|
RANDARRAY([rows], [columns], [min], [max], [whole_number]) |
|
RANDBETWEEN(inferior, superior) |
|
ROUND(valor, [núm_decimales]) |
|
ROUNDDOWN(valor, [núm_decimales]) |
|
ROUNDUP(valor, [núm_decimales]) |
|
SEC(ángulo) |
|
SECH(valor) |
|
SEQUENCE(rows, [columns], [start], ][step]) |
|
SIN(ángulo) |
|
SINH(valor) |
|
SQRT(valor) |
|
SUBTOTAL(function_code, ref1, [ref2, …]) |
|
SUM(valor1, [valor2, …]) |
|
SUMIF(rango_criterios, criterios, [rango_suma]) |
|
SUMIFS(rango_suma, rango_criterios1, criterios1, [rango_criterios2, …], [criterios2, …]) |
|
TAN(ángulo) |
|
TANH(valor) |
|
TRUNC(valor, [núm_decimales]) |
Operadores¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
ADD(valor1, valor2) |
La suma de dos números (no es compatible con Excel) |
CONCAT(valor1, valor2) |
|
DIVIDE(número, divisor) |
Un número dividido por otro (no es compatible con Excel) |
EQ(valor1, valor2) |
Igual (no es compatible con Excel) |
GT(valor1, valor2) |
Estrictamente mayor que (no es compatible con Excel) |
GTE(valor1, valor2) |
Mayor que o igual a (no es compatible con Excel) |
LT(valor1, valor2) |
Menor que (no es compatible con Excel) |
LTE(valor1, valor2) |
Menor que o igual a (no es compatible con Excel) |
MINUS(valor1, valor2) |
La diferencia de dos números (no es compatible con Excel) |
MULTIPLY(factor1, factor2) |
El producto de dos números (no es compatible con Excel) |
NE(valor1, valor2) |
No es igual (no es compatible con Excel) |
POW(base, exponente) |
Un número elevado a una potencia (no es compatible con Excel) |
UMINUS(valor) |
Un número con el signo invertido (no es compatible con Excel) |
UNARY.PERCENT(porcentaje) |
Valor interpretado en porcentaje (no es compatible con Excel) |
UPLUS(valor) |
Un número específico, sin cambios (no es compatible con Excel) |
Analizador¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
CONVERT(number, from_unit, to_unit) |
Estadístico¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
AVEDEV(valor1, [valor2, …]) |
|
AVERAGE(valor1, [valor2, …]) |
|
AVERAGEA(valor1, [valor2, …]) |
|
AVERAGEIF(rango_criterios, criterios, [rango_promedio]) |
|
AVERAGEIFS(rango_promedio, rango_criterios1, criterios1, [rango_criterios2, …], [criterios2, …]) |
|
AVERAGE.WEIGHTED(valores, ponderaciones, [valores_adicionales, …], [ponderaciones_adicionales, …]) |
Promedio ponderado (no es compatible con Excel) |
CORREL(data_y, data_x) |
|
COUNT(valor1, [valor2, …]) |
|
COUNTA(valor1, [valor2, …]) |
|
COVAR(matriz_y, matriz_x) |
|
COVARIANCE.P(matriz_y, matriz_x) |
|
COVARIANCE.S(matriz_y, matriz_x) |
|
FORECAST(x, matriz_y, matriz_x) |
|
GROWTH(known_data_y, [known_data_x], [new_data_x], [b]) |
Ajusta los puntos a una tendencia de crecimiento exponencial (no compatible con Excel). |
INTERCEPT(data_y, data_x) |
|
LARGE(matriz, x) |
|
LINEST(data_y, [data_x], [calculate_b], [verbose]) |
|
LOGEST(data_y, [data_x], [calculate_b], [verbose]) |
|
MATTHEWS(data_x, data_y) |
Computes the Matthews correlation coefficient of a dataset (not compatible with Excel) |
MAX(valor1, [valor2, …]) |
|
MAXA(valor1, [valor2, …]) |
|
MAXIFS(rango, rango_criterios1, criterios1, [rango_criterios2, …], [criterios2, …]) |
|
MEDIAN(valor1, [valor2, …]) |
|
MIN(valor1, [valor2, …]) |
|
MINA(valor1, [valor2, …]) |
|
MINIFS(rango, rango_criterios1, criterios1, [rango_criterios2, …], [criterios2, …]) |
|
PEARSON(data_y, data_x) |
|
PERCENTILE(matriz, porcentaje) |
|
PERCENTILE.EXC(matriz, porcentaje) |
|
PERCENTILE.INC(matriz, porcentaje) |
|
POLYFIT.COEFFS(data_y, data_x, order, [intercept]) |
Computes the coefficients of polynomial regression of the dataset (not compatible with Excel) |
POLYFIT.FORECAST(x, data_y, data_x, order, [intercept]) |
Predicts value by computing a polynomial regression of the dataset (not compatible with Excel) |
QUARTILE(matriz, cuartil) |
|
QUARTILE.EXC(matriz, cuartil) |
|
QUARTILE.INC(matriz, cuartil) |
|
RANK(value, data, [is_ascending]) |
|
RSQ(data_y, data_x) |
|
SLOPE(data_y, data_x) |
|
SMALL(matriz, x) |
|
SPEARMAN(data_y, data_x) |
Computes the Spearman rank correlation coefficient of a dataset (not compatible with Excel) |
STDEV(valor1, [valor2, …]) |
|
STDEV.P(valor1, [valor2, …]) |
|
STDEV.S(valor1, [valor2, …]) |
|
STDEVA(valor1, [valor2, …]) |
|
STDEVP(valor1, [valor2, …]) |
|
STDEVPA(valor1, [valor2, …]) |
|
STEYX(data_y, data_x) |
|
TREND(known_data_y, [known_data_x], [new_data_x], [b]) |
Ajusta los puntos a una tendencia lineal derivada mediante mínimos cuadrados (no compatible con Excel). |
VAR(valor1, [valor2, …]) |
|
VAR.P(valor1, [valor2, …]) |
|
VAR.S(valor1, [valor2, …]) |
|
VARA(valor1, [valor2, …]) |
|
VARP(valor1, [valor2, …]) |
|
VARPA(valor1, [valor2, …]) |
Texto¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
ARRAYTOTEXT(array, [format]) |
|
CHAR(número) |
|
CLEAN(texto) |
|
CONCATENATE(texto1, [texto2, …]) |
|
EXACT(texto1, texto2) |
|
FIND(texto_buscado, dentro_del_texto, [núm_inicial]) |
|
JOIN(delimitador, valor_o_matriz1, [valor_o_matriz2, …]) |
Concatena elementos de matrices con un delimitador (no es compatible con Excel) |
LEFT(texto, [núm_de_caracteres]) |
|
LEN(texto) |
|
LOWER(texto) |
|
MID(texto, posición_inicial, núm_de_caracteres) |
|
PROPER(texto_a_convertir_a_mayúsculas) |
|
REPLACE(texto_original, núm_inicial, núm_de_caracteres, texto_nuevo) |
|
REGEXEXTRACT(text, pattern, [return_mode], [case_sensitivity]) |
|
RIGHT(texto, [núm_de_caracteres]) |
|
SEARCH(texto_buscado, dentro_del_texto, [núm_inicial]) |
|
SPLIT(text, delimiter, [split_by_each], [remove_empty_text]) |
Splits text by specific character delimiter(s) (not compatible with Excel) |
SUBSTITUTE(dentro_del_texto, texto_buscado, texto_nuevo, [núm_de_ocurrencia]) |
|
TEXT(número, formato) |
|
TEXTAFTER(text, delimiter, [instance_num], [match_mode], [match_end], [if_not_found]) |
|
TEXTBEFORE(text, delimiter, [instance_num], [match_mode], [match_end], [if_not_found]) |
|
TEXTJOIN(delimitador, ignorar_vacío, texto1, [texto2],…) |
|
TEXTSPLIT(text, col_delimiter, [row_delimiter], [ignore_empty], [match_mode], [pad_with]) |
|
TRIM(texto) |
|
UPPER(texto) |
|
VALUE(text) |
Web¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
HYPERLINK(url, [link_label]) |
Odoo-specific functions¶
This section contains functions that interact directly with your Odoo database.
Arreglo¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
ARRAY.CONSTRAIN(input_range, filas, columnas) |
Muestra un arreglo con resultados limitado a un ancho y alto específicos (no es compatible con Excel) |
FLATTEN(range, [range2, …]) |
Combina todos los valores de uno o más rangos en una sola columna (no es compatible con Excel). |
Fecha¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
MONTH.END(núm_de_serie) |
Último día del mes siguiente a una fecha (no es compatible con Excel) |
MONTH.START(núm_de_serie) |
Primer día del mes anterior a una fecha (no es compatible con Excel) |
QUARTER(núm_de_serie) |
Trimestre del año en el que cae una fecha específica (no es compatible con Excel) |
QUARTER.END(núm_de_serie) |
Último día del trimestre del año en el que cae una fecha específica (no es compatible con Excel) |
QUARTER.START(núm_de_serie) |
Primer día del trimestre del año en el que cae una fecha específica (no es compatible con Excel) |
YEAR.END(núm_de_serie) |
Último día del año en el que cae una fecha específica (no es compatible con Excel) |
YEAR.START(núm_de_serie) |
Primer día del año en el que cae una fecha específica (no es compatible con Excel) |
YEARFRAC(fecha_inicial, fecha_final, [base]) |
Número exacto de años entre dos fechas (no es compatible con Excel) |
Financiero¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
ODOO.ACCOUNT.GROUP(tipo) |
Muestra los ID de las cuentas del grupo indicado (no es compatible con Excel) |
ODOO.BALANCE(códigos_de_cuenta, rango_de_fechas, [desplazamiento], [id_de_la_empresa], [incluir_sin_registrar]) |
Returns the total balance for the specified account(s) and period (not compatible with Excel) |
ODOO.BALANCE.TAG(account_tag_ids, [date_range], [offset], [company_id], [include_unposted]) |
Returns the balance of accounts for the specified tag(s) and period (not compatible with Excel) |
ODOO.CREDIT(códigos_de_cuenta, rango_de_fechas, [desplazamiento], [id_de_la_empresa], [incluir_sin_registrar]) |
Returns the total credit for the specified account(s) and period (not compatible with Excel) |
ODOO.CURRENCY.RATE(moneda_a_convertir, moneda_de_conversión, [fecha]) |
Takes two currency codes as arguments, and returns the exchange rate from the first currency to the second as float (not compatible with Excel) |
ODOO.DEBIT(códigos_de_cuenta, rango_de_fechas, [desplazamiento], [id_de_la_empresa], [incluir_sin_registrar]) |
Returns the total debit for the specified account(s) and period (not compatible with Excel) |
ODOO.FISCALYEAR.START(día, [id_de_la_empresa]) |
Muestra la fecha inicial del año fiscal e incluye la fecha indicada (no es compatible con Excel) |
ODOO.FISCALYEAR.END(día, [id_de_la_empresa]) |
Muestra la fecha final del año fiscal e incluye la fecha indicada (no es compatible con Excel) |
ODOO.PARTNER.BALANCE(partner_ids, [account_codes], [date_range], [offset], [company_id], [include_unposted]) |
Returns the partner balance for the specified account(s) and period (not compatible with Excel) |
ODOO.RESIDUAL([account_codes], [date_range], [offset], [company_id], [include_unposted]) |
Returns the residual amount for the specified account(s) and period (not compatible with Excel) |
Búsqueda¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
PIVOT(pivot_id, [row_count], [include_total], [include_column_titles], [column_count]) |
Creates a pivot table (not compatible with Excel) |
PIVOT.HEADER(pivot_id, [domain_field_name, …], [domain_value, …]) |
Returns the header of a pivot table (not compatible with Excel) |
PIVOT.VALUE(pivot_id, measure_name, [domain_field_name, …], [domain_value, …]) |
Returns the value from a pivot table (not compatible with Excel) |
Matemática¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
COUNTUNIQUE(valor1, [valor2, …]) |
Cuenta el número de valores únicos en un rango (no es compatible con Excel) |
COUNTUNIQUEIFS(rango, rango_criterios1, criterios1, [rango_criterios2, …], [criterios2, …]) |
Cuenta el número de valores únicos en un rango, filtrado por un conjunto de criterios (no es compatible con Excel) |
Varios¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
FORMAT.LARGE.NUMBER(valor, [unidad]) |
Applies a large number format (not compatible with Excel) |
ODOO.LIST(id_de_la_lista, índice, nombre_del_campo) |
Returns the value from a list (not compatible with Excel) |
ODOO.LIST.HEADER(id_de_la_lista, nombre_del_campo) |
Returns the header of a list (not compatible with Excel) |
ODOO.SURVEY(survey_id) |
Returns the results of an Odoo survey (not compatible with Excel) |
Operadores¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
ADD(valor1, valor2) |
La suma de dos números (no es compatible con Excel) |
DIVIDE(número, divisor) |
Un número dividido por otro (no es compatible con Excel) |
EQ(valor1, valor2) |
Igual (no es compatible con Excel) |
GT(valor1, valor2) |
Estrictamente mayor que (no es compatible con Excel) |
GTE(valor1, valor2) |
Mayor que o igual a (no es compatible con Excel) |
LT(valor1, valor2) |
Menor que (no es compatible con Excel) |
LTE(valor1, valor2) |
Menor que o igual a (no es compatible con Excel) |
MINUS(valor1, valor2) |
La diferencia de dos números (no es compatible con Excel) |
MULTIPLY(factor1, factor2) |
El producto de dos números (no es compatible con Excel) |
NE(valor1, valor2) |
No es igual (no es compatible con Excel) |
POW(base, exponente) |
Un número elevado a una potencia (no es compatible con Excel) |
UMINUS(valor) |
Un número con el signo invertido (no es compatible con Excel) |
UNARY.PERCENT(porcentaje) |
Valor interpretado en porcentaje (no es compatible con Excel) |
UPLUS(valor) |
Un número específico, sin cambios (no es compatible con Excel) |
Estadístico¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
AVERAGE.WEIGHTED(valores, ponderaciones, [valores_adicionales, …], [ponderaciones_adicionales, …]) |
Promedio ponderado (no es compatible con Excel) |
GROWTH(known_data_y, [known_data_x], [new_data_x], [b]) |
Ajusta los puntos a una tendencia de crecimiento exponencial (no compatible con Excel). |
MATTHEWS(data_x, data_y) |
Computes the Matthews correlation coefficient of a dataset (not compatible with Excel) |
POLYFIT.COEFFS(data_y, data_x, order, [intercept]) |
Computes the coefficients of polynomial regression of the dataset (not compatible with Excel) |
POLYFIT.FORECAST(x, data_y, data_x, order, [intercept]) |
Predicts value by computing a polynomial regression of the dataset (not compatible with Excel) |
SPEARMAN(data_y, data_x) |
Computes the Spearman rank correlation coefficient of a dataset (not compatible with Excel) |
TREND(known_data_y, [known_data_x], [new_data_x], [b]) |
Ajusta los puntos a una tendencia lineal derivada mediante mínimos cuadrados (no compatible con Excel). |
Texto¶
Nombre y argumentos |
Descripción o enlace |
|---|---|
JOIN(delimitador, valor_o_matriz1, [valor_o_matriz2, …]) |
Concatena elementos de matrices con un delimitador (no es compatible con Excel) |
Solución de problemas¶
Understand errors¶
When a formula is unable to return a value, the cell displays an error message that identifies the
type of error. For example, #N/A indicates that a value is not found when using a lookup function,
#NAME? indicates that a function name is misspelled or unrecognised, while #BAD_EXPR indicates
an issue with the arguments of a function.
Hovering over a cell with an error message reveals a card that provides more details about the error.
Truco
Use the IFERROR function to provide an alternative result when an error occurs. For example, to avoid multiple
#N/Aerrors when using a VLOOKUP function, the following formula returnsNot Foundinstead of#N/A:=IFERROR(VLOOKUP(D1, A:B, 1, 0), "Not Found").In a large dataset, use the Irregularity map to visually highlight cells whose formulas are not consistent with the pattern established by surrounding cells.
Detect formula inconsistencies¶
Issues with formulas, such as accidentally overwriting a formula with a fixed value, breaking a cell reference, or not respecting the arguments of a function, can result in incorrect values being displayed. In a large dataset, such errors can be particularly difficult to identify manually.
Odoo Spreadsheet’s Irregularity map analyzes formulas for patterns and highlights anomalies visually: cells whose formulas follow the same pattern share the same color, while anomalies are shown in a different color.
To use the tool, click from the menu bar, then check the spreadsheet for inconsistencies. To turn off the irregularity map, click Irregularity map or Turn off on the banner below the toolbar.
Example
In the example (in which the formulas have been made visible by selecting from the menu bar), column D contains the amount of commission earned over the first and second quarters. This is calculated by adding the sales of the two quarters, shown in columns B and C, then multiplying it by the bonus rate in cell G1.
The irregularity map identifies the patterns in the formulas in column D. Cells that follow the pattern of the initial formula used in cell D2 have the same red color, while the following anomalies are highlighted separately:
Cell D4: This cell features a static value instead of the formula.
Cell D5: The formula in this cell does not follow the pattern of the initial formula.
Cells D8 and D9: Cell D8 is missing the absolute reference (
$) onG1; when the formula is dragged to cell D9, this creates a referencing error because cell G2 is empty. As the formulas in the two cells follow the same pattern, they share the same color.