A spreadsheet formula starts with = and can use any of the functions below, listed by category as Insert > Function lists them. They answer as Google Sheets' do, and the OpenFormula ones are those only OpenDocument and Excel know. Arguments in [brackets] are optional, and … means you can give as many as you like. Help > Function List opens this page.
How to write formulas, refer to cells and other sheets, and use arrays, named ranges and named functions is in Formulas and Functions.
Array
| Function | Does | Example |
|---|---|---|
BYCOL(array, LAMBDA) | One value for each column by a LAMBDA | =BYCOL(A1:C3, LAMBDA(col, MAX(col))) |
BYROW(array, LAMBDA) | One value for each row by a LAMBDA | =BYROW(A1:C3, LAMBDA(row, SUM(row))) |
CHOOSECOLS(array, col_num1, [col_num2, …]) | The columns of an array picked by number, negative from the end | =CHOOSECOLS(A1:E5, 1, -1) |
CHOOSEROWS(array, row_num1, [row_num2, …]) | The rows of an array picked by number, negative from the end | =CHOOSEROWS(A1:B5, 1, 3) |
FLATTEN(range1, [range2, …]) | Every value of the ranges in one column | =FLATTEN(A1:B2) |
FREQUENCY(data, classes) | How many values fall in each class, and above them all | =FREQUENCY(A2:A40, B2:B5) |
GROWTH(known_data_y, [known_data_x], [new_data_x], [b]) | Values on the best exponential curve at new x values | =GROWTH(B2:B10, A2:A10, A11:A13) |
HSTACK(range1, [range2, …]) | Ranges side by side, as one array | =HSTACK(A1:B3, D1:D3) |
LINEST(known_data_y, [known_data_x], [calculate_b], [verbose]) | The slopes and intercept of the least-squares line, with its statistics if asked | =LINEST(B2:B10, A2:A10) |
LOGEST(known_data_y, [known_data_x], [b], [verbose]) | The factors of the best exponential curve, with its statistics if asked | =LOGEST(B2:B10, A2:A10) |
MAKEARRAY(rows, columns, LAMBDA) | An array of the given size, each value by a LAMBDA | =MAKEARRAY(2, 3, LAMBDA(r, c, r*c)) |
MAP(array1, [array2, …], LAMBDA) | Each value mapped by a LAMBDA | =MAP(A1:A5, LAMBDA(x, x*2)) |
MDETERM(square_matrix) | The determinant of a square matrix | =MDETERM(A1:C3) |
MINVERSE(square_matrix) | The inverse of a square matrix | =MINVERSE(A1:C3) |
MMULT(matrix1, matrix2) | The matrix product of two matrices | =MMULT(A1:B3, C1:F2) |
REDUCE(initial_value, array, LAMBDA) | The array reduced to one result by a LAMBDA | =REDUCE(0, A1:A5, LAMBDA(total, x, total+x)) |
SCAN(initial_value, array, LAMBDA) | Every step of reducing the array, as an array | =SCAN(0, A1:A5, LAMBDA(total, x, total+x)) |
SORTBY(range, by_range1, [order1], [by_range2, order2, …]) | A range sorted by other ranges | =SORTBY(A2:A20, B2:B20, -1) |
SUMPRODUCT(array1, [array2, …]) | Multiplies matching items of arrays and adds the products | =SUMPRODUCT(B2:B5, C2:C5) |
SUMX2MY2(array_x, array_y) | Adds the differences of the squares of paired values | =SUMX2MY2(A2:A9, B2:B9) |
SUMX2PY2(array_x, array_y) | Adds the sums of the squares of paired values | =SUMX2PY2(A2:A9, B2:B9) |
SUMXMY2(array_x, array_y) | Adds the squares of the differences of paired values | =SUMXMY2(A2:A9, B2:B9) |
TOCOL(array_or_range, [ignore], [scan_by_column]) | An array as one column, empties or errors left out if asked | =TOCOL(A1:C3, 1) |
TOROW(array_or_range, [ignore], [scan_by_column]) | An array as one row, empties or errors left out if asked | =TOROW(A1:C3, 1) |
TRANSPOSE(range) | A range with rows and columns swapped | =TRANSPOSE(A1:C4) |
TREND(known_data_y, [known_data_x], [new_data_x], [b]) | Values on the least-squares line at new x values | =TREND(B2:B10, A2:A10, A11:A13) |
VSTACK(range1, [range2, …]) | Ranges one under another, as one array | =VSTACK(A2:C4, A6:C8) |
WRAPCOLS(range, wrap_count, [pad_with]) | A row or column wrapped into columns of a length | =WRAPCOLS(A1:E1, 2) |
WRAPROWS(range, wrap_count, [pad_with]) | A row or column wrapped into rows of a length | =WRAPROWS(A1:E1, 2) |
Database
| Function | Does | Example |
|---|---|---|
DAVERAGE(database, field, criteria) | The average of a field of the records that meet criteria | =DAVERAGE(A1:D20, "Price", F1:F2) |
DCOUNT(database, field, criteria) | How many numbers a field of the matching records holds | =DCOUNT(A1:D20, "Price", F1:F2) |
DCOUNTA(database, field, criteria) | How many values a field of the matching records holds | =DCOUNTA(A1:D20, "Price", F1:F2) |
DGET(database, field, criteria) | The field of the one record that meets criteria | =DGET(A1:D20, "Price", {"Name"; "Egg"}) |
DMAX(database, field, criteria) | The largest number in a field of the matching records | =DMAX(A1:D20, "Price", F1:F2) |
DMIN(database, field, criteria) | The smallest number in a field of the matching records | =DMIN(A1:D20, "Price", F1:F2) |
DPRODUCT(database, field, criteria) | Multiplies a field of the records that meet criteria | =DPRODUCT(A1:D20, "Price", F1:F2) |
DSTDEV(database, field, criteria) | The sample standard deviation of a field of the matching records | =DSTDEV(A1:D20, "Price", F1:F2) |
DSTDEVP(database, field, criteria) | The population standard deviation of a field of the matching records | =DSTDEVP(A1:D20, "Price", F1:F2) |
DSUM(database, field, criteria) | Adds a field of the records that meet criteria | =DSUM(A1:D20, "Price", F1:F2) |
DVAR(database, field, criteria) | The sample variance of a field of the matching records | =DVAR(A1:D20, "Price", F1:F2) |
DVARP(database, field, criteria) | The population variance of a field of the matching records | =DVARP(A1:D20, "Price", F1:F2) |
Date
| Function | Does | Example |
|---|---|---|
DATE(year, month, day) | A date from its parts | =DATE(2026, 10, 8) |
DATEDIF(start, end, unit) | The time between two dates in years ("Y"), months ("M") or days ("D") | =DATEDIF(A2, TODAY(), "Y") |
DATEVALUE(text) | A date typed as text, as a date | =DATEVALUE("8 Oct 2026") |
DAY(date) | The day of the month | =DAY(A2) |
DAYS(end, start) | The days between two dates | =DAYS(B2, A2) |
DAYS360(start, end, [method]) | The days between two dates in a 360-day year | =DAYS360(A2, B2) |
EDATE(start, months) | The date a number of months away | =EDATE(A2, 3) |
EOMONTH(start, months) | The last day of a month a number of months away | =EOMONTH(A2, 0) |
EPOCHTODATE(timestamp, [unit]) | A Unix time as a date and time in UTC | =EPOCHTODATE(1655906710) |
HOUR(time) | The hour of a time | =HOUR(A2) |
ISOWEEKNUM(date) | The ISO week of the year | =ISOWEEKNUM(A2) |
MINUTE(time) | The minute of a time | =MINUTE(A2) |
MONTH(date) | The month of a date (1 to 12) | =MONTH(A2) |
NETWORKDAYS(start, end, [holidays]) | The working days between two dates | =NETWORKDAYS(A2, B2) |
NETWORKDAYS.INTL(start, end, [weekend], [holidays]) | The working days between two dates, with any weekend | =NETWORKDAYS.INTL(A2, B2, 7) |
NOW() | The date and time now | =NOW() |
SECOND(time) | The second of a time | =SECOND(A2) |
TIME(hour, minute, second) | A time from its parts | =TIME(14, 30, 0) |
TIMEVALUE(text) | A time typed as text, as a time | =TIMEVALUE("2:30 pm") |
TODAY() | Today's date | =TODAY() |
WEEKDAY(date, [type]) | The day of the week as a number | =WEEKDAY(A2, 2) |
WEEKNUM(date, [type]) | The week of the year | =WEEKNUM(A2) |
WORKDAY(start, days, [holidays]) | The date a number of working days away | =WORKDAY(A2, 10) |
WORKDAY.INTL(start, days, [weekend], [holidays]) | The date a number of working days away, with any weekend | =WORKDAY.INTL(A2, 10, "0000011") |
YEAR(date) | The year of a date | =YEAR(A2) |
YEARFRAC(start, end, [basis]) | The share of a year between two dates | =YEARFRAC(A2, B2) |
Engineering
| Function | Does | Example |
|---|---|---|
BIN2DEC(signed_binary_number) | A signed binary number as decimal | =BIN2DEC("1101") |
BIN2HEX(signed_binary_number, [significant_digits]) | A signed binary number as signed hexadecimal | =BIN2HEX("1101") |
BIN2OCT(signed_binary_number, [significant_digits]) | A signed binary number as signed octal | =BIN2OCT("1101") |
BITAND(value1, value2) | The bitwise AND of two whole numbers | =BITAND(10, 9) |
BITLSHIFT(value, shift_amount) | A whole number’s bits shifted left | =BITLSHIFT(9, 2) |
BITOR(value1, value2) | The bitwise OR of two whole numbers | =BITOR(10, 9) |
BITRSHIFT(value, shift_amount) | A whole number’s bits shifted right | =BITRSHIFT(36, 2) |
BITXOR(value1, value2) | The bitwise exclusive OR of two whole numbers | =BITXOR(10, 9) |
COMPLEX(real_part, imaginary_part, [suffix]) | A complex number from its parts | =COMPLEX(3, 4) |
DEC2BIN(decimal_number, [significant_digits]) | A decimal number as signed binary | =DEC2BIN(255) |
DEC2HEX(decimal_number, [significant_digits]) | A decimal number as signed hexadecimal | =DEC2HEX(255) |
DEC2OCT(decimal_number, [significant_digits]) | A decimal number as signed octal | =DEC2OCT(255) |
DELTA(number1, [number2]) | 1 when two numbers are equal, else 0 | =DELTA(A2, 2) |
ERF(lower_bound, [upper_bound]) | The error function from 0, or between two bounds | =ERF(1) |
ERF.PRECISE(lower_bound, [upper_bound]) | The error function from 0, or between two bounds | =ERF.PRECISE(1) |
GESTEP(value, [step]) | 1 when a value is at least the step, else 0 | =GESTEP(5, 2) |
HEX2BIN(signed_hexadecimal_number, [significant_digits]) | A signed hexadecimal number as signed binary | =HEX2BIN("ff") |
HEX2DEC(signed_hexadecimal_number) | A signed hexadecimal number as decimal | =HEX2DEC("ff") |
HEX2OCT(signed_hexadecimal_number, [significant_digits]) | A signed hexadecimal number as signed octal | =HEX2OCT("ff") |
IMABS(number) | The modulus of a complex number | =IMABS("3+4i") |
IMAGINARY(complex_number) | The imaginary part of a complex number | =IMAGINARY("3+4i") |
IMARGUMENT(number) | The angle of a complex number, in radians | =IMARGUMENT("1+i") |
IMCONJUGATE(number) | A complex number with its imaginary part negated | =IMCONJUGATE("3+4i") |
IMCOS(number) | The cosine of a complex number | =IMCOS("1+i") |
IMCOSH(number) | The hyperbolic cosine of a complex number | =IMCOSH("1+i") |
IMCOT(number) | The cotangent of a complex number | =IMCOT("1+i") |
IMCOTH(number) | The hyperbolic cotangent of a complex number | =IMCOTH("1+i") |
IMCSC(number) | The cosecant of a complex number | =IMCSC("1+i") |
IMCSCH(number) | The hyperbolic cosecant of a complex number | =IMCSCH("1+i") |
IMDIV(dividend, divisor) | One complex number divided by another | =IMDIV("11+16i", "3+2i") |
IMEXP(exponent) | e to the power of a complex number | =IMEXP("1+i") |
IMLOG(value, base) | The logarithm of a complex number to a base | =IMLOG("1+i", 3.5) |
IMLOG10(value) | The base-10 logarithm of a complex number | =IMLOG10("1+i") |
IMLOG2(value) | The base-2 logarithm of a complex number | =IMLOG2("1+i") |
IMPRODUCT(factor1, [factor2, …]) | Multiplies complex numbers | =IMPRODUCT("3+4i", 2) |
IMREAL(complex_number) | The real part of a complex number | =IMREAL("3+4i") |
IMSEC(number) | The secant of a complex number | =IMSEC("1+i") |
IMSECH(number) | The hyperbolic secant of a complex number | =IMSECH("1+i") |
IMSIN(number) | The sine of a complex number | =IMSIN("1+i") |
IMSINH(number) | The hyperbolic sine of a complex number | =IMSINH("1+i") |
IMSUB(first_number, second_number) | One complex number minus another | =IMSUB("13+4i", "5+3i") |
IMSUM(value1, [value2, …]) | Adds complex numbers | =IMSUM("1+2i", "3+4i") |
IMTAN(number) | The tangent of a complex number | =IMTAN("1+i") |
IMTANH(number) | The hyperbolic tangent of a complex number | =IMTANH("1+i") |
OCT2BIN(signed_octal_number, [significant_digits]) | A signed octal number as signed binary | =OCT2BIN("17") |
OCT2DEC(signed_octal_number) | A signed octal number as decimal | =OCT2DEC("17") |
OCT2HEX(signed_octal_number, [significant_digits]) | A signed octal number as signed hexadecimal | =OCT2HEX("17") |
Filter
| Function | Does | Example |
|---|---|---|
FILTER(range, condition1, [condition2, …]) | The rows that meet every condition | =FILTER(A2:C20, C2:C20>100) |
SORT(range, [column], [ascending], [column2, ascending2, …]) | A range sorted by its columns, or by a column beside it | =SORT(A2:C20, 3, FALSE) |
SORTN(range, [n], [ties_mode], [column1, ascending1, …]) | The first n rows of a range once sorted, ties shown as asked | =SORTN(A2:C20, 3, 0, B2:B20, FALSE) |
UNIQUE(range, [by_column], [exactly_once]) | The distinct rows of a range | =UNIQUE(A2:A20) |
Financial
| Function | Does | Example |
|---|---|---|
ACCRINT(issue, first_payment, settlement, rate, redemption, frequency, [basis], [calc_method]) | The interest a periodic security accrued | =ACCRINT(A2, B2, C2, 5%, 1000, 2) |
ACCRINTM(issue, maturity, rate, [redemption], [basis]) | The interest a security paying at maturity accrued | =ACCRINTM(A2, B2, 5%, 1000) |
AMORLINC(cost, purchase_date, first_period_end, salvage, period, rate, [basis]) | Depreciation for a period, French accounting | =AMORLINC(1000, A2, B2, 100, 1, 15%) |
COUPDAYBS(settlement, maturity, frequency, [basis]) | Days from the last coupon to settlement | =COUPDAYBS(A2, B2, 2) |
COUPDAYS(settlement, maturity, frequency, [basis]) | Days in the coupon period holding settlement | =COUPDAYS(A2, B2, 2) |
COUPDAYSNC(settlement, maturity, frequency, [basis]) | Days from settlement to the next coupon | =COUPDAYSNC(A2, B2, 2) |
COUPNCD(settlement, maturity, frequency, [basis]) | The next coupon date after settlement | =COUPNCD(A2, B2, 2) |
COUPNUM(settlement, maturity, frequency, [basis]) | How many coupons are left after settlement | =COUPNUM(A2, B2, 2) |
COUPPCD(settlement, maturity, frequency, [basis]) | The last coupon date on or before settlement | =COUPPCD(A2, B2, 2) |
CUMIPMT(rate, periods, present_value, first_period, last_period, type) | The interest paid from one period to another | =CUMIPMT(5%/12, 60, 20000, 1, 12, 0) |
CUMPRINC(rate, periods, present_value, first_period, last_period, type) | The principal paid from one period to another | =CUMPRINC(5%/12, 60, 20000, 1, 12, 0) |
DB(cost, salvage, life, period, [months]) | Fixed declining balance depreciation for a period | =DB(10000, 1000, 6, 1) |
DDB(cost, salvage, life, period, [factor]) | Double declining balance depreciation for a period | =DDB(10000, 1000, 6, 1) |
DISC(settlement, maturity, price, redemption, [basis]) | The discount rate of a security | =DISC(A2, B2, 97.5, 100) |
DOLLARDE(fractional_price, unit) | A price written in fractions (100.01 for 100 1/8) as a decimal | =DOLLARDE(100.01, 8) |
DOLLARFR(decimal_price, unit) | A decimal price written in fractions | =DOLLARFR(100.125, 8) |
DURATION(settlement, maturity, rate, yield, frequency, [basis]) | A bond's Macaulay duration in years | =DURATION(A2, B2, 8%, 9%, 2) |
EFFECT(nominal_rate, periods_per_year) | The effective annual rate of a nominal rate | =EFFECT(5%, 12) |
FV(rate, periods, payment, [present_value], [type]) | The future value of an investment | =FV(4%/12, 120, -200) |
FVSCHEDULE(principal, rates) | A principal compounded by a series of rates | =FVSCHEDULE(1000, B2:B6) |
INTRATE(settlement, maturity, investment, redemption, [basis]) | The interest rate of a fully invested security | =INTRATE(A2, B2, 1000, 1014) |
IPMT(rate, period, periods, present_value, [future_value], [type]) | The interest part of one payment | =IPMT(5%/12, 1, 60, 20000) |
IRR(values, [guess]) | The internal rate of return of cash flows | =IRR(B2:B6) |
ISPMT(rate, period, periods, present_value) | The interest of one period when the principal is repaid evenly | =ISPMT(5%, 2, 5, 1000) |
MDURATION(settlement, maturity, rate, yield, frequency, [basis]) | A bond's modified duration in years | =MDURATION(A2, B2, 8%, 9%, 2) |
MIRR(values, finance_rate, reinvest_rate) | The modified internal rate of return of cash flows | =MIRR(B2:B6, 10%, 12%) |
NOMINAL(effective_rate, periods_per_year) | The nominal annual rate of an effective rate | =NOMINAL(5.1%, 12) |
NPER(rate, payment, present_value, [future_value], [type]) | How many periods a loan takes | =NPER(5%/12, -400, 20000) |
NPV(rate, value1, [value2, …]) | The net present value of cash flows | =NPV(8%, B2:B6) |
PDURATION(rate, present_value, future_value) | How many periods an investment takes to grow to a value | =PDURATION(5%, 1000, 2000) |
PMT(rate, periods, present_value, [future_value], [type]) | The payment for a loan | =PMT(5%/12, 60, 20000) |
PPMT(rate, period, periods, present_value, [future_value], [type]) | The principal part of one payment | =PPMT(5%/12, 1, 60, 20000) |
PRICE(settlement, maturity, rate, yield, redemption, frequency, [basis]) | The price of a bond paying periodic interest | =PRICE(A2, B2, 5.75%, 6.5%, 100, 2) |
PRICEDISC(settlement, maturity, discount, redemption, [basis]) | The price of a discounted security | =PRICEDISC(A2, B2, 5%, 100) |
PRICEMAT(settlement, maturity, issue, rate, yield, [basis]) | The price of a security paying interest at maturity | =PRICEMAT(A2, B2, C2, 6%, 6.5%) |
PV(rate, periods, payment, [future_value], [type]) | The present value of payments | =PV(5%/12, 60, -400) |
RATE(periods, payment, present_value, [future_value], [type], [guess]) | The interest rate per period | =RATE(60, -400, 20000) |
RECEIVED(settlement, maturity, investment, discount, [basis]) | What a fully invested security pays at maturity | =RECEIVED(A2, B2, 1000, 5%) |
RRI(periods, present_value, future_value) | The rate an investment needs to grow to a value | =RRI(10, 1000, 2000) |
SLN(cost, salvage, life) | Straight-line depreciation for one period | =SLN(30000, 7500, 10) |
SYD(cost, salvage, life, period) | Sum-of-years' digits depreciation for a period | =SYD(30000, 7500, 10, 1) |
TBILLEQ(settlement, maturity, discount) | A treasury bill's bond-equivalent yield | =TBILLEQ(A2, B2, 9%) |
TBILLPRICE(settlement, maturity, discount) | The price of a treasury bill | =TBILLPRICE(A2, B2, 9%) |
TBILLYIELD(settlement, maturity, price) | The yield of a treasury bill | =TBILLYIELD(A2, B2, 98.45) |
VDB(cost, salvage, life, start_period, end_period, [factor], [no_switch]) | Declining balance depreciation over any span of periods | =VDB(10000, 1000, 6, 0, 1.5) |
XIRR(values, dates, [guess]) | The internal rate of return of cash flows on their dates | =XIRR(B2:B6, A2:A6) |
XNPV(rate, values, dates) | The net present value of cash flows on their dates | =XNPV(8%, B2:B6, A2:A6) |
YIELD(settlement, maturity, rate, price, redemption, frequency, [basis]) | The yield of a bond paying periodic interest | =YIELD(A2, B2, 5.75%, 95, 100, 2) |
YIELDDISC(settlement, maturity, price, redemption, [basis]) | The annual yield of a discounted security | =YIELDDISC(A2, B2, 99.5, 100) |
YIELDMAT(settlement, maturity, issue, rate, price, [basis]) | The yield of a security paying interest at maturity | =YIELDMAT(A2, B2, C2, 6%, 99) |
| Function | Does | Example |
|---|---|---|
ARRAYFORMULA(formula) | Works a formula out over whole ranges | =ARRAYFORMULA(A2:A10*B2:B10) |
IMAGE(url, [mode], [height], [width]) | A picture of the web in the cell: 1 fits it, 2 stretches it, 3 its own size, 4 the size given | =IMAGE("https://example.com/logo.png") |
QUERY(data, query, [headers]) | A query in Google's query language over a range | =QUERY(A1:C20, "select A, sum(C) group by A", 1) |
SPARKLINE(data, [options]) | A small chart in the cell: line, column, winloss or bar | =SPARKLINE(B2:M2, {"charttype","column"; "color","teal"}) |
Info
| Function | Does | Example |
|---|---|---|
CELL(info_type, [reference]) | What a cell is: its "address", "row", "col", "contents", "type", "format", "width", ... | =CELL("width", B2) |
ERROR.TYPE(value) | The number of an error, as in Excel (2 for #DIV/0!, 7 for #N/A, ...) | =ERROR.TYPE(A2) |
ISBLANK(value) | TRUE when a cell is empty | =ISBLANK(A2) |
ISDATE(value) | TRUE for a date: text that reads as one, or a cell drawn as one | =ISDATE(A2) |
ISEMAIL(value) | TRUE for text shaped as an email address | =ISEMAIL(A2) |
ISERR(value) | TRUE for any error but #N/A | =ISERR(A2/B2) |
ISERROR(value) | TRUE for any error | =ISERROR(A2/B2) |
ISFORMULA(cell) | TRUE when a cell holds a formula | =ISFORMULA(B2) |
ISLOGICAL(value) | TRUE for TRUE or FALSE | =ISLOGICAL(A2) |
ISNA(value) | TRUE for #N/A | =ISNA(MATCH(A2, D:D, 0)) |
ISNONTEXT(value) | TRUE for anything but text, an empty cell too | =ISNONTEXT(A2) |
ISNUMBER(value) | TRUE for a number | =ISNUMBER(A2) |
ISREF(value) | TRUE for a reference, not text that reads as one | =ISREF(INDIRECT(A2)) |
ISTEXT(value) | TRUE for text | =ISTEXT(A2) |
N(value) | A value as a number (text is 0) | =N(A2) |
NA() | The #N/A error | =NA() |
SHEETS([reference]) | How many sheets the spreadsheet has | =SHEETS() |
TYPE(value) | The kind of a value: 1 number, 2 text, 4 TRUE/FALSE, 16 error, 64 array | =TYPE(A2) |
Logical
| Function | Does | Example |
|---|---|---|
AND(value1, [value2, …]) | TRUE when every value is TRUE | =AND(B2>0, C2>0) |
FALSE() | FALSE | =FALSE() |
IF(condition, if_true, [if_false]) | One value when a condition is TRUE, another when not | =IF(B2>100, "Over", "Under") |
IFERROR(value, [if_error]) | The value, or another (blank by default) when it is an error | =IFERROR(A2/B2, 0) |
IFNA(value, if_na) | The value, or another when it is #N/A | =IFNA(VLOOKUP(A2, D:E, 2, FALSE), "Missing") |
IFS(condition1, value1, [condition2, value2, …]) | The value of the first TRUE condition | =IFS(B2>90, "A", B2>80, "B", TRUE, "C") |
LAMBDA(name1, [name2, …], formula) | A function of its names, called with values in brackets after it | =LAMBDA(x, x*2)(5) |
LET(name1, value1, [name2, value2, …], formula) | A formula reading names given values once | =LET(avg, AVERAGE(B2:D2), IF(avg>=4, "Great", "Good")) |
NOT(value) | The opposite of TRUE or FALSE | =NOT(B2>0) |
OR(value1, [value2, …]) | TRUE when any value is TRUE | =OR(B2>0, C2>0) |
SWITCH(expression, case1, value1, [case2, value2, …], [default]) | The value of the case the expression equals | =SWITCH(A2, 1, "One", 2, "Two", "Many") |
TRUE() | TRUE | =TRUE() |
XOR(value1, [value2, …]) | TRUE when an odd number of values are TRUE | =XOR(B2>0, C2>0) |
Lookup
| Function | Does | Example |
|---|---|---|
ADDRESS(row, column, [mode], [a1], [sheet]) | A cell reference written as text, absolute or not, A1 or R1C1 | =ADDRESS(2, 3) |
CHOOSE(index, value1, [value2, …]) | The value at a position in a list | =CHOOSE(2, "Low", "Mid", "High") |
COLUMN([cell]) | The column number of a cell | =COLUMN(D2) |
COLUMNS(range) | How many columns a range has | =COLUMNS(A1:F1) |
FORMULATEXT(cell) | A cell’s formula, as text | =FORMULATEXT(B2) |
GETPIVOTDATA(value_name, any_pivot_table_cell, [original_column, pivot_item, ...]) | Gives a value of a pivot table by its name and its groups' items | =GETPIVOTDATA("SUM of Units", A1, "Region", "East") |
HLOOKUP(key, range, row, [is_sorted]) | Finds a key in the first row and gives a value from its column | =HLOOKUP("Q3", A1:F5, 4, FALSE) |
INDEX(range, row, [column]) | The cell at a row and column of a range | =INDEX(A2:C10, 3, 2) |
INDIRECT(reference_text, [a1]) | The cells a text reference names | =INDIRECT("B" & A2) |
LOOKUP(key, search_range, [result_range]) | Finds a key in a sorted range | =LOOKUP(42, A2:A10, B2:B10) |
MATCH(key, range, [type]) | A key's position in a row or column | =MATCH("Bob", A2:A10, 0) |
OFFSET(cell, rows, columns, [height], [width]) | A range moved from a starting cell | =SUM(OFFSET(A1, 1, 0, 3)) |
ROW([cell]) | The row number of a cell | =ROW(B4) |
ROWS(range) | How many rows a range has | =ROWS(A2:A10) |
SHEET([value]) | The place of a sheet among the sheets, from 1 | =SHEET(Data!A1) |
VLOOKUP(key, range, column, [is_sorted]) | Finds a key in the first column and gives a value from its row | =VLOOKUP(A2, D2:F20, 3, FALSE) |
XLOOKUP(key, lookup_range, result_range, [missing], [match_mode], [search_mode]) | Finds a key and gives the matching value from another range | =XLOOKUP(A2, D:D, F:F, "Not found") |
XMATCH(key, range, [match_mode], [search_mode]) | A key's position, exactly or the nearest | =XMATCH("Bob", A2:A10) |
Math
| Function | Does | Example |
|---|---|---|
ABS(value) | The value without its sign | =ABS(-4) |
ACOS(value) | The angle whose cosine is a value | =ACOS(0.5) |
ACOSH(value) | The inverse hyperbolic cosine | =ACOSH(A2) |
ACOT(value) | The angle whose cotangent is a value | =ACOT(1) |
ACOTH(value) | The inverse hyperbolic cotangent | =ACOTH(A2) |
ASIN(value) | The angle whose sine is a value | =ASIN(0.5) |
ASINH(value) | The inverse hyperbolic sine | =ASINH(A2) |
ATAN(value) | The angle whose tangent is a value | =ATAN(1) |
ATAN2(x, y) | The angle of the point (x, y) from the x-axis | =ATAN2(A2, B2) |
ATANH(value) | The inverse hyperbolic tangent | =ATANH(A2) |
BASE(value, base, [min_length]) | A number written in another base | =BASE(255, 16) |
CEILING(value, [factor]) | Rounds up to a multiple of the factor | =CEILING(23, 5) |
CEILING.MATH(number, [factor], [mode]) | Up to a multiple; the mode turns negatives away from zero | =CEILING.MATH(A2, 5) |
CEILING.PRECISE(number, [factor]) | Up to a multiple, the factor’s sign ignored | =CEILING.PRECISE(A2, 5) |
COMBIN(n, k) | Ways to choose k of n | =COMBIN(10, 3) |
COMBINA(n, k) | Ways to choose k of n, repeats allowed | =COMBINA(10, 3) |
COS(angle) | The cosine of an angle in radians | =COS(A2) |
COSH(value) | The hyperbolic cosine | =COSH(A2) |
COT(angle) | The cotangent of an angle in radians | =COT(A2) |
COTH(value) | The hyperbolic cotangent | =COTH(A2) |
COUNTBLANK(range) | How many cells are empty | =COUNTBLANK(A2:A10) |
COUNTIF(range, criterion) | How many cells meet a criterion | =COUNTIF(A2:A10, "Done") |
COUNTIFS(range1, criterion1, [range2, criterion2, …]) | How many rows meet every criterion | =COUNTIFS(A2:A10, "Done", B2:B10, ">3") |
COUNTUNIQUE(value1, [value2, …]) | How many different values | =COUNTUNIQUE(A2:A10) |
CSC(angle) | The cosecant of an angle in radians | =CSC(A2) |
CSCH(value) | The hyperbolic cosecant | =CSCH(A2) |
DECIMAL(text, base) | A number in another base, as a number | =DECIMAL("FF", 16) |
DEGREES(angle) | Radians as degrees | =DEGREES(PI()) |
ERFC(z) | The complementary error function | =ERFC(1) |
ERFC.PRECISE(z) | The complementary error function | =ERFC.PRECISE(1) |
EVEN(value) | Away from zero to an even whole number | =EVEN(A2) |
EXP(value) | e raised to a power | =EXP(1) |
FACT(value) | The factorial of a number | =FACT(5) |
FACTDOUBLE(value) | The double factorial, n·(n−2)·… | =FACTDOUBLE(7) |
FLOOR(value, [factor]) | Rounds down to a multiple of the factor | =FLOOR(23, 5) |
FLOOR.MATH(number, [factor], [mode]) | Down to a multiple; the mode turns negatives toward zero | =FLOOR.MATH(A2, 5) |
FLOOR.PRECISE(number, [factor]) | Down to a multiple, the factor’s sign ignored | =FLOOR.PRECISE(A2, 5) |
GAMMALN(value) | The natural log of the gamma function | =GAMMALN(A2) |
GAMMALN.PRECISE(value) | The natural log of the gamma function | =GAMMALN.PRECISE(A2) |
GCD(value1, [value2, …]) | The greatest common divisor | =GCD(12, 18) |
IMLN(complex) | The natural log of a complex number | =IMLN("3+4i") |
IMPOWER(complex, power) | A complex number to a power | =IMPOWER("2+i", 3) |
IMSQRT(complex) | The square root of a complex number | =IMSQRT("-4") |
INT(value) | Rounds down to a whole number | =INT(7.8) |
ISEVEN(value) | TRUE when a whole number is even | =ISEVEN(A2) |
ISO.CEILING(number, [factor]) | Up to a multiple, as ISO 26300 has it | =ISO.CEILING(A2, 5) |
ISODD(value) | TRUE when a whole number is odd | =ISODD(A2) |
LCM(value1, [value2, …]) | The least common multiple | =LCM(4, 6) |
LN(value) | The natural logarithm | =LN(10) |
LOG(value, [base]) | The logarithm in a base (10 by default) | =LOG(8, 2) |
LOG10(value) | The base-10 logarithm | =LOG10(1000) |
MOD(dividend, divisor) | The remainder after division, with the sign of the divisor | =MOD(10, 3) |
MROUND(value, factor) | Rounds to the nearest multiple of the factor | =MROUND(17, 5) |
MULTINOMIAL(value1, [value2, …]) | The factorial of the sum over the factorials | =MULTINOMIAL(2, 3, 4) |
MUNIT(size) | The identity matrix of a size | =MUNIT(3) |
ODD(value) | Away from zero to an odd whole number | =ODD(A2) |
PI() | The number π | =PI() |
POWER(base, exponent) | A number raised to a power | =POWER(2, 10) |
PRODUCT(value1, [value2, …]) | Multiplies numbers together | =PRODUCT(A2:A4) |
QUOTIENT(dividend, divisor) | The whole part of a division | =QUOTIENT(10, 3) |
RADIANS(angle) | Degrees as radians | =RADIANS(180) |
RAND() | A random number from 0 up to 1 | =RAND() |
RANDARRAY([rows], [columns]) | Random numbers from 0 to 1, recalculated | =RANDARRAY(3, 2) |
RANDBETWEEN(low, high) | A random whole number between two numbers | =RANDBETWEEN(1, 6) |
ROUND(value, [places]) | Rounds to a number of decimal places, halves away from zero | =ROUND(2.675, 2) |
ROUNDDOWN(value, [places]) | Rounds towards zero | =ROUNDDOWN(3.29, 1) |
ROUNDUP(value, [places]) | Rounds away from zero | =ROUNDUP(3.21, 1) |
SEC(angle) | The secant of an angle in radians | =SEC(A2) |
SECH(value) | The hyperbolic secant | =SECH(A2) |
SEQUENCE(rows, [columns], [start], [step]) | A run of numbers | =SEQUENCE(10) |
SERIESSUM(x, n, m, coefficients) | A power series at x | =SERIESSUM(A2, 0, 1, B2:B5) |
SIGN(value) | 1, 0 or -1 by the sign of a number | =SIGN(-3) |
SIN(angle) | The sine of an angle in radians | =SIN(PI()/6) |
SINH(value) | The hyperbolic sine | =SINH(A2) |
SQRT(value) | The square root | =SQRT(16) |
SQRTPI(value) | The square root of value × π | =SQRTPI(2) |
SUBTOTAL(function_code, range1, [range2, …]) | An aggregate that skips filtered rows and other subtotals | =SUBTOTAL(9, A2:A10) |
SUM(value1, [value2, …]) | Adds numbers and the numbers in ranges | =SUM(A2:A10) |
SUMIF(range, criterion, [sum_range]) | Adds the cells that meet a criterion | =SUMIF(B2:B10, ">100") |
SUMIFS(sum_range, range1, criterion1, [range2, criterion2, …]) | Adds the cells that meet every criterion | =SUMIFS(C2:C10, A2:A10, "North", B2:B10, ">5") |
SUMSQ(value1, [value2, …]) | The sum of the squares | =SUMSQ(A2:A10) |
TAN(angle) | The tangent of an angle in radians | =TAN(A2) |
TANH(value) | The hyperbolic tangent | =TANH(A2) |
TRUNC(value, [places]) | Cuts off decimal places | =TRUNC(-7.8) |
Operator
| Function | Does | Example |
|---|---|---|
ADD(value1, value2) | Adds two numbers, as + | =ADD(A2, A3) |
CONCAT(value1, [value2, …]) | Joins values together | =CONCAT(A2, " ", B2) |
DIVIDE(dividend, divisor) | Divides one number by another, as / | =DIVIDE(A2, 4) |
EQ(value1, value2) | Whether two values are equal, as = | =EQ(A2, B2) |
GT(value1, value2) | Whether the first is greater, as > | =GT(A2, 100) |
GTE(value1, value2) | Whether the first is greater or equal, as >= | =GTE(A2, 100) |
ISBETWEEN(value_to_compare, lower_value, upper_value, [lower_value_is_inclusive], [upper_value_is_inclusive]) | Whether a value lies between two others, ends included unless told otherwise | =ISBETWEEN(A2, 1, 10) |
LT(value1, value2) | Whether the first is less, as < | =LT(A2, 100) |
LTE(value1, value2) | Whether the first is less or equal, as <= | =LTE(A2, 100) |
MINUS(value1, value2) | Subtracts the second number from the first, as - | =MINUS(A2, A3) |
MULTIPLY(factor1, factor2) | Multiplies two numbers, as * | =MULTIPLY(A2, 3) |
NE(value1, value2) | Whether two values differ, as <> | =NE(A2, B2) |
POW(base, exponent) | Raises a number to a power, as ^ | =POW(2, 10) |
UMINUS(value) | A number with its sign reversed | =UMINUS(A2) |
UNARY_PERCENT(percentage) | A number read as a percentage: 100 is 1 | =UNARY_PERCENT(93) |
UPLUS(value) | A value, unchanged | =UPLUS(A2) |
Parser
| Function | Does | Example |
|---|---|---|
CONVERT(value, start_unit, end_unit) | A measurement in one unit as another | =CONVERT(68, "F", "C") |
TO_DATE(value) | A number shown as a date | =TO_DATE(46000) |
TO_DOLLARS(value) | A number shown as US dollars | =TO_DOLLARS(A2) |
TO_PERCENT(value) | A number shown as a percentage | =TO_PERCENT(0.25) |
TO_PURE_NUMBER(value) | A number with its format taken off | =TO_PURE_NUMBER(A2) |
TO_TEXT(value) | A number as the text its cell shows | =TO_TEXT(A2) |
Statistical
| Function | Does | Example |
|---|---|---|
AVEDEV(value1, [value2, …]) | The mean distance of the numbers from their mean | =AVEDEV(B2:B10) |
AVERAGE(value1, [value2, …]) | The mean of the numbers | =AVERAGE(B2:B10) |
AVERAGE.WEIGHTED(values, weights, [more_values, more_weights, …]) | The mean of values, each counted by its weight | =AVERAGE.WEIGHTED(B2:B10, C2:C10) |
AVERAGEA(value1, [value2, …]) | The mean, text counted as 0 and TRUE as 1 | =AVERAGEA(B2:B10) |
AVERAGEIF(range, criterion, [average_range]) | The mean of the cells that meet a criterion | =AVERAGEIF(A2:A10, "North", B2:B10) |
AVERAGEIFS(average_range, range1, criterion1, [range2, criterion2, …]) | The mean of the cells that meet every criterion | =AVERAGEIFS(C2:C10, A2:A10, "North") |
BETA.DIST(value, alpha, beta, cumulative, [lower_bound, upper_bound]) | The beta distribution at a value | =BETA.DIST(0.42, 3, 8, TRUE) |
BETA.INV(probability, alpha, beta, [lower_bound, upper_bound]) | The value at a cumulative beta probability | =BETA.INV(0.3, 5, 1) |
BETADIST(value, alpha, beta, [lower_bound, upper_bound]) | The cumulative beta distribution at a value | =BETADIST(0.42, 3, 8) |
BETAINV(probability, alpha, beta, [lower_bound, upper_bound]) | The value at a cumulative beta probability | =BETAINV(0.3, 5, 1) |
BINOM.DIST(num_successes, num_trials, prob_success, [cumulative]) | The binomial probability of a number of successes | =BINOM.DIST(4, 10, 0.5, FALSE) |
BINOM.INV(num_trials, prob_success, target_prob) | The fewest successes whose cumulative probability reaches a target | =BINOM.INV(10, 0.5, 0.75) |
BINOMDIST(num_successes, num_trials, prob_success, [cumulative]) | The binomial probability of a number of successes | =BINOMDIST(4, 10, 0.5, FALSE) |
CHIDIST(x, degrees_freedom) | The right tail of the chi-squared distribution | =CHIDIST(3.45, 2) |
CHIINV(probability, degrees_freedom) | The inverse of the right-tailed chi-squared distribution | =CHIINV(0.42, 2) |
CHISQ.DIST(x, degrees_freedom, cumulative) | The chi-squared distribution at x | =CHISQ.DIST(3.45, 2, TRUE) |
CHISQ.DIST.RT(x, degrees_freedom) | The right tail of the chi-squared distribution | =CHISQ.DIST.RT(3.45, 2) |
CHISQ.INV(probability, degrees_freedom) | The inverse of the left-tailed chi-squared distribution | =CHISQ.INV(0.42, 2) |
CHISQ.INV.RT(probability, degrees_freedom) | The inverse of the right-tailed chi-squared distribution | =CHISQ.INV.RT(0.42, 2) |
CHISQ.TEST(observed_range, expected_range) | The p-value of Pearson's chi-squared test | =CHISQ.TEST(A2:A7, B2:B7) |
CHITEST(observed_range, expected_range) | The p-value of Pearson's chi-squared test | =CHITEST(A2:A7, B2:B7) |
CONFIDENCE(alpha, standard_deviation, pop_size) | Half the width of a normal confidence interval | =CONFIDENCE(0.05, 1.6, 250) |
CONFIDENCE.NORM(alpha, standard_deviation, pop_size) | Half the width of a normal confidence interval | =CONFIDENCE.NORM(0.05, 1.6, 250) |
CONFIDENCE.T(alpha, standard_deviation, size) | Half the width of a Student's t confidence interval | =CONFIDENCE.T(0.05, 6.4, 27) |
CORREL(range1, range2) | The correlation of two ranges | =CORREL(A2:A10, B2:B10) |
COUNT(value1, [value2, …]) | How many numbers there are | =COUNT(B2:B10) |
COUNTA(value1, [value2, …]) | How many cells are not empty | =COUNTA(A2:A10) |
COVAR(data_y, data_x) | The covariance of two ranges as a whole population | =COVAR(A2:A10, B2:B10) |
COVARIANCE.P(data_y, data_x) | The covariance of two ranges as a whole population | =COVARIANCE.P(A2:A10, B2:B10) |
COVARIANCE.S(data_y, data_x) | The covariance of two ranges as a sample | =COVARIANCE.S(A2:A10, B2:B10) |
CRITBINOM(num_trials, prob_success, target_prob) | The fewest successes whose cumulative probability reaches a target | =CRITBINOM(10, 0.5, 0.75) |
DEVSQ(value1, [value2, …]) | The sum of squared distances from the mean | =DEVSQ(B2:B10) |
EXPON.DIST(x, LAMBDA, cumulative) | The exponential distribution at x | =EXPON.DIST(4, 0.5, TRUE) |
EXPONDIST(x, LAMBDA, cumulative) | The exponential distribution at x | =EXPONDIST(4, 0.5, TRUE) |
F.DIST(x, degrees_freedom1, degrees_freedom2, [cumulative]) | The F distribution at x | =F.DIST(15.35, 7, 6, TRUE) |
F.DIST.RT(x, degrees_freedom1, degrees_freedom2) | The right tail of the F distribution | =F.DIST.RT(15.35, 7, 6) |
F.INV(probability, degrees_freedom1, degrees_freedom2) | The inverse of the left-tailed F distribution | =F.INV(0.42, 2, 3) |
F.INV.RT(probability, degrees_freedom1, degrees_freedom2) | The inverse of the right-tailed F distribution | =F.INV.RT(0.42, 2, 3) |
F.TEST(range1, range2) | The p-value of an F-test for equal variances | =F.TEST(A2:A9, B2:B9) |
FDIST(x, degrees_freedom1, degrees_freedom2) | The right tail of the F distribution | =FDIST(15.35, 7, 6) |
FINV(probability, degrees_freedom1, degrees_freedom2) | The inverse of the right-tailed F distribution | =FINV(0.42, 2, 3) |
FISHER(value) | The Fisher transformation of a value between -1 and 1 | =FISHER(0.75) |
FISHERINV(value) | The inverse Fisher transformation | =FISHERINV(0.97) |
FORECAST(x, data_y, data_x) | The y the least-squares line gives at x | =FORECAST(30, B2:B10, A2:A10) |
FORECAST.LINEAR(x, data_y, data_x) | The y the least-squares line gives at x | =FORECAST.LINEAR(30, B2:B10, A2:A10) |
FTEST(range1, range2) | The p-value of an F-test for equal variances | =FTEST(A2:A9, B2:B9) |
GAMMA(number) | The gamma function | =GAMMA(4.5) |
GAMMA.DIST(x, alpha, beta, cumulative) | The gamma distribution at x | =GAMMA.DIST(4.79, 1.234, 7, TRUE) |
GAMMA.INV(probability, alpha, beta) | The value at a cumulative gamma probability | =GAMMA.INV(0.3, 5, 1) |
GAMMADIST(x, alpha, beta, cumulative) | The gamma distribution at x | =GAMMADIST(4.79, 1.234, 7, TRUE) |
GAMMAINV(probability, alpha, beta) | The value at a cumulative gamma probability | =GAMMAINV(0.3, 5, 1) |
GAUSS(z) | The chance a standard normal value lies between 0 and z | =GAUSS(1) |
GEOMEAN(value1, [value2, …]) | The geometric mean | =GEOMEAN(B2:B10) |
HARMEAN(value1, [value2, …]) | The harmonic mean | =HARMEAN(B2:B10) |
HYPGEOM.DIST(num_successes, num_draws, successes_in_pop, pop_size, [cumulative]) | The probability of successes drawn without replacement | =HYPGEOM.DIST(4, 12, 20, 40) |
HYPGEOMDIST(num_successes, num_draws, successes_in_pop, pop_size, [cumulative]) | The probability of successes drawn without replacement | =HYPGEOMDIST(4, 12, 20, 40) |
INTERCEPT(data_y, data_x) | Where the least-squares line meets the y axis | =INTERCEPT(B2:B10, A2:A10) |
KURT(value1, [value2, …]) | The excess kurtosis of a sample | =KURT(B2:B10) |
LARGE(range, n) | The nth largest number | =LARGE(B2:B10, 2) |
LOGINV(x, mean, standard_deviation) | The inverse of the cumulative log-normal distribution | =LOGINV(0.4, 4, 6) |
LOGNORM.DIST(x, mean, standard_deviation, [cumulative]) | The log-normal distribution at x | =LOGNORM.DIST(4, 4, 6) |
LOGNORM.INV(x, mean, standard_deviation) | The inverse of the cumulative log-normal distribution | =LOGNORM.INV(0.4, 4, 6) |
LOGNORMDIST(x, mean, standard_deviation, [cumulative]) | The log-normal distribution at x | =LOGNORMDIST(4, 4, 6) |
MARGINOFERROR(range, confidence) | The margin of error of a sample at a confidence level | =MARGINOFERROR(A2:A9, 0.95) |
MAX(value1, [value2, …]) | The largest number | =MAX(B2:B10) |
MAXA(value1, [value2, …]) | The largest number, text counted as 0 and TRUE as 1 | =MAXA(B2:B10) |
MAXIFS(max_range, range1, criterion1, [range2, criterion2, …]) | The largest number among the cells that meet every criterion | =MAXIFS(C2:C10, A2:A10, "North") |
MEDIAN(value1, [value2, …]) | The middle number | =MEDIAN(B2:B10) |
MIN(value1, [value2, …]) | The smallest number | =MIN(B2:B10) |
MINA(value1, [value2, …]) | The smallest number, text counted as 0 and TRUE as 1 | =MINA(B2:B10) |
MINIFS(min_range, range1, criterion1, [range2, criterion2, …]) | The smallest number among the cells that meet every criterion | =MINIFS(C2:C10, A2:A10, "North") |
MODE(value1, [value2, …]) | The most common number | =MODE(B2:B10) |
MODE.MULT(value1, [value2, …]) | Every most common number, as a column | =MODE.MULT(B2:B10) |
MODE.SNGL(value1, [value2, …]) | The most common number | =MODE.SNGL(B2:B10) |
NEGBINOM.DIST(num_failures, num_successes, prob_success, [cumulative]) | The probability of failures before a number of successes | =NEGBINOM.DIST(4, 2, 0.1) |
NEGBINOMDIST(num_failures, num_successes, prob_success, [cumulative]) | The probability of failures before a number of successes | =NEGBINOMDIST(4, 2, 0.1) |
NORM.DIST(x, mean, standard_deviation, cumulative) | The normal distribution at x | =NORM.DIST(2.4, 1, 4, TRUE) |
NORM.INV(x, mean, standard_deviation) | The inverse of the cumulative normal distribution | =NORM.INV(0.75, 1, 4) |
NORM.S.DIST(x, [cumulative]) | The standard normal distribution at x | =NORM.S.DIST(2.4) |
NORM.S.INV(x) | The inverse of the cumulative standard normal distribution | =NORM.S.INV(0.75) |
NORMDIST(x, mean, standard_deviation, cumulative) | The normal distribution at x | =NORMDIST(2.4, 1, 4, TRUE) |
NORMINV(x, mean, standard_deviation) | The inverse of the cumulative normal distribution | =NORMINV(0.75, 1, 4) |
NORMSDIST(x, [cumulative]) | The standard normal distribution at x | =NORMSDIST(2.4) |
NORMSINV(x) | The inverse of the cumulative standard normal distribution | =NORMSINV(0.75) |
PEARSON(data_y, data_x) | The Pearson correlation of two ranges | =PEARSON(B2:B10, A2:A10) |
PERCENTILE(range, k) | The value at a percentile (0 to 1) | =PERCENTILE(B2:B10, 0.9) |
PERCENTILE.EXC(data, percentile) | The value at a percentile, 0 and 1 excluded | =PERCENTILE.EXC(B2:B10, 0.9) |
PERCENTILE.INC(data, percentile) | The value at a percentile from 0 to 1 | =PERCENTILE.INC(B2:B10, 0.9) |
PERCENTRANK(data, value, [significant_digits]) | Where a value ranks in the data, from 0 to 1 | =PERCENTRANK(B2:B10, 42) |
PERCENTRANK.EXC(data, value, [significant_digits]) | Where a value ranks in the data, 0 and 1 excluded | =PERCENTRANK.EXC(B2:B10, 42) |
PERCENTRANK.INC(data, value, [significant_digits]) | Where a value ranks in the data, from 0 to 1 | =PERCENTRANK.INC(B2:B10, 42) |
PERMUT(n, k) | The ordered ways to choose k of n | =PERMUT(10, 3) |
PERMUTATIONA(n, k) | The ordered ways to choose k of n, repeats allowed | =PERMUTATIONA(4, 2) |
PHI(x) | The standard normal density at x | =PHI(0.5) |
POISSON(x, mean, [cumulative]) | The Poisson probability of x events | =POISSON(2, 1, FALSE) |
POISSON.DIST(x, mean, [cumulative]) | The Poisson probability of x events | =POISSON.DIST(2, 1, FALSE) |
PROB(data, probabilities, low_limit, [high_limit]) | The chance a value falls between two limits | =PROB(A2:A7, B2:B7, 2, 4) |
QUARTILE(range, quart) | The value at a quartile (0 to 4) | =QUARTILE(B2:B10, 1) |
QUARTILE.EXC(data, quartile_number) | A quartile, 0 and 4 excluded | =QUARTILE.EXC(B2:B10, 1) |
QUARTILE.INC(data, quartile_number) | A quartile from 0 (least) to 4 (greatest) | =QUARTILE.INC(B2:B10, 1) |
RANK(value, range, [ascending]) | A number's rank in a list (largest first unless ascending) | =RANK(B2, B2:B10) |
RANK.AVG(value, data, [is_ascending]) | The rank of a value, ties sharing their mean rank | =RANK.AVG(B2, B2:B10) |
RANK.EQ(value, data, [is_ascending]) | The rank of a value, ties sharing the top rank | =RANK.EQ(B2, B2:B10) |
RSQ(data_y, data_x) | The square of the Pearson correlation | =RSQ(B2:B10, A2:A10) |
SKEW(value1, [value2, …]) | The skewness of a sample | =SKEW(B2:B10) |
SKEW.P(value1, [value2, …]) | The skewness of a whole population | =SKEW.P(B2:B10) |
SLOPE(data_y, data_x) | The slope of the least-squares line | =SLOPE(B2:B10, A2:A10) |
SMALL(range, n) | The nth smallest number | =SMALL(B2:B10, 2) |
STANDARDIZE(value, mean, standard_deviation) | How many standard deviations a value lies from the mean | =STANDARDIZE(96, 80, 6.7) |
STDEV(value1, [value2, …]) | The standard deviation of a sample | =STDEV(B2:B10) |
STDEV.P(value1, [value2, …]) | The standard deviation of a whole population | =STDEV.P(B2:B10) |
STDEV.S(value1, [value2, …]) | The standard deviation of a sample | =STDEV.S(B2:B10) |
STDEVA(value1, [value2, …]) | The standard deviation of a sample, text counted as 0 | =STDEVA(B2:B10) |
STDEVP(value1, [value2, …]) | The standard deviation of a whole population | =STDEVP(B2:B10) |
STDEVPA(value1, [value2, …]) | The standard deviation of a whole population, text counted as 0 | =STDEVPA(B2:B10) |
STEYX(data_y, data_x) | The standard error of the least-squares line | =STEYX(B2:B10, A2:A10) |
T.DIST(x, degrees_freedom, cumulative) | Student's t distribution at x | =T.DIST(1.96, 60, TRUE) |
T.DIST.2T(x, degrees_freedom) | Both tails of Student's t distribution beyond x | =T.DIST.2T(1.96, 60) |
T.DIST.RT(x, degrees_freedom) | The right tail of Student's t distribution | =T.DIST.RT(1.96, 60) |
T.INV(probability, degrees_freedom) | The inverse of the left-tailed t distribution | =T.INV(0.35, 1) |
T.INV.2T(probability, degrees_freedom) | The inverse of the two-tailed t distribution | =T.INV.2T(0.05, 10) |
T.TEST(range1, range2, tails, type) | The p-value of Student's t-test | =T.TEST(A2:A9, B2:B9, 2, 1) |
TDIST(x, degrees_freedom, tails) | One or both tails of Student's t distribution beyond x | =TDIST(2, 30, 1) |
TINV(probability, degrees_freedom) | The inverse of the two-tailed t distribution | =TINV(0.05, 10) |
TRIMMEAN(data, exclude_proportion) | The mean without a share of the highest and lowest | =TRIMMEAN(B2:B10, 0.2) |
TTEST(range1, range2, tails, type) | The p-value of Student's t-test | =TTEST(A2:A9, B2:B9, 2, 1) |
VAR(value1, [value2, …]) | The variance of a sample | =VAR(B2:B10) |
VAR.P(value1, [value2, …]) | The variance of a whole population | =VAR.P(B2:B10) |
VAR.S(value1, [value2, …]) | The variance of a sample | =VAR.S(B2:B10) |
VARA(value1, [value2, …]) | The variance of a sample, text counted as 0 | =VARA(B2:B10) |
VARP(value1, [value2, …]) | The variance of a whole population | =VARP(B2:B10) |
VARPA(value1, [value2, …]) | The variance of a whole population, text counted as 0 | =VARPA(B2:B10) |
WEIBULL(x, shape, scale, cumulative) | The Weibull distribution at x | =WEIBULL(2.4, 2, 3, TRUE) |
WEIBULL.DIST(x, shape, scale, cumulative) | The Weibull distribution at x | =WEIBULL.DIST(2.4, 2, 3, TRUE) |
Z.TEST(data, value, [standard_deviation]) | The one-tailed p-value of a z-test | =Z.TEST(A2:A9, 10) |
ZTEST(data, value, [standard_deviation]) | The one-tailed p-value of a z-test | =ZTEST(A2:A9, 10) |
Text
| Function | Does | Example |
|---|---|---|
ARABIC(roman_numeral) | The value of a Roman numeral | =ARABIC("MMXXVI") |
ASC(text) | Full-width letters and katakana as half-width | =ASC(A2) |
CHAR(number) | The character of a code | =CHAR(9733) |
CLEAN(text) | Text without control characters | =CLEAN(A2) |
CODE(text) | The code of the first character | =CODE("A") |
CONCATENATE(value1, [value2, …]) | Joins values together | =CONCATENATE(A2, " ", B2) |
DOLLAR(number, [decimals]) | A number as money text in the locale’s currency | =DOLLAR(A2) |
EXACT(text1, text2) | TRUE when two texts are the same, case included | =EXACT(A2, B2) |
FIND(search_for, text, [start]) | Where text starts in other text (case matters) | =FIND("@", A2) |
FINDB(search_for, text, [start]) | Where text starts in other text, in bytes (case matters) | =FINDB("本", A2) |
FIXED(number, [decimals], [no_separators]) | A number as text with fixed decimals | =FIXED(A2, 1) |
JOIN(delimiter, value1, [value2, …]) | Joins values with a delimiter | =JOIN(" / ", A2:C2) |
LEFT(text, [count]) | The first characters of text | =LEFT(A2, 3) |
LEFTB(text, [bytes]) | The first bytes of text | =LEFTB(A2, 4) |
LEN(text) | How many characters text has | =LEN(A2) |
LENB(text) | How many bytes text has, double-byte characters as 2 | =LENB(A2) |
LOWER(text) | Text in small letters | =LOWER(A2) |
MID(text, start, count) | Characters from the middle of text | =MID(A2, 2, 3) |
MIDB(text, start, bytes) | Bytes of text from a character on | =MIDB(A2, 2, 4) |
PROPER(text) | Text With Each Word Capitalised | =PROPER(A2) |
REGEXEXTRACT(text, pattern) | The part of text that matches a regular expression | =REGEXEXTRACT(A2, "\d+") |
REGEXMATCH(text, pattern) | TRUE when text matches a regular expression (RE2, as Google Sheets reads it) | =REGEXMATCH(A2, "^\d+$") |
REGEXREPLACE(text, pattern, replacement) | Replaces what matches a regular expression; $1 puts back a group, $0 the match | =REGEXREPLACE(A2, "(\w+) (\w+)", "$2 $1") |
REPLACE(text, start, count, new_text) | Replaces characters at a position | =REPLACE(A2, 1, 3, "XYZ") |
REPLACEB(text, start, bytes, new_text) | Replaces bytes of text from a character on | =REPLACEB(A2, 2, 4, "XY") |
REPT(text, count) | Text repeated | =REPT("★", B2) |
RIGHT(text, [count]) | The last characters of text | =RIGHT(A2, 4) |
RIGHTB(text, [bytes]) | The last bytes of text | =RIGHTB(A2, 4) |
ROMAN(number, [relaxation]) | A number in Roman numerals | =ROMAN(2026) |
SEARCH(search_for, text, [start]) | Where text starts in other text (case ignored, wildcards) | =SEARCH("inv*", A2) |
SEARCHB(search_for, text, [start]) | Where text starts in other text, in bytes (case ignored, wildcards) | =SEARCHB("本", A2) |
SPLIT(text, delimiter, [split_by_each], [remove_empty]) | Splits text into cells across a row | =SPLIT(A2, ",") |
SUBSTITUTE(text, search_for, replace_with, [occurrence]) | Replaces text with other text | =SUBSTITUTE(A2, "-", " ") |
T(value) | Text as itself; any other value as empty text | =T(A2) |
TEXT(value, format) | A number as text in a format | =TEXT(A2, "dd/mm/yyyy") |
TEXTJOIN(delimiter, ignore_empty, value1, [value2, …]) | Joins values with a delimiter | =TEXTJOIN(", ", TRUE, A2:A10) |
TRIM(text) | Text without extra spaces | =TRIM(A2) |
UNICHAR(number) | The Unicode character of a number | =UNICHAR(9733) |
UNICODE(text) | The Unicode number of the first character | =UNICODE("A") |
UPPER(text) | Text in capitals | =UPPER(A2) |
VALUE(text) | Text that looks like a number, as the number | =VALUE("1,234.5") |
Web
| Function | Does | Example |
|---|---|---|
ENCODEURL(text) | Text written so it can go in a web address’s query | =ENCODEURL(A2) |
HYPERLINK(url, [label]) | A link to a web page or email address; Ctrl/⌘-click opens it | =HYPERLINK("https://docs.nu", "LiveDoc") |
IMPORTDATA(url) | The rows of a .csv or .tsv file on the web | =IMPORTDATA("https://example.com/data.csv") |
IMPORTFEED(url, [query], [headers], [num_items]) | The items of an RSS or Atom feed, or the feed’s own title, description and address | =IMPORTFEED("https://example.com/feed", "items title", FALSE, 5) |
IMPORTHTML(url, query, index) | A table or list of a web page, counted from 1 | =IMPORTHTML("https://example.com", "table", 1) |
IMPORTRANGE(spreadsheet_url, range_string) | A range of another LiveDoc spreadsheet, by its address and "[sheet!]range" | =IMPORTRANGE("https://docs.nu/document/abc123", "Sheet1!A1:C10") |
IMPORTXML(url, xpath_query, [locale]) | What an XPath query picks out of a web page or XML file | =IMPORTXML("https://example.com", "//h1") |
ISURL(value) | Whether a value is a web address | =ISURL(A2) |
OpenFormula
| Function | Does | Example |
|---|---|---|
AREAS(reference) | How many areas a reference holds | =AREAS(A1:B2) |
BESSELI(x, n) | The modified Bessel function Iₙ(x) | =BESSELI(1.5, 1) |
BESSELJ(x, n) | The Bessel function Jₙ(x) | =BESSELJ(1.9, 2) |
BESSELK(x, n) | The modified Bessel function Kₙ(x) | =BESSELK(1.5, 1) |
BESSELY(x, n) | The Bessel function Yₙ(x) | =BESSELY(2.5, 1) |
BINOM.DIST.RANGE(num_trials, prob_success, num_successes, [num_successes2]) | The binomial chance of a range of successes | =BINOM.DIST.RANGE(60, 0.75, 45, 50) |
CHISQDIST(x, degrees_freedom, [cumulative]) | The chi-squared distribution at x (OpenFormula) | =CHISQDIST(3.45, 2) |
CHISQINV(probability, degrees_freedom) | The inverse of the left-tailed chi-squared distribution | =CHISQINV(0.42, 2) |
EASTERSUNDAY(year) | The date of Easter Sunday in a year | =EASTERSUNDAY(2026) |
EUROCONVERT(value, from_currency, to_currency, [full_precision], [triangulation_precision]) | Converts between the euro and the currencies it replaced | =EUROCONVERT(100, "DEM", "EUR") |
INFO(type) | Information about the environment | =INFO("recalc") |
JIS(text) | Half-width characters as full-width | =JIS("abc") |
MULTIPLE.OPERATIONS(formula_cell, row_cell, row_replacement, [column_cell, column_replacement]) | A formula cell’s value with one or two cells read as others, for what-if tables | =MULTIPLE.OPERATIONS($B$5, $B$3, $A6, $B$2, C$5) |
NUMBERVALUE(text, [decimal_separator], [group_separator]) | Text read as a number with the given separators | =NUMBERVALUE("1.234,5", ",", ".") |
ODDFPRICE(settlement, maturity, issue, first_coupon, rate, yield, redemption, frequency, [basis]) | The price of a security whose first coupon period is odd (short or long) | =ODDFPRICE(A2, B2, C2, D2, 7.85%, 6.25%, 100, 2, 1) |
ODDFYIELD(settlement, maturity, issue, first_coupon, rate, price, redemption, frequency, [basis]) | The yield of a security whose first coupon period is odd (short or long) | =ODDFYIELD(A2, B2, C2, D2, 5.75%, 84.5, 100, 2) |
ODDLPRICE(settlement, maturity, last_interest, rate, yield, redemption, frequency, [basis]) | The price of a security whose last coupon period is odd (short or long) | =ODDLPRICE(A2, B2, C2, 3.75%, 4.05%, 100, 2) |
ODDLYIELD(settlement, maturity, last_interest, rate, price, redemption, frequency, [basis]) | The yield of a security whose last coupon period is odd (short or long) | =ODDLYIELD(A2, B2, C2, 3.75%, 99.875, 100, 2) |
Plan Cards
| Function | Does | Example |
|---|---|---|
CARD(number, field) | One field of a card | =CARD(12, "Title") |
CARDCOUNT([field1, value1, …]) | How many cards match every field and value | =CARDCOUNT("State", "Done") |
CARDS(fields, [field1, value1, …]) | A table of the matching cards, spilled | =CARDS("Number, Title, State", "Type", "Bug") |
CARDSUM(sum_field, [field1, value1, …]) | The sum of a number field over the matching cards | =CARDSUM("Estimate", "Assignee", "Sam") |
Was this article helpful?