Page 2 of 11

504 Google Sheets formulas. Back to page 1.

IMPORTXML()
IMPORTXML()

Imports data from any of various structured data types including XML, HTML, CSV, TSV, and RSS and...

IMPORTXML(url, xpath_query)
DATEDIF()
DATEDIF()

Calculates the number of days, months, or years between two dates.

DATEDIF(start_date, end_date, unit)
COUNT()
COUNT()

Returns a count of the number of numeric values in a dataset.

COUNT(value1, [value2, ...])
MIN()
MIN()

Returns the minimum value in a numeric dataset.

MIN(value1, [value2, ...])
MID()
MID()

Returns a segment of a string.

MID(string, starting_at, extract_length)
OR()
OR()

Returns true if any of the provided arguments are logically true, and false if all of the provide...

OR(logical_expression1, [logical_expression2, ...])
FLATTEN()
FLATTEN()

Flattens all the values from one or more ranges into a single column.

FLATTEN(range1,[range2,...])
NOT()
NOT()

Returns the opposite of a logical value - `NOT(TRUE)` returns `FALSE`; `NOT(FALSE)` returns `TRUE`.

NOT(logical_expression)
YEAR()
YEAR()

Returns the year specified by a given date.

YEAR(date)
ROUNDUP()
ROUNDUP()

Rounds a number to a certain number of decimal places, always rounding up to the next valid incre...

ROUNDUP(value, [places])
COUNTBLANK()
COUNTBLANK()

Returns the number of empty cells in a given range.

COUNTBLANK(range)
COUNTUNIQUE()
COUNTUNIQUE()

Counts the number of unique values in a list of specified values and ranges.

COUNTUNIQUE(value1, [value2, ...])
EOMONTH()
EOMONTH()

Returns a date representing the last day of a month which falls a specified number of months befo...

EOMONTH(start_date, months)
GOOGLETRANSLATE()
GOOGLETRANSLATE()

Translates text from one language into another

GOOGLETRANSLATE(text, [source_language], [target_language])
DATE()
DATE()

Converts a provided year, month, and day into a date.

DATE(year, month, day)
QUERY()
QUERY()

Runs a Google Visualization API Query Language query across data.

QUERY(data, query, [headers])
IFS()
IFS()

Evaluates multiple conditions and returns a value that corresponds to the first true condition..

IFS(condition1, value1, [condition2, value2], …)
ISURL()
ISURL()

Checks whether a value is a valid URL.

ISURL(value)
SEQUENCE()
SEQUENCE()

Returns an array of sequential numbers, such as 1, 2, 3, 4..

SEQUENCE(rows, columns, start, step)
CHAR()
CHAR()

Convert a number into a character according to the current Unicode table.

CHAR(table_number)
TRUE()
TRUE()

Returns the logical value `TRUE`.

TRUE()
DETECTLANGUAGE()
DETECTLANGUAGE()

Identifies the language used in text within the specified range.

DETECTLANGUAGE(text_or_range)
EQ()
EQ()

Returns `TRUE` if two specified values are equal and `FALSE` otherwise. Equivalent to the `=` ope...

EQ(value1, value2)
ISTEXT()
ISTEXT()

Checks whether a value is text.

ISTEXT(value)
ENCODEURL()
ENCODEURL()

Encodes a string of text for the purpose of using in a URL query..

ENCODEURL(text)
EDATE()
EDATE()

Returns a date a specified number of months before or after another date.

EDATE(start_date, months)
WEEKDAY()
WEEKDAY()

Returns a number representing the day of the week of the date provided.

WEEKDAY(date, [type])
WORKDAY()
WORKDAY()

Calculates the end date after a specified number of working days.

WORKDAY(start_date, num_days, [holidays])
HOUR()
HOUR()

Returns the hour component of a specific time, in numeric format.

HOUR(time)
HLOOKUP()
HLOOKUP()

Horizontal lookup. Searches across the first row of a range for a key and returns the value of a ...

HLOOKUP(search_key, range, index, [is_sorted])
LEFT()
LEFT()

Returns a substring from the beginning of a specified string.

LEFT(string, [number_of_characters])
DAY()
DAY()

Returns the day of the month that a specific date falls on, in numeric format.

DAY(date)
FV()
FV()

Calculates the future value of an annuity investment based on constant-amount periodic payments a...

FV(rate, number_of_periods, payment_amount, [present_value], [end_or_beginning])
COUNTIFS()
COUNTIFS()

Returns the count of a range depending on multiple criteria.

COUNTIFS(criteria_range1, criterion1, [criteria_range2, criterion2, ...])
VALUE()
VALUE()

Converts a string in any of the date, time or number formats that Google Sheets understands into ...

VALUE(text)
MEDIAN()
MEDIAN()

Returns the median value in a numeric dataset.

MEDIAN(value1, [value2, ...])
RANK()
RANK()

Returns the rank of a specified value in a dataset.

RANK(value, data, [is_ascending])
ISFORMULA()
ISFORMULA()

Checks whether a formula is in the referenced cell.

ISFORMULA(cell)
ISEMAIL()
ISEMAIL()

Checks whether a value is a valid email address.

ISEMAIL(value)
TRIM()
TRIM()

Removes leading and trailing spaces in a specified string.

TRIM(text)
DEC2HEX()
DEC2HEX()

Converts a decimal number to signed hexadecimal format.

DEC2HEX(decimal_number, [significant_digits])
ROUNDDOWN()
ROUNDDOWN()

Rounds a number to a certain number of decimal places, always rounding down to the next valid inc...

ROUNDDOWN(value, [places])
NE()
NE()

Returns `TRUE` if two specified values are not equal and `FALSE` otherwise. Equivalent to the `&l...

NE(value1, value2)
REGEXEXTRACT()
REGEXEXTRACT()

Extracts matching substrings according to a regular expression.

REGEXEXTRACT(text, regular_expression)
REGEXREPLACE()
REGEXREPLACE()

Replaces part of a text string with a different text string using regular expressions.

REGEXREPLACE(text, regular_expression, replacement)
TIMEVALUE()
TIMEVALUE()

Returns the fraction of a 24-hour day the time represents.

TIMEVALUE(time_string)
DCOUNTA()
DCOUNTA()

Counts values, including text, selected from a database table-like array or range using a SQL-lik...

DCOUNTA(database, field, criteria)
RIGHT()
RIGHT()

Returns a substring from the end of a specified string.

RIGHT(string, [number_of_characters])