Google Sheets Functions Reference
A categorized reference of all 275 Google Sheets functions across essential workflows.
Search Functions
Filter the tables below by function name, category, syntax, or description (e.g., VLOOKUP, unique, date, regex, SQL).
Showing all 275 functions
Basic Aggregation (5)
Essential functions for sums, averages, and cell counting.
| Function | Priority | Syntax & Sample | Overview & Notes |
|---|---|---|---|
SUM | ★★★ | SUM(value1, [value2, ...])3 | Calculates the sum of a series of numbers and/or cells—the most fundamental aggregation function. Multiple ranges and individual cells can be separated by commas. |
AVERAGE | ★★★ | AVERAGE(value1, [value2, ...])#DIV/0! | Returns the numerical average (arithmetic mean) value in a dataset. Empty cells and text values are automatically ignored. |
COUNT | ★★★ | COUNT(value1, [value2, ...])92 | Counts the number of numeric values in a dataset. Ignores text and blank cells (use COUNTA to include text). |
COUNTA | ★★★ | COUNTA(value1, [value2, ...])93 | Counts the number of non-empty values (including text, numbers, and errors) in a dataset. Standard function for counting total populated records. |
COUNTBLANK | ★★★ | COUNTBLANK(range)0 | Returns the number of empty cells in a given range. Useful for identifying missing entries or pending tasks. |
Logical (9)
Automate conditional branching, error handling, and multi-criteria checks.
| Function | Priority | Syntax & Sample | Overview & Notes |
|---|---|---|---|
IF | ★★★ | IF(logical_expression, value_if_true, value_if_false)#REF! | Returns one value if a logical expression is TRUE and another if it is FALSE. Can be nested, though IFS provides cleaner syntax for multiple conditions. |
IFERROR | ★★★ | IFERROR(value, [value_if_error])未登録 | Returns the first argument if it is not an error value, otherwise returns the second argument if present. Essential for suppressing #N/A in VLOOKUP or #DIV/0! in divisions. |
IFS | ★★★ | IFS(condition1, value1, [condition2, value2, ...])#REF! | Evaluates multiple conditions in order and returns a value corresponding to the first TRUE condition. Use TRUE as the final condition to act as a fallback ELSE branch. |
SWITCH | ★★ | SWITCH(expression, case1, value1, [default])#REF! | Tests an expression against a list of cases and returns the corresponding value of the first matching case. Simplifies exact-match branching against a single target expression. |
AND | ★★★ | AND(logical_expression1, [logical_expression2, ...])#REF! | Returns TRUE if all of the provided arguments are logically true, and FALSE otherwise. Commonly paired with IF to test whether all criteria are met simultaneously. |
OR | ★★★ | OR(logical_expression1, [logical_expression2, ...])#REF! | Returns TRUE if any of the provided arguments are logically true, and FALSE if all are false. Standard helper for checking whether at least one condition holds. |
NOT | ★★ | NOT(logical_expression)TRUE | Returns the opposite of a logical value—TRUE becomes FALSE and vice versa. Often used to express conditions like "is not blank" via NOT(ISBLANK(...)). |
LET | ★★★ | LET(name1, value_expression1, [name2, value_expression2, ...], formula_expression)#REF! | Assigns names with values to calculation results so they can be reused cleanly inside a formula. Eliminates repeated sub-expressions, boosting both readability and performance. |
IFNA | ★★★ | IFNA(value, value_if_na)#REF! | Evaluates a value and returns a fallback value only if the result is #N/A. Cleaner than IFERROR for VLOOKUP/MATCH because it preserves real syntax errors. |
Lookup & Reference (19)
Retrieve records from master tables, filter rows, and sort ranges dynamically.
| Function | Priority | Syntax & Sample | Overview & Notes |
|---|---|---|---|
VLOOKUP | ★★★ | VLOOKUP(search_key, range, index, [is_sorted])#REF! | Searches down the first column of a range for a key and returns the value of a specified cell in the row found. Always set the 4th argument to FALSE (or 0) for exact matches. |
XLOOKUP | ★★★ | XLOOKUP(search_key, lookup_range, result_range, [missing_value], [match_mode])#REF! | Modern lookup function that searches in any direction and supports built-in fallback values when not found. Solves VLOOKUP limitations (leftward lookups and column-insertion breakage). |
INDEX | ★★★ | INDEX(reference, [row], [column])基本集計 | Returns the content of a cell, specified by row and column offset. Combine with MATCH for flexible two-way or leftward lookups. |
MATCH | ★★★ | MATCH(search_key, range, [search_type])#REF! | Returns the relative position of an item in a range that matches a specified value. Set search_type to 0 for exact match; essential companion to INDEX. |
FILTER | ★★★ | FILTER(range, condition1, [condition2, ...]) | Returns a filtered version of the source range, returning only rows or columns that meet specified conditions. Automatically spills all matching rows or columns dynamically. |
SORT | ★★★ | SORT(range, sort_column, is_ascending, [sort_column2, is_ascending2])#REF! | Sorts the rows of a given array or range by the values in one or more columns. Outputs a dynamically sorted copy without altering the source range. |
UNIQUE | ★★★ | UNIQUE(range)#REF! | Returns unique rows in the provided source range, discarding duplicates. Instantly generates deduplicated lists from rosters or transaction logs. |
HLOOKUP | ★★ | HLOOKUP(search_key, range, index, [is_sorted])#REF! | Searches across the first row of a range for a key and returns the value of a specified cell in the column found. Used for horizontal lookup tables where headers run across row 1. |
LOOKUP | ★★ | LOOKUP(search_key, search_range, [result_range])AVERAGE | Looks through a sorted row or column for a key and returns the value at the same position in a result range. Supports approximate matching; requires search_range to be sorted ascending. |
CHOOSE | ★★ | CHOOSE(index, choice1, [choice2, ...])#REF! | Returns an element from a list of choices based on index (1, 2, ...). Great for mapping numeric indices (such as weekday numbers) to custom labels. |
OFFSET | ★★ | OFFSET(cell_reference, offset_rows, offset_columns, [height], [width])#REF! | Returns a range reference shifted a specified number of rows and columns from a starting cell reference. Useful for dynamic ranges, though it is volatile and recalculates on every sheet edit. |
INDIRECT | ★★ | INDIRECT(cell_reference_as_string)#REF! | Returns a cell reference specified by a string. Powerful for dynamically switching sheet names or ranges via cell text. |
ROW | ★★ | ROW([cell_reference])#REF! | Returns the row number of a specified cell. Omit the argument to get the current cell row number (handy for auto-numbering). |
COLUMN | ★★ | COLUMN([cell_reference])#REF! | Returns the column number of a specified cell, with A=1. Often used to dynamically increment VLOOKUP column indices when dragging right. |
ROWS | ★★ | ROWS(range)43 | Returns the number of rows in a specified array or range. Measures the vertical row count of a table or range. |
COLUMNS | ★★ | COLUMNS(range)#REF! | Returns the number of columns in a specified array or range. Measures the horizontal column width of a range. |
HYPERLINK | ★★★ | HYPERLINK(url, [link_label])詳細ページ | Creates a hyperlink inside a cell with custom display text. Dynamically generates clickable links from record IDs or base URLs. |
SORTN | ★★★ | SORTN(range, [n], [display_ties_mode], [sort_column1, is_ascending1], ...)#REF! | Returns the first n items in a dataset after performing a sort. Super convenient for dynamically extracting Top 5 sales or latest 10 records. |
FORMULATEXT | ★★ | FORMULATEXT(cell)#REF! | Returns the formula as a string from a referenced cell. Essential for documenting templates and inspecting formulas visually. |
Google & Web (12)
Google Sheets exclusives including SQL-like queries, web imports, and sparklines.
| Function | Priority | Syntax & Sample | Overview & Notes |
|---|---|---|---|
QUERY | ★★★ | QUERY(data, query, [headers])#REF! | Runs a Google Visualization API Query Language (SQL-like) query across data to filter, group, and sort. Arguably the most powerful Google Sheets function—combines filtering, grouping, and sorting in one formula. |
IMPORTRANGE | ★★★ | IMPORTRANGE(spreadsheet_url, range_string)#ERROR! | Imports a range of cells from a specified separate spreadsheet in real time. Requires clicking "Allow access" once on first connection. |
GOOGLETRANSLATE | ★★★ | GOOGLETRANSLATE(text, [source_language], [target_language])#REF! | Translates text from one language into another using Google Translate. Quick way to draft translations or normalize multilingual sheets (avoid on huge ranges). |
DETECTLANGUAGE | ★★ | DETECTLANGUAGE(text_or_range)#REF! | Identifies the language used in text within the specified range and returns a two-letter language code. Useful for routing international feedback or categorizing multilingual text. |
GOOGLEFINANCE | ★★★ | GOOGLEFINANCE(ticker, [attribute], [start_date], [end_date|num_days], [interval])159.161 | Fetches current or historical securities information and currency exchange rates from Google Finance. Great for live FX rates (e.g., "CURRENCY:USDJPY") and stock price tracking. |
IMPORTXML | ★★ | IMPORTXML(url, xpath_query)#ERROR! | Imports data from any of various structured data types including XML, HTML, CSV, TSV, and RSS/ATOM feeds. Useful for lightweight scraping of structured elements from public web pages. |
IMPORTHTML | ★★ | IMPORTHTML(url, query, index)#ERROR! | Imports data from a table or list within an HTML page. Quickly pulls public HTML tables or lists directly into your sheet. |
IMPORTDATA | ★★ | IMPORTDATA(url)#ERROR! | Imports data at a given URL in .csv (comma-separated value) or .tsv (tab-separated value) format. Ideal for syncing publicly hosted CSV/TSV datasets automatically. |
IMPORTFEED | ★ | IMPORTFEED(url, [query], [headers], [num_items])#ERROR! | Imports an RSS or ATOM feed. Useful for building a live feed tracker of blog posts or news updates. |
SPARKLINE | ★★★ | SPARKLINE(data, [options])#REF! | Creates a miniature chart (line, bar, column, or winloss) contained within a single cell. Classic way to visualize KPI trends compactly alongside table rows. |
IMAGE | ★★ | IMAGE(url, [mode], [height], [width])#ERROR! | Inserts an image into a cell from a given URL. Great for displaying product thumbnails or avatars from image URLs. |
ENCODEURL | ★★ | ENCODEURL(text)#REF! | Encodes a string of text for the purpose of using in a URL query. Essential when building dynamic URLs or API query strings containing spaces or non-ASCII text. |
Arrays & LAMBDA (22)
Expand formulas across columns, reshape arrays, and define reusable LAMBDA logic.
| Function | Priority | Syntax & Sample | Overview & Notes |
|---|---|---|---|
ARRAYFORMULA | ★★★ | ARRAYFORMULA(array_formula)#REF! | Enables the display of values returned from an array formula into multiple rows and/or columns. Shortcut: Ctrl+Shift+Enter (Cmd+Shift+Enter on Mac). Automatically covers newly added rows. |
FLATTEN | ★★ | FLATTEN(range1, [range2, ...])#REF! | Flattens all the values from one or more ranges into a single column. Handy for stacking multi-column ranges into one column before running UNIQUE. |
TRANSPOSE | ★★★ | TRANSPOSE(array_or_range)#REF! | Transposes the rows and columns of an array or range of cells. Essential for flipping wide tables into tall tables and vice versa. |
VSTACK | ★★★ | VSTACK(range1, [range2, ...])#REF! | Appends ranges vertically and in sequence to return a larger array. Ideal for consolidating monthly sheets or department tables into one master list. |
HSTACK | ★★★ | HSTACK(range1, [range2, ...])#REF! | Appends ranges horizontally and in sequence to return a larger array. Convenient for combining non-adjacent columns side by side. |
CHOOSEROWS | ★★ | CHOOSEROWS(array, row_num1, [row_num2, ...])#REF! | Creates a new array from the selected rows in the existing range. Cleanly extracts specific rows (supports negative indices from the bottom). |
CHOOSECOLS | ★★ | CHOOSECOLS(array, col_num1, [col_num2, ...])#REF! | Creates a new array from the selected columns in the existing range. Selects and reorders specific columns in a single formula. |
TOROW | ★★ | TOROW(array_or_range, [ignore], [scan_by_column])#REF! | Transforms an array or range of cells into a single row. Reshapes a 2D table into a single horizontal row. |
TOCOL | ★★ | TOCOL(array_or_range, [ignore], [scan_by_column])#REF! | Transforms an array or range of cells into a single column. Includes built-in options to ignore blanks and errors—superior to FLATTEN for cleanup. |
WRAPROWS | ★★ | WRAPROWS(range, wrap_count, [pad_with])#REF! | Wraps the provided row or column of cells by rows after a specified number of elements to form a new array. Reshapes a 1D list into a 2D grid with N columns per row. |
WRAPCOLS | ★★ | WRAPCOLS(range, wrap_count, [pad_with])#REF! | Wraps the provided row or column of cells by columns after a specified number of elements to form a new array. Fills columns top-to-bottom, wrapping to a new column after N items. |
LAMBDA | ★★ | LAMBDA([name, ...], formula_expression)1300 | Creates and returns a custom function with a set of names and a formula_expression that uses them. Powers modern array helpers like MAP, BYROW, SCAN, and REDUCE. |
MAP | ★★ | MAP(array1, [array2, ...], LAMBDA)#REF! | Maps each value in the given arrays to a new value by application of a LAMBDA function. Modern functional way to transform one or more arrays element-by-element. |
BYROW | ★★ | BYROW(array_or_range, LAMBDA)#REF! | Groups an array by rows via application of a LAMBDA function to each row. Ideal for computing row-by-row sums, max values, or checks in a single spill formula. |
BYCOL | ★★ | BYCOL(array_or_range, LAMBDA)#REF! | Groups an array by columns via application of a LAMBDA function to each column. Computes column-by-column aggregations dynamically. |
SCAN | ★★ | SCAN(initial_value, array_or_range, LAMBDA)#REF! | Scans an array and produces intermediate accumulated values by applying a LAMBDA function. Powerful for generating running totals and conditional cumulative balances. |
REDUCE | ★★ | REDUCE(initial_value, array_or_range, LAMBDA)No.12 | Reduces an array to an accumulated result by applying a LAMBDA function to each value. Folds an entire array down into a single custom-aggregated value. |
MAKEARRAY | ★ | MAKEARRAY(rows, columns, LAMBDA)#REF! | Returns a calculated array of a specified row and column size, by applying a LAMBDA. Generates coordinate-based matrices or multiplication grids dynamically. |
SEQUENCE | ★★★ | SEQUENCE(rows, [columns], [start], [step])#REF! | Returns an array of sequential numbers, such as 1, 2, 3, 4. Super useful for auto-numbering or generating date calendars like SEQUENCE(30, 1, TODAY(), 1). |
RANDARRAY | ★ | RANDARRAY(rows, [columns])#REF! | Generates an array of random numbers between 0 and 1. Great for generating mock datasets or random sampling keys. |
FREQUENCY | ★★ | FREQUENCY(data, classes)92 | Calculates the frequency distribution of a one-column array into specified classes (bins). Ideal for building score distributions or price-tier histograms. |
MMULT | ★ | MMULT(matrix1, matrix2)#REF! | Calculates the matrix product of two matrices specified as arrays or ranges. Used for linear algebra, weighted scoring matrices, and advanced array math. |
Statistical (47)
Conditional counts and averages, rankings, variance, correlation, and forecasting.
| Function | Priority | Syntax & Sample | Overview & Notes |
|---|---|---|---|
COUNTIF | ★★★ | COUNTIF(range, criterion)0 | Returns a conditional count across a range matching a single criterion. Supports wildcard characters (* and ?) in text criteria. |
COUNTIFS | ★★★ | COUNTIFS(criteria_range1, criterion1, [criteria_range2, criterion2, ...])0 | Returns the count of a range depending on multiple criteria. Evaluates all criteria with AND logic to count matching rows. |
AVERAGEIF | ★★★ | AVERAGEIF(criteria_range, criterion, [average_range])#DIV/0! | Returns the average of a range depending on a single criterion. Handy for calculating average unit prices or scores for a specific category. |
AVERAGEIFS | ★★★ | AVERAGEIFS(average_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])#DIV/0! | Returns the average of a range depending on multiple criteria. The first argument is always average_range. |
MAX | ★★★ | MAX(value1, [value2, ...])0 | Returns the maximum value in a numeric dataset. Evaluates numbers only; use MAXA to include booleans and text. |
MIN | ★★★ | MIN(value1, [value2, ...])0 | Returns the minimum value in a numeric dataset. Commonly used to find lowest prices, minimum scores, or earliest dates. |
MEDIAN | ★★★ | MEDIAN(value1, [value2, ...])46.5 | Returns the median value in a numeric dataset. Best central tendency metric for skewed data like salaries or session durations. |
MODE | ★★ | MODE(value1, [value2, ...]) | Returns the most commonly occurring value in a dataset. Returns #N/A if all values are unique; use MODE.MULT for multimodal data. |
MODE.MULT | ★ | MODE.MULT(value1, [value2, ...]) | Returns the most commonly occurring values in a dataset as a vertical array. Spills all tied most-frequent values in a dataset. |
MODE.SNGL | ★ | MODE.SNGL(value1, [value2, ...]) | Returns the most commonly occurring value in a dataset. Modern equivalent of MODE for returning a single mode. |
MAXIFS | ★★★ | MAXIFS(range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])0 | Returns the maximum value in a range of cells, filtered by a set of criteria. Super handy for finding top sales or highest scores per department or product. |
MINIFS | ★★★ | MINIFS(range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])0 | Returns the minimum value in a range of cells, filtered by a set of criteria. Finds lowest prices, fastest times, or minimum scores under multiple conditions. |
LARGE | ★★★ | LARGE(data, n)#NUM! | Returns the nth largest element from a data set, where n is user-defined. LARGE(range, 1) returns the max; LARGE(range, 3) returns the 3rd highest value. |
SMALL | ★★★ | SMALL(data, n)#NUM! | Returns the nth smallest element from a data set, where n is user-defined. SMALL(range, 1) returns the min; great for extracting bottom-N values. |
RANK | ★★★ | RANK(value, data, [is_ascending])#REF! | Returns the rank of a specified value in a dataset. 0 or omitted ranks descending (largest = 1st); 1 ranks ascending. |
RANK.EQ | ★★ | RANK.EQ(value, data, [is_ascending])#REF! | Returns the rank of a specified value in a dataset; if there is more than one entry of the same value, the top rank is returned. Modern standard equivalent to RANK. |
RANK.AVG | ★ | RANK.AVG(value, data, [is_ascending])#REF! | Returns the rank of a specified value in a dataset; if there is more than one entry of the same value, the average rank is returned. Assigns average rank to tied values for statistical ranking tests. |
PERCENTILE | ★★ | PERCENTILE(data, percentile)82.9 | Returns the value at a given percentile of a dataset (0 to 1). Handy for latency SLA checks like 95th percentile (0.95) response times. |
PERCENTILE.INC | ★ | PERCENTILE.INC(data, percentile)69.25 | Returns the value at a given percentile of a dataset, inclusive of 0 and 1. Inclusive percentile equivalent to PERCENTILE. |
PERCENTILE.EXC | ★ | PERCENTILE.EXC(data, percentile)46.5 | Returns the value at a given percentile of a dataset, exclusive of 0 and 1. Calculates percentiles using exclusive interpolation. |
QUARTILE | ★★ | QUARTILE(data, quartile_number)69.25 | Returns a value nearest to a specified quartile of a dataset. Use 1 (25%), 2 (median), or 3 (75%) to inspect distribution spread. |
PERCENTRANK | ★ | PERCENTRANK(data, value, [significant_digits])#REF! | Returns the percentage rank (percentile) of a specified value in a dataset. Shows a value’s relative standing (0 to 1) within a dataset. |
STDEV | ★★ | STDEV(value1, [value2, ...])26.70205985 | Calculates the standard deviation based on a sample. Standard measure of sample spread (equivalent to STDEV.S). |
STDEVA | ★ | STDEVA(value1, [value2, ...])26.99073915 | Calculates the standard deviation based on a sample, setting text to 0 and TRUE to 1. Used when booleans or text cells must be included as numeric values. |
STDEVP | ★ | STDEVP(value1, [value2, ...])26.55654345 | Calculates the standard deviation based on an entire population. Use when your dataset represents the entire population (equivalent to STDEV.P). |
STDEV.S | ★★ | STDEV.S(value1, [value2, ...])26.70205985 | Calculates the standard deviation based on a sample. Modern notation for sample standard deviation (STDEV). |
STDEV.P | ★ | STDEV.P(value1, [value2, ...])26.55654345 | Calculates the standard deviation based on an entire population. Modern notation for population standard deviation (STDEVP). |
VAR | ★★ | VAR(value1, [value2, ...])713 | Calculates the variance based on a sample. Square of sample standard deviation (equivalent to VAR.S). |
VARP | ★ | VARP(value1, [value2, ...])705.25 | Calculates the variance based on an entire population. Population variance across complete datasets (equivalent to VAR.P). |
VAR.S | ★ | VAR.S(value1, [value2, ...])713 | Calculates the variance based on a sample. Modern equivalent of VAR. |
VAR.P | ★ | VAR.P(value1, [value2, ...])705.25 | Calculates the variance based on an entire population. Modern equivalent of VARP. |
AVEDEV | ★ | AVEDEV(value1, [value2, ...])23 | Calculates the average of the magnitudes of deviations of data from a dataset’s mean. Measures intuitive average absolute deviation without squaring differences. |
COUNTUNIQUE | ★★★ | COUNTUNIQUE(value1, [value2, ...])93 | Counts the number of unique values in a list of specified values and ranges. Standard function for counting distinct customers, users, or SKUs. |
COUNTUNIQUEIFS | ★★★ | COUNTUNIQUEIFS(range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])0 | Counts the number of unique values in a range that meet a set of criteria. Unbeatable for conditional distinct counts (e.g., unique buyers in Tokyo in 2025). |
CORREL | ★★ | CORREL(data_y, data_x)#DIV/0! | Calculates r, the Pearson product-moment correlation coefficient of a dataset (-1 to 1). Measures linear correlation strength between two variables (e.g., ad spend vs. sales). |
FORECAST | ★★ | FORECAST(x, data_y, data_x)#REF! | Calculates the expected y-value for a specified x based on a linear regression of a dataset. Projects future sales or traffic linearly from historical data. |
FORECAST.LINEAR | ★ | FORECAST.LINEAR(x, data_y, data_x) | Calculates the expected y-value for a specified x based on a linear regression of a dataset. Modern equivalent of FORECAST. |
TREND | ★ | TREND(known_data_y, [known_data_x], [new_data_x], [b])#VALUE! | Given partial data about a linear trend, fits an ideal linear trend using least squares and predicts further values. Outputs an array of projected values across multiple future periods at once. |
SLOPE | ★ | SLOPE(data_y, data_x) | Calculates the slope of the line resulting from linear regression of a dataset. Shows how much Y changes on average for each 1-unit increase in X. |
INTERCEPT | ★ | INTERCEPT(data_y, data_x) | Calculates the y-value at which the line resulting from linear regression will intersect the y-axis (x=0). Finds the constant term b in the linear equation y = ax + b. |
RSQ | ★ | RSQ(data_y, data_x) | Calculates the square of r, the Pearson product-moment correlation coefficient (R-squared). Evaluates regression goodness-of-fit on a 0 to 1 scale. |
STEYX | ★ | STEYX(data_y, data_x) | Calculates the standard error of the predicted y-value for each x in the regression of a dataset. Measures the standard error of regression predictions. |
COVARIANCE.P | ★ | COVARIANCE.P(data_y, data_x)#DIV/0! | Calculates the covariance of a dataset where the dataset represents the entire population. Measures how two population variables move together. |
COVARIANCE.S | ★ | COVARIANCE.S(data_y, data_x)#DIV/0! | Calculates the sample covariance of two datasets. Computes sample covariance between two variables. |
NORM.DIST | ★ | NORM.DIST(x, mean, standard_deviation, cumulative)0.998650102 | Returns the value of the normal distribution function (or normal cumulative distribution function) for a specified value, mean, and standard deviation. Set cumulative to TRUE for CDF probability, FALSE for PDF density. |
NORM.INV | ★ | NORM.INV(x, mean, standard_deviation)66.44853625 | Returns the value of the inverse normal distribution function for a specified value, mean, and standard deviation. Finds the threshold value corresponding to a target cumulative probability. |
CONFIDENCE.NORM | ★ | CONFIDENCE.NORM(alpha, standard_deviation, pop_size)1.959963986 | Calculates the width of half the confidence interval for a normal distribution. Use alpha = 0.05 to calculate the ± margin of error for a 95% confidence interval. |
Math (43)
Rounding, conditional totals, trigonometry, combinatorics, and math utilities.
| Function | Priority | Syntax & Sample | Overview & Notes |
|---|---|---|---|
SUMIF | ★★★ | SUMIF(range, criterion, [sum_range])0 | Returns a conditional sum across a range matching a single criterion. Ensure range and sum_range have matching dimensions. |
SUMIFS | ★★★ | SUMIFS(sum_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])0 | Returns the sum of a range depending on multiple criteria. Note that sum_range comes first, unlike in SUMIF. |
ROUND | ★★★ | ROUND(value, [places])#REF! | Rounds a number to a certain number of decimal places according to standard rules. Use 0 for integers, 2 for two decimal places, or -2 for nearest hundred. |
ROUNDUP | ★★★ | ROUNDUP(value, [places])#REF! | Rounds a number to a certain number of decimal places, always rounding up to the next valid increment. Frequently used for calculating required boxes, headcount, or rounded-up billing. |
ROUNDDOWN | ★★★ | ROUNDDOWN(value, [places])#REF! | Rounds a number to a certain number of decimal places, always rounding down to the next valid increment. Standard for loyalty point truncation and rounding down discounts. |
INT | ★★ | INT(value)#REF! | Rounds a number down to the nearest integer that is less than or equal to it. Note that negative numbers round toward negative infinity (-3.2 becomes -4). |
TRUNC | ★★ | TRUNC(value, [places])#REF! | Truncates a number to a certain number of significant digits by omitting less significant digits. Intuitive way to chop off decimal places toward zero. |
CEILING | ★★ | CEILING(value, [factor])#REF! | Rounds a number up to the nearest integer multiple of specified significance. Great for rounding up to 15-minute increments, lot sizes, or currency units. |
FLOOR | ★★ | FLOOR(value, [factor])#REF! | Rounds a number down to the nearest integer multiple of specified significance. Useful for rounding time logs down to 15-minute intervals. |
MROUND | ★★ | MROUND(value, factor)#REF! | Rounds one number to the nearest integer multiple of another. Handy for rounding to the nearest 5 minutes or 50-unit increment. |
ABS | ★★★ | ABS(value)#REF! | Returns the absolute value of a number. Commonly used to measure budget variance magnitude or tolerance thresholds. |
MOD | ★★★ | MOD(dividend, divisor)1 | Returns the result of the modulo operator, the remainder after a division operation. Classic for even/odd checks (MOD(ROW(), 2)=0) and alternating row logic. |
POWER | ★★ | POWER(base, exponent)#REF! | Returns a number raised to a power (equivalent to the ^ operator). Used for compound growth, geometry, and exponentiation. |
SQRT | ★★ | SQRT(value)#REF! | Returns the positive square root of a positive number. Core geometry and statistics helper; returns #NUM! for negative inputs. |
PRODUCT | ★★ | PRODUCT(factor1, [factor2, ...])#REF! | Returns the result of multiplying a series of numbers together. Cleanly multiplies a range of growth multipliers or ratios. |
SUMPRODUCT | ★★★ | SUMPRODUCT(array1, [array2, ...])#REF! | Calculates the sum of the products of corresponding entries in two equal-sized arrays or ranges. Super powerful for unit price × quantity totals and weighted sums. |
SUBTOTAL | ★★★ | SUBTOTAL(function_code, range1, [range2, ...])0 | Returns a subtotal for a vertical range of cells using a specified aggregation function, ignoring filtered rows. Essential for dynamic totals on filtered tables without double-counting subtotals. |
AGGREGATE | ★ | AGGREGATE(function_code, options, reference1, ...)#NAME? | Returns an aggregate in a list or database with options to ignore hidden rows and error values. Excel compatibility function; in Sheets, FILTER + SUBTOTAL is more common. |
RAND | ★★ | RAND()0.04742847525 | Returns a random number between 0 inclusive and 1 exclusive. Volatile—recalculates on every edit; paste as values to lock results. |
RANDBETWEEN | ★★★ | RANDBETWEEN(low, high)79 | Returns a uniformly random integer between two values, inclusive. Handy for mock data, raffles, and random sorting keys. |
SIGN | ★ | SIGN(value)#REF! | Given an input number, returns -1 if it is negative, 1 if positive, and 0 if it is zero. Useful for flagging trend direction (up / flat / down) as 1, 0, or -1. |
EXP | ★ | EXP(exponent)2.718281828 | Returns Euler's number, e (~2.718) raised to a power. Used in exponential growth models and scientific formulas. |
LN | ★ | LN(value)#REF! | Returns the logarithm of a number, base e (Euler's number). Used for log transformations and continuous compounding calculations. |
LOG | ★ | LOG(value, [base])#REF! | Returns the logarithm of a number given a base. Defaults to base 10 when base is omitted. |
LOG10 | ★ | LOG10(value)#REF! | Returns the logarithm of a number, base 10. Useful for order-of-magnitude checks, decibels, and log-scale charts. |
PI | ★ | PI()#REF! | Returns the value of Pi to 14 decimal places. Used in circle/sphere geometry and radian conversions. |
RADIANS | ★ | RADIANS(angle)3.141592654 | Converts an angle value in degrees to radians. Required before passing degree angles into SIN, COS, or TAN. |
DEGREES | ★ | DEGREES(angle)180 | Converts an angle value in radians to degrees. Converts radian outputs from ASIN, ACOS, or ATAN back into degrees. |
SIN | ★ | SIN(angle)0.5 | Returns the sine of an angle provided in radians. Used for waveform modeling, periodic functions, and geometry. |
COS | ★ | COS(angle)0.5 | Returns the cosine of an angle provided in radians. Used in coordinate rotations, dot products, and geometry. |
TAN | ★ | TAN(angle)1 | Returns the tangent of an angle provided in radians. Calculates slope ratios from angles in radians. |
ASIN | ★ | ASIN(value)30 | Returns the inverse sine of a value, in radians. Input must be between -1 and 1; wrap in DEGREES() for degree output. |
ACOS | ★ | ACOS(value)60 | Returns the inverse cosine of a value, in radians. Input must be between -1 and 1; useful for finding angles between vectors. |
ATAN | ★ | ATAN(value)45 | Returns the inverse tangent of a value, in radians. Derives an angle in radians from a slope ratio. |
FACT | ★ | FACT(value)120 | Returns the factorial of a number (n! = 1 × 2 × ... × n). Foundational helper for probability and combinatorics. |
FACTDOUBLE | ★ | FACTDOUBLE(value)15 | Returns the double factorial of a number (n!!). Multiplies every second integer down to 1 or 2. |
COMBIN | ★ | COMBIN(n, k)120 | Returns the number of ways to choose some number of objects from a pool of a given size (nCr). Useful for calculating round-robin match counts or combination sets. |
PERMUT | ★ | PERMUT(n, k)60 | Returns the number of ways to choose some number of objects from a pool of a given size, considering order (nPr). Counts ordered arrangements such as PIN codes or seating permutations. |
GCD | ★ | GCD(value1, [value2, ...])12 | Returns the greatest common divisor of one or more integers. Handy for simplifying aspect ratios or finding common batch sizes. |
LCM | ★ | LCM(value1, [value2, ...])36 | Returns the least common multiple of one or more integers. Useful for finding when recurring cycles align. |
QUOTIENT | ★ | QUOTIENT(dividend, divisor)3 | Returns one number divided by another, without the remainder. Clearly expresses integer division (e.g., how many full packs can be made). |
EVEN | ★ | EVEN(value)4 | Rounds a number up to the nearest even integer (away from zero). Useful for rounding quantities up to even pairs. |
ODD | ★ | ODD(value)5 | Rounds a number up to the nearest odd integer (away from zero). Rounds values up to the next odd integer. |
Text (34)
Join, extract, split, clean, and match text strings with regular expressions.
| Function | Priority | Syntax & Sample | Overview & Notes |
|---|---|---|---|
CONCATENATE | ★★★ | CONCATENATE(string1, [string2, ...])#REF! | Appends strings to one another (equivalent to the & operator). Use TEXTJOIN when joining ranges with a delimiter. |
TEXTJOIN | ★★★ | TEXTJOIN(delimiter, ignore_empty, text1, [text2, ...])No., 1, 2 | Combines the text from multiple strings and/or arrays using a specified delimiter. Ideal for creating comma-separated lists while skipping blank cells. |
LEFT | ★★★ | LEFT(string, [number_of_characters])#REF! | Returns a substring from the beginning of a specified string. Commonly used to extract prefixes, area codes, or leading digits. |
RIGHT | ★★★ | RIGHT(string, [number_of_characters])#REF! | Returns a substring from the end of a specified string. Commonly used to extract file extensions or trailing digits. |
MID | ★★★ | MID(string, starting_at, extract_length)#REF! | Returns a segment of a string starting at a specified position. Extracts middle segments from fixed-format IDs or codes. |
LEN | ★★★ | LEN(text)#REF! | Returns the length of a string in characters. Counts every character as 1 regardless of width; useful for validation. |
LENB | ★ | LENB(text)#REF! | Returns the length of a string in bytes (1 for single-byte, 2 for double-byte characters). Helpful for validating byte-length limits in legacy system exports. |
TRIM | ★★★ | TRIM(text)#REF! | Removes leading, trailing, and repeated spaces in text. Essential for preventing VLOOKUP mismatches caused by stray spaces. |
SUBSTITUTE | ★★★ | SUBSTITUTE(text_to_search, search_for, replace_with, [occurrence_number])#REF! | Replaces existing text with new text in a string. Frequently used to strip hyphens or bulk-replace specific symbols. |
REPLACE | ★★ | REPLACE(text, position, length, new_text)#REF! | Replaces part of a text string with a different text string based on character position. Useful for masking sensitive digits in IDs or card numbers. |
FIND | ★★★ | FIND(search_for, text_to_search, [starting_at])#REF! | Returns the position at which a string is first found within text (case-sensitive). Often paired with MID/LEFT to split emails at "@" or parse delimiters. |
SEARCH | ★★★ | SEARCH(search_for, text_to_search, [starting_at])#REF! | Returns the position at which a string is first found within text (case-insensitive). Case-insensitive alternative to FIND; also supports wildcards. |
TEXT | ★★★ | TEXT(number, format)#REF! | Converts a number into text according to a specified format. Essential for formatting dates ("YYYY-MM-DD") or zero-padded IDs ("000"). |
VALUE | ★★★ | VALUE(text)#REF! | Converts a string in any date, time, or number format into a numeric value. Fixes numbers imported as text strings from CSVs so they can be summed. |
LOWER | ★★ | LOWER(text)#REF! | Converts a specified string to lowercase. Useful for normalizing email addresses or keys before deduplication. |
UPPER | ★★ | UPPER(text)#REF! | Converts a specified string to uppercase. Handy for standardizing country codes, currency tickers, and SKUs. |
PROPER | ★★ | PROPER(text)#REF! | Capitalizes each word in a specified string (Title Case). Great for formatting names and headings into Title Case. |
SPLIT | ★★★ | SPLIT(text, delimiter, [split_by_each], [remove_empty_text])#REF! | Divides text around a specified character or string and puts each fragment into a separate cell. Super handy for splitting comma- or space-delimited strings across columns. |
JOIN | ★★ | JOIN(delimiter, value_or_array1, [value_or_array2, ...])#REF! | Concatenates the elements of one or more one-dimensional arrays using a specified delimiter. Predecessor to TEXTJOIN; note that it does not skip blank cells. |
REGEXEXTRACT | ★★★ | REGEXEXTRACT(text, regular_expression)#REF! | Extracts matching substrings according to a regular expression. Powerful for pulling URL parameters, IDs, or structured tokens from text. |
REGEXMATCH | ★★★ | REGEXMATCH(text, regular_expression)#REF! | Whether a piece of text matches a regular expression. Ideal for pattern validation and complex text filtering. |
REGEXREPLACE | ★★★ | REGEXREPLACE(text, regular_expression, replacement)#REF! | Replaces part of a text string with a different text string using regular expressions. Great for stripping parenthetical notes or unwanted symbols in bulk. |
EXACT | ★★ | EXACT(string1, string2)#REF! | Tests whether two strings are identical, including case sensitivity. Unlike the "=" operator, EXACT enforces strict case sensitivity. |
CHAR | ★★ | CHAR(table_number)#REF! | Convert a number into a character according to the current Unicode/ASCII table. Famous trick: CHAR(10) inserts a line break inside a formula string. |
CODE | ★ | CODE(string)#REF! | Returns the numeric Unicode/ASCII map value of the first character in the string provided. Used for character-code sorting or character-type checks. |
REPT | ★★ | REPT(text_to_repeat, number_of_repetitions)#REF! | Returns specified text repeated a number of times. Popular trick for creating lightweight in-cell bar charts with repeated blocks. |
CLEAN | ★★ | CLEAN(text)#REF! | Returns the text with the non-printable ASCII characters removed. Strips invisible control characters pasted from external systems or web pages. |
T | ★ | T(value)#REF! | Returns string arguments as text, and empty text for non-string values. Helper function to filter or pass through text values exclusively. |
TO_TEXT | ★★ | TO_TEXT(value)#REF! | Converts a provided numeric value to a text value. Explicitly casts numbers or dates into plain text strings. |
CONCAT | ★★ | CONCAT(value1, value2)#REF! | Returns the concatenation of two values (equivalent to the & operator). Limited to two arguments; use CONCATENATE or & for three or more items. |
BASE | ★ | BASE(value, base, [min_length])00FF | Converts a number into a text representation in another base (binary, octal, hex, etc.). Handy for hex color conversion and radix formatting. |
DECIMAL | ★ | DECIMAL(value, base)255 | Converts the text representation of a number in another base (2–36) to base 10. Converts hex or binary text strings back into base-10 integers. |
UNICHAR | ★★ | UNICHAR(number)★ | Returns the Unicode character for a number, including symbols and emojis. Outputs stars, arrows, checkmarks, or emojis dynamically via formulas. |
UNICODE | ★ | UNICODE(text)#REF! | Returns the decimal Unicode value of the first character of the text. Retrieves the Unicode code point for any character, including multibyte symbols. |
Date & Time (27)
Construct and extract dates and times, calculate working days, and measure durations.
| Function | Priority | Syntax & Sample | Overview & Notes |
|---|---|---|---|
TODAY | ★★★ | TODAY()2026/11/24 | Returns the current date as a date value (without time). Frequently used to calculate elapsed days or days remaining until a deadline. |
NOW | ★★★ | NOW()2026/11/24 22:04:33 | Returns the current date and time as a date value. Used for dynamic timestamps and last-updated indicators. |
DATE | ★★★ | DATE(year, month, day)2024/12/31 | Converts a provided year, month, and day into a date. Essential for combining separate year/month/day columns into valid dates. |
YEAR | ★★★ | YEAR(date)#REF! | Returns the year specified by a given date. Core function for annual grouping and age calculations. |
MONTH | ★★★ | MONTH(date)#REF! | Returns the month of the year a specific date falls in, in numeric format (1–12). Commonly used to create grouping keys for monthly reports. |
DAY | ★★★ | DAY(date)#REF! | Returns the day of the month that a specific date falls on, in numeric format (1–31). Used for billing cutoff checks and day-of-month extraction. |
TIME | ★★ | TIME(hour, minute, second)17:30:00 | Converts a provided hour, minute, and second into a time. Handy for constructing shift durations or schedule timestamps. |
HOUR | ★★ | HOUR(time)#REF! | Returns the hour component of a specific time, in numeric format (0–23). Used for hourly traffic or support ticket volume breakdowns. |
MINUTE | ★★ | MINUTE(time)#REF! | Returns the minute component of a specific time, in numeric format (0–59). Extracts minutes for granular duration or schedule logic. |
SECOND | ★ | SECOND(time)#REF! | Returns the second component of a specific time, in numeric format (0–59). Used for second-level log timestamp parsing. |
DATEDIF | ★★★ | DATEDIF(start_date, end_date, unit)#REF! | Calculates the number of days, months, or years between two dates. Use units like "Y" (full years), "YM" (remaining months), or "D" (days). |
EDATE | ★★★ | EDATE(start_date, months)#REF! | Returns a date a specified number of months before or after another date. Ideal for calculating renewal dates, due dates, or N-month offsets. |
EOMONTH | ★★★ | EOMONTH(start_date, months)#REF! | Returns a date representing the last day of a month which falls a specified number of months before or after another date. Use 0 for the current month-end; EOMONTH(date, -1) + 1 gives the 1st of the month. |
WEEKDAY | ★★★ | WEEKDAY(date, [type])#REF! | Returns a number representing the day of the week of the date provided. Used to detect weekends or display weekday names when paired with CHOOSE. |
WEEKNUM | ★★ | WEEKNUM(date, [type])#REF! | Returns a number representing the week of the year where the provided date falls. Handy for weekly reporting and campaign cohort grouping. |
ISOWEEKNUM | ★ | ISOWEEKNUM(date)#REF! | Returns the number of the ISO week of the year where the provided date falls. Follows the ISO 8601 week-numbering standard used in international reporting. |
WORKDAY | ★★★ | WORKDAY(start_date, num_days, [holidays])#REF! | Calculates the end date after a specified number of working days (excluding weekends and holidays). Pass a range of holiday dates as the 3rd argument to exclude public holidays. |
WORKDAY.INTL | ★★ | WORKDAY.INTL(start_date, num_days, [weekend], [holidays])#REF! | Calculates the date after a specified number of workdays with custom weekend parameters. Supports custom non-working days (e.g., Sunday-only or mid-week closures). |
NETWORKDAYS | ★★★ | NETWORKDAYS(start_date, end_date, [holidays])#REF! | Returns the number of net working days between two provided days. Standard function for counting business days between two dates. |
NETWORKDAYS.INTL | ★★ | NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])#REF! | Returns the number of net working days between two provided days with custom weekend parameters. Useful for calculating working days under custom shift schedules. |
DAYS | ★★ | DAYS(end_date, start_date)#REF! | Returns the number of days between two dates (end_date - start_date). Equivalent to end_date - start_date, making formula intent self-documenting. |
DAYS360 | ★ | DAYS360(start_date, end_date, [method])#REF! | Returns the difference between two days based on the 360-day year used in some financial interest calculations. Used in accounting and bond/interest accrual calculations. |
YEARFRAC | ★ | YEARFRAC(start_date, end_date, [day_count_convention])#REF! | Returns the number of years, including fractional years, between two dates using a specified day count convention. Used for pro-rata calculations and fractional year tenure. |
DATEVALUE | ★★ | DATEVALUE(date_string)45383 | Converts a provided date string in a known format to a date serial value. Converts imported text dates into real date values for arithmetic. |
TIMEVALUE | ★ | TIMEVALUE(time_string)0.7083333333 | Returns the fraction of a 24-hour day the time represents. Converts text-formatted timestamps into numeric day fractions. |
TO_DATE | ★★ | TO_DATE(value)#REF! | Converts a provided number to a date. Casts a numeric date serial number back into date formatting. |
EPOCHTODATE | ★★ | EPOCHTODATE(timestamp, [unit])#REF! | Converts a Unix epoch timestamp in seconds, milliseconds, or microseconds to a datetime in UTC. Convenient for converting API or server log Unix timestamps into readable dates. |
Information (19)
Inspect cell data types, error states, references, and sheet metadata.
| Function | Priority | Syntax & Sample | Overview & Notes |
|---|---|---|---|
ISURL | ★ | ISURL(value)#REF! | Checks whether a value is a valid URL. Useful for validating URL columns in link directories or form responses. |
ISBLANK | ★★★ | ISBLANK(value)FALSE | Checks whether the referenced cell is completely empty. Note: cells containing a formula that outputs "" return FALSE. |
ISNUMBER | ★★★ | ISNUMBER(value)FALSE | Checks whether a value is a number (including dates and times). Useful for distinguishing true numeric values from text-formatted digits. |
ISTEXT | ★★ | ISTEXT(value)FALSE | Checks whether a value is text. Used for data-type validation and conditional branching. |
ISNONTEXT | ★ | ISNONTEXT(value)TRUE | Checks whether a value is non-textual. Logical opposite of ISTEXT (returns TRUE for numbers, booleans, blanks, and errors). |
ISLOGICAL | ★ | ISLOGICAL(value)FALSE | Checks whether a value is TRUE or FALSE. Validates boolean columns or checkbox cells. |
ISERROR | ★★ | ISERROR(value)TRUE | Checks whether a value is any error (#N/A, #VALUE!, #REF!, #DIV/0!, etc.). Detects any formula error; use IFERROR if you simply want a fallback value. |
ISERR | ★ | ISERR(value)TRUE | Checks whether a value is an error other than #N/A. Useful when #N/A ("not found") is acceptable, but real formula errors must be flagged. |
ISNA | ★★ | ISNA(value)FALSE | Checks whether a value is the error #N/A. Targets missing lookup results (#N/A) specifically. |
ISDATE | ★★ | ISDATE(value)#REF! | Returns whether a value is a valid date. Handy for validating date columns and user inputs. |
ISREF | ★ | ISREF(value)FALSE | Checks whether a value is a valid cell reference. Useful for verifying dynamic references constructed with INDIRECT. |
ISFORMULA | ★★ | ISFORMULA(cell)#REF! | Checks whether a formula is in the referenced cell. Great for auditing spreadsheets to spot hardcoded overrides vs. formulas. |
CELL | ★ | CELL(info_type, reference)#REF! | Returns the requested information about the specified cell (address, col, row, type, etc.). Retrieves cell metadata such as "address", "col", or "row". |
TYPE | ★ | TYPE(value)16 | Returns a number associated with the type of data passed into the function (1=number, 2=text, 4=boolean, 16=error, 64=array). Used for debugging and strict data-type inspection. |
N | ★★ | N(value)#REF! | Returns the argument provided as a number (dates to serial numbers, TRUE to 1, text to 0). Famous trick: add +N("inline comment") inside numeric formulas to document logic. |
NA | ★ | NA()#REF! | Returns the "value not available" error, #N/A. Classic charting trick so line charts skip missing points instead of plotting zero. |
ERROR.TYPE | ★ | ERROR.TYPE(reference)4 | Returns a number corresponding to the error value in a different cell. Allows branching logic based on the specific error code. |
SHEET | ★ | SHEET([value])2 | Returns the sheet number of the specified sheet or reference. Omit the argument to get the current sheet’s index number. |
SHEETS | ★ | SHEETS([reference])2 | Returns the total number of sheets in a spreadsheet (or reference). Useful for workbook auditing and index sheets. |
Financial (20)
Calculate loan payments, present/future values, investment returns, and depreciation.
| Function | Priority | Syntax & Sample | Overview & Notes |
|---|---|---|---|
PMT | ★★★ | PMT(rate, number_of_periods, present_value, [future_value], [end_or_beginning])¥91,855.33 | Calculates the periodic payment for an annuity investment based on constant-amount periodic payments and a constant interest rate. Standard loan payment formula; divide annual rate by 12 and multiply years by 12 for monthly payments. |
PV | ★★ | PV(rate, number_of_periods, payment_amount, [future_value], [end_or_beginning])¥772,173.49 | Calculates the present value of an annuity investment based on constant-amount periodic payments and a constant interest rate. Used to estimate borrowing capacity or discount future cash flows. |
FV | ★★★ | FV(rate, number_of_periods, payment_amount, [present_value], [end_or_beginning])¥12,331,010.06 | Calculates the future value of an annuity investment based on constant-amount periodic payments and a constant interest rate. Great for modeling compound savings growth and retirement balances. |
RATE | ★★ | RATE(number_of_periods, payment_per_period, present_value, [future_value], [end_or_beginning], [rate_guess])0.0506480105 | Calculates the interest rate of an annuity investment based on constant-amount periodic payments and the assumption of a constant interest rate. Solves for the implied per-period interest rate (multiply by 12 for annual rate). |
NPER | ★★ | NPER(rate, payment_amount, present_value, [future_value], [end_or_beginning])376.2378563 | Calculates the number of payment periods for an investment based on constant-amount periodic payments and a constant interest rate. Calculates how many months or periods it takes to pay off a loan or reach a savings goal. |
IPMT | ★★ | IPMT(rate, period, number_of_periods, present_value, [future_value], [end_or_beginning])¥37,500.00 | Calculates the payment on interest for an investment based on constant-amount periodic payments and a constant interest rate. Breaks out the interest portion for a specific period in an amortization schedule. |
PPMT | ★★ | PPMT(rate, period, number_of_periods, present_value, [future_value], [end_or_beginning])¥54,355.33 | Calculates the payment on the principal of an investment based on constant-amount periodic payments and a constant interest rate. Pair with IPMT to build complete principal-vs-interest amortization tables. |
NPV | ★★ | NPV(discount, cashflow1, [cashflow2, ...])#REF! | Calculates the net present value of an investment based on a series of periodic cash flows and a discount rate. Note: add initial Period-0 investment outside NPV(), as NPV assumes Period-1 start. |
XNPV | ★ | XNPV(discount, cashflow_amounts, cashflow_dates)#VALUE! | Calculates the net present value of an investment based on a specified series of potentially irregularly spaced cash flows. Evaluates net present value when cash flows occur on irregular calendar dates. |
IRR | ★★ | IRR(cashflow_amounts, [rate_guess])#REF! | Calculates the internal rate of return on an investment based on a series of periodic cash flows. Evaluates project yield; ensure initial outflow is included as a negative number. |
XIRR | ★ | XIRR(cashflow_amounts, cashflow_dates, [rate_guess])#VALUE! | Calculates the internal rate of return of an investment based on a specified series of potentially irregularly spaced cash flows. Computes annualized returns for irregular real-world investment dates. |
MIRR | ★ | MIRR(cashflow_amounts, financing_rate, reinvestment_return_rate)#REF! | Calculates the modified internal rate of return on an investment based on a series of periodic cash flows and the difference between borrowing and reinvestment rates. Refines IRR by separating borrowing cost from realistic reinvestment yield. |
SLN | ★★ | SLN(cost, salvage, life)¥180,000.00 | Calculates the depreciation of an asset for one period using the straight-line method. Simplest depreciation method allocating equal expense each period. |
SYD | ★ | SYD(cost, salvage, life, period)¥300,000.00 | Calculates the depreciation of an asset for a specified period using the sum-of-years digits method. Accelerated depreciation method front-loading expense in earlier periods. |
DB | ★ | DB(cost, salvage, life, period, [month])¥369,000.00 | Calculates the depreciation of an asset for a specified period using the arithmetic declining balance method. Declining balance depreciation with optional first-year partial month count. |
DDB | ★ | DDB(cost, salvage, life, period, [factor])¥400,000.00 | Calculates the depreciation of an asset for a specified period using the double-declining balance method. Accelerated depreciation at twice the straight-line rate by default. |
EFFECT | ★ | EFFECT(nominal_rate, periods_per_year)0.06167781186 | Calculates the annual effective interest rate given the nominal rate and number of compounding periods per year. Converts stated APR into true annual percentage yield (APY) with compounding. |
NOMINAL | ★ | NOMINAL(effective_rate, periods_per_year)0.06002100342 | Calculates the annual nominal interest rate given the effective rate and number of compounding periods per year. Inverse of EFFECT; derives nominal APR from an effective annual rate. |
CUMIPMT | ★ | CUMIPMT(rate, number_of_periods, present_value, first_period, last_period, end_or_beginning)-444529.2609 | Calculates the cumulative interest paid over a range of payment periods for an investment based on constant-amount periodic payments and a constant interest rate. Useful for calculating total interest paid during a given loan year. |
CUMPRINC | ★ | CUMPRINC(rate, number_of_periods, present_value, first_period, last_period, end_or_beginning)-797903.4967 | Calculates the cumulative principal paid over a range of payment periods for an investment based on constant-amount periodic payments and a constant interest rate. Calculates total principal paid down across a specified range of loan periods. |
Database (10)
Aggregate or extract records from structured tables using criteria ranges.
| Function | Priority | Syntax & Sample | Overview & Notes |
|---|---|---|---|
DSUM | ★ | DSUM(database, field, criteria)#VALUE! | Returns the sum of values selected from a database table-like array or range using a SQL-like query. Classic database function using a header-matched criteria table. |
DCOUNT | ★ | DCOUNT(database, field, criteria)#VALUE! | Counts numeric values selected from a database table-like array or range using a SQL-like query. Criteria range headers must match database column headers exactly. |
DCOUNTA | ★ | DCOUNTA(database, field, criteria)#VALUE! | Counts values, including text, selected from a database table-like array or range using a SQL-like query. Counts non-blank records (including text) matching a criteria range. |
DAVERAGE | ★ | DAVERAGE(database, field, criteria)#VALUE! | Returns the average of a set of values selected from a database table-like array or range using a SQL-like query. Supports complex AND/OR criteria blocks via separate criteria rows. |
DMAX | ★ | DMAX(database, field, criteria)#VALUE! | Returns the maximum value selected from a database table-like array or range using a SQL-like query. Database-style conditional max (MAXIFS is simpler for most modern sheets). |
DMIN | ★ | DMIN(database, field, criteria)#VALUE! | Returns the minimum value selected from a database table-like array or range using a SQL-like query. Database-style conditional min (MINIFS is simpler for most modern sheets). |
DGET | ★ | DGET(database, field, criteria)#VALUE! | Returns a single value from a database table-like array or range using a SQL-like query. Returns #VALUE! if 0 records match, or #NUM! if more than 1 record matches. |
DPRODUCT | ★ | DPRODUCT(database, field, criteria)#VALUE! | Returns the product of values selected from a database table-like array or range using a SQL-like query. Multiplies numeric field values across matching database rows. |
DSTDEV | ★ | DSTDEV(database, field, criteria)#VALUE! | Returns the standard deviation of a population sample selected from a database table-like array or range using a SQL-like query. Computes sample standard deviation for records matching criteria. |
DVAR | ★ | DVAR(database, field, criteria)#VALUE! | Returns the variance of a population sample selected from a database table-like array or range using a SQL-like query. Computes sample variance for records matching criteria. |
Engineering (8)
Convert number bases and measurement units, run bitwise logic, and evaluate thresholds.
| Function | Priority | Syntax & Sample | Overview & Notes |
|---|---|---|---|
BIN2DEC | ★ | BIN2DEC(signed_binary_number)13 | Converts a signed binary number to decimal format. Converts signed binary bit strings (up to 10 bits) to decimal integers. |
DEC2BIN | ★ | DEC2BIN(decimal_number, [significant_digits])00001101 | Converts a decimal number to signed binary format. Generates zero-padded binary strings for bitmask inspection. |
HEX2DEC | ★ | HEX2DEC(signed_hexadecimal_number)26 | Converts a signed hexadecimal number to decimal format. Converts hex color channels or hex codes into base-10 numbers. |
DEC2HEX | ★ | DEC2HEX(decimal_number, [significant_digits])FF | Converts a decimal number to signed hexadecimal format. Great for converting RGB values (0–255) into 2-digit hex codes (00–FF). |
CONVERT | ★★ | CONVERT(value, start_unit, end_unit)#REF! | Converts a numeric value to a different unit of measure (length, weight, temperature, etc.). One-step conversion across units like miles to km, lb to kg, or °F to °C. |
DELTA | ★ | DELTA(number1, [number2])#REF! | Compare two numeric values, returning 1 if they’re equal and 0 otherwise. Kronecker delta function—handy for numeric equality flags without IF. |
GESTEP | ★ | GESTEP(value, [step])#REF! | Returns 1 if the rate is strictly greater than or equal to the provided step value or 0 otherwise. Heaviside step function—turns threshold checks into 1/0 flags cleanly. |
BITAND | ★ | BITAND(value1, value2)#REF! | Bitwise boolean AND of two numbers. Used for checking permission bitmasks and binary flags. |