Google Sheets Function List - Docs Editors Help
Google Sheets Function List - Docs Editors Help
Google Sheets supports cell formulas typically found in most desktop spreadsheet packages. Functions can be
used to create formulas that manipulate data and calculate strings and numbers.
Here's a list of all the functions available in each category. When using them, don't forget to add quotation marks
around all function components made of alphabetic characters that aren't referring to cells or columns.
You can change the language of Google Sheets functions between English and 21 other languages.
Returns a date
representing the last day
of a month which falls a
EOMONTH(start_date,
Date EOMONTH speci ed number of
months)
months before or after
another date. Learn more
Returns a number
representing the day of the
Date WEEKDAY WEEKDAY(date, [type])
week of the date provided.
Learn more
Returns a number
representing the week of
Date WEEKNUM WEEKNUM(date, [type]) the year where the
provided date falls. Learn
more
Bitwise boolean OR of 2
Engineering BITOR BITOR(value1, value2)
numbers. Learn more.
Converts a decimal
DEC2HEX(decimal_numbe
number to signed
Engineering DEC2HEX r,
hexadecimal format. Learn
[significant_digits])
more
ERF.PRECISE(lower_bou
Engineering ERF.PRECISE See ERF
nd, [upper_bound])
Converts a signed
HEX2BIN(signed_hexade
hexadecimal number to
Engineering HEX2BIN cimal_number,
signed binary format.
[significant_digits])
Learn more
Converts a signed
HEX2DEC(signed_hexade hexadecimal number to
Engineering HEX2DEC
cimal_number) decimal format. Learn
more
Converts a signed
HEX2OCT(signed_hexade
hexadecimal number to
Engineering HEX2OCT cimal_number,
signed octal format. Learn
significant_digits)
more
The IMARGUMENT
function returns the angle
(also known as the
Engineering IMARGUMENT IMARGUMENT(number)
argument or \theta) of the
given complex number in
radians. Learn more .
SORT(range,
Sorts the rows of a given
sort_column,
array or range by the
Filter SORT is_ascending,
values in one or more
[sort_column2],
columns. Learn more
[is_ascending2])
SORTN(range, [n],
Returns the rst n items in
[display_ties_mode],
Filter SORTN a data set after performing
[sort_column1,
a sort. Learn more
is_ascending1], ...)
ACCRINT(issue,
first_payment,
Calculates the accrued
settlement, rate,
interest of a security that
Financial ACCRINT redemption,
has periodic payments.
frequency,
Learn more
[day_count_convention
])
ACCRINTM(issue,
Calculates the accrued
maturity, rate,
interest of a security that
Financial ACCRINTM [redemption],
pays interest at maturity.
[day_count_convention
Learn more
])
Calculates the
depreciation of an asset
DB(cost, salvage,
for a speci ed period
Financial DB life, period,
using the arithmetic
[month])
declining balance method.
Learn more
Calculates the
depreciation of an asset
DDB(cost, salvage,
for a speci ed period
Financial DDB life, period,
using the double-declining
[factor])
balance method. Learn
more
DISC(settlement,
maturity, price, Calculates the discount
Financial DISC redemption, rate of a security based on
[day_count_convention price. Learn more
])
Calculates the
depreciation of an asset
SLN(cost, salvage,
Financial SLN for one period using the
life)
straight-line method. Learn
more
Type Name Syntax Description
Calculates the
depreciation of an asset
SYD(cost, salvage, for a speci ed period
Financial SYD
life, period) using the sum of years
digits method. Learn more
YIELD(settlement,
Calculates the annual yield
maturity, rate,
of a security paying
price, redemption,
Financial YIELD periodic interest, such as a
frequency,
US Treasury Bond, based
[day_count_convention
on price. Learn more
])
YIELDMAT(settlement,
Calculates the annual yield
maturity, issue,
of a security paying
Financial YIELDMAT rate, price,
interest at maturity, based
[day_count_convention
on price. Learn more
])
GOOGLEFINANCE(ticker,
Fetches current or
[attribute],
historical securities
Google GOOGLEFINANCE [start_date],
information from Google
[end_date|num_days],
Finance. Learn more
[interval])
Runs a Google
QUERY(data, query, Visualization API Query
Google QUERY
[headers]) Language query across
data. Learn more
Returns a number
corresponding to the error
Info ERROR.TYPE ERROR.TYPE(reference)
value in a different cell.
Learn more
Returns a number
associated with the type of
Info TYPE TYPE(value)
data passed into the
function. Learn more
Evaluates multiple
IFS(condition1, conditions and returns a
Logical IFS value1, [condition2, value that corresponds to
value2], …) the rst true condition.
Learn more.
Tests an expression
against a list of cases and
SWITCH(expression,
returns the corresponding
case1, value1,
Logical SWITCH value of the rst matching
[default or case2,
case, with an optional
value2], …)
default value if nothing
else is met. Learn more
ADDRESS(row, column,
[absolute_relative_mo
Returns a cell reference as
Lookup ADDRESS de],
a string. Learn more
[use_a1_notation],
[sheet])
GETPIVOTDATA(value_na
Extracts an aggregated
me,
value from a pivot table
any_pivot_table_cell,
Lookup GETPIVOTDATA that corresponds to the
[original_column,
speci ed row and column
...], [pivot_item,
headings. Learn more
...]
Horizontal lookup.
Searches across the rst
HLOOKUP(search_key, row of a range for a key
Lookup HLOOKUP range, index, and returns the value of a
[is_sorted]) speci ed cell in the
column found. Learn more
Cotangent of an angle
Math COT COT(angle) provided in radians. Learn
more .
Returns a conditional
COUNTIF(range,
Math COUNTIF count across a range.
criterion)
Learn more
Returns the
complementary Gauss
Math ERFC ERFC(z)
error function of a value.
Learn more
Type Name Syntax Description
The FLOOR.PRECISE
function rounds a number
FLOOR.PRECISE(number, down to the nearest
Math FLOOR.PRECISE
[significance]) integer or multiple of
speci ed signi cance.
Learn more .
GAMMALN.PRECISE(value
Math GAMMALN.PRECISE See GAMMALN
)
ISO.CEILING(number,
Math ISO.CEILING See CEILING.PRECISE
[significance])
Generates an array of
RANDARRAY(rows,
Math RANDARRAY random numbers between
columns)
0 and 1. Learn more .
Returns a uniformly
RANDBETWEEN(low, random integer between
Math RANDBETWEEN
high) two values, inclusive.
Learn more
Rounds a number to a
certain number of decimal
ROUND(value,
Math ROUND places according to
[places])
standard rules. Learn more
Rounds a number to a
certain number of decimal
ROUNDDOWN(value,
Math ROUNDDOWN places, always rounding
[places])
down to the next valid
increment. Learn more
Rounds a number to a
certain number of decimal
ROUNDUP(value,
Math ROUNDUP places, always rounding up
[places])
to the next valid increment.
Learn more
Returns an array of
SEQUENCE(rows, sequential numbers, such
Math SEQUENCE
columns, start, step) as 1, 2, 3, 4. Learn more
.
Given parameters x, n, m,
and a, returns the power
series sum a1xn + a2x(n+m)
Math SERIESSUM SERIESSUM(x, n, m, a)
+ ... + aix(n+(i-1)m), where i is
the number of entries in
range `a`. Learn more
SUMIFS(sum_range,
criteria_range1, Returns the sum of a range
Math SUMIFS criterion1, depending on multiple
[criteria_range2, criteria. Learn more
criterion2, ...])
Type Name Syntax Description
Truncates a number to a
certain number of
TRUNC(value,
Math TRUNC signi cant digits by
[places])
omitting less signi cant
digits. Learn more
Returns a speci ed
Operator UPLUS UPLUS(value) number, unchanged. Learn
more
Converts a provided
Parser TO_DATE TO_DATE(value) number to a date. Learn
more
Converts a provided
Parser TO_DOLLARS TO_DOLLARS(value) number to a dollar value.
Learn more
Type Name Syntax Description
Converts a provided
Parser TO_PERCENT TO_PERCENT(value) number to a percentage.
Learn more
Converts a provided
date/time, percentage,
currency or other
Parser TO_PURE_NUMBER TO_PURE_NUMBER(value)
formatted numeric value
to a pure number without
formatting. Learn more
Converts a provided
Parser TO_TEXT TO_TEXT(value) numeric value to a text
value. Learn more
AVERAGEIFS(average_ra
Returns the average of a
nge, criteria_range1,
range depending on
Statistical AVERAGEIFS criterion1,
multiple criteria. Learn
[criteria_range2,
more
criterion2, ...])
BETA.DIST(value,
Returns the probability of a
alpha, beta,
given value as de ned by
Statistical BETA.DIST cumulative,
the beta distribution
lower_bound,
function. Learn more .
upper_bound)
BETADIST(value,
alpha, beta,
Statistical BETADIST See BETA.DIST .
lower_bound,
upper_bound)
BETAINV(probability,
alpha, beta,
Statistical BETAINV See BETA.INV
lower_bound,
upper_bound)
BINOM.DIST(num_succes
ses, num_trials,
Statistical BINOM.DIST See BINOMDIST
prob_success,
cumulative)
BINOM.INV(num_trials,
Statistical BINOM.INV prob_success, See CRITBINOM
target_prob)
CHISQ.TEST(observed_r
Statistical CHISQ.TEST See CHITEST
ange, expected_range)
CONFIDENCE(alpha,
See CONFIDENCE.NORM
Statistical CONFIDENCE standard_deviation,
pop_size)
COVARIANCE.P(data_y,
Statistical COVARIANCE.P See COVAR
data_x)
Type Name Syntax Description
EXPONDIST(x, lambda,
Statistical EXPONDIST See EXPON.DIST
cumulative)
F.TEST(range1,
Statistical F.TEST See FTEST.
range2)
FDIST(x,
Statistical FDIST degrees_freedom1, See F.DIST.RT .
degrees_freedom2)
FINV(probability,
Statistical FINV degrees_freedom1, See F.INV.RT
degrees_freedom2)
FORECAST.LINEAR(x,
Statistical FORECAST.LINEAR See FORECAST
data_y, data_x)
GAMMADIST(x, alpha,
Statistical GAMMADIST See GAMMA.DIST
beta, cumulative)
GAMMAINV(probability,
Statistical GAMMAINV See GAMMA.INV .
alpha, beta)
HYPGEOM.DIST(num_succ
esses, num_draws,
Statistical HYPGEOM.DIST See HYPGEOMDIST
successes_in_pop,
pop_size)
LOGNORM.DIST(x, mean,
Statistical LOGNORM.DIST See LOGNORMDIST
standard_deviation)
LOGNORM.INV(x, mean,
Statistical LOGNORM.INV See LOGINV
standard_deviation)
MAXIFS(range,
Returns the maximum
criteria_range1,
value in a range of cells,
Statistical MAXIFS criterion1,
ltered by a set of criteria.
[criteria_range2,
Learn more.
criterion2], …)
MINIFS(range,
Returns the minimum
criteria_range1,
value in a range of cells,
Statistical MINIFS criterion1,
ltered by a set of criteria.
[criteria_range2,
Learn more.
criterion2], …)
MODE.SNGL(value1,
Statistical MODE.SNGL See MODE
[value2, ...])
NEGBINOM.DIST(num_fai
Statistical NEGBINOM.DIST lures, num_successes, See NEGBINOMDIST
prob_success)
NORM.DIST(x, mean,
Statistical NORM.DIST standard_deviation, See NORMDIST
cumulative)
NORM.INV(x, mean,
Statistical NORM.INV See NORMINV
standard_deviation)
PERCENTILE.INC(data,
Statistical PERCENTILE.INC See PERCENTILE
percentile)
POISSON(x, mean,
Statistical POISSON See POISSON.DIST
cumulative)
QUARTILE.INC(data,
Statistical QUARTILE.INC See QUARTILE
quartile_number)
STDEV.P(value1,
Statistical STDEV.P See STDEVP
[value2, ...])
STDEV.S(value1,
Statistical STDEV.S See STDEV
[value2, ...])
TINV(probability,
Statistical TINV See T.INV.2T
degrees_freedom)
Type Name Syntax Description
TTEST(range1, range2,
Statistical TTEST See T.TEST .
tails, type)
VAR.P(value1,
Statistical VAR.P See VARP
[value2, ...])
VAR.S(value1,
Statistical VAR.S See VAR
[value2, ...])
Calculates an estimate of
variance based on a
Statistical VARA VARA(value1, value2)
sample, setting text to the
value `0`. Learn more
WEIBULL.DIST(x,
Statistical WEIBULL.DIST shape, scale, See WEIBULL
cumulative)
ZTEST(data, value,
Statistical ZTEST See Z.TEST .
[standard_deviation])
Concatenates the
JOIN(delimiter,
elements of one or more
value_or_array1,
Text JOIN one-dimensional arrays
[value_or_array2,
using a speci ed delimiter.
...])
Learn more
MID(string,
Returns a segment of a
Text MID starting_at,
string. Learn more
extract_length)
Returns a section of a
string starting at a given
Text MIDB MIDB(string) character and up to a
speci ed number of
bytes. Learn more .
Extracts matching
REGEXEXTRACT(text, substrings according to a
Text REGEXEXTRACT
regular_expression) regular expression. Learn
more
Formats a number in
ROMAN(number,
Text ROMAN Roman numerals. Learn
[rule_relaxation])
more
SUBSTITUTE(text_to_se
Replaces existing text with
arch, search_for,
Text SUBSTITUTE new text in a string. Learn
replace_with,
more
[occurrence_number])
IMPORTFEED(url,
Imports a RSS or ATOM
Web IMPORTFEED [query], [headers],
feed. Learn more
[num_items])
Tip: You can't use some functions from other spreadsheet programs. Learn more about unsupported functions in
Sheets.
This document contains modi ed content from Appendix B of the OpenO ce.org "Calc Guide," available at
https://wiki.openo ce.org/w/images/b/b3/0300CS3-CalcGuide.pdf. This content is licensed under the Creative
Commons Attribution License, version 2.0, available at https://creativecommons.org/licenses/by/2.0/legalcode.