Excel functions cheat sheet
The 64 functions you will use most · excelversity.com
Math & trig
- SUM(number1, [number2], ...)
- Adds numbers, cell ranges or both and returns the total.
- SUMIF(range, criteria, [sum_range])
- Adds the cells that meet one condition, such as all sales for the East region or every invoice above 500.
- SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
- Adds the values that meet several conditions at once, such as East-region laptop sales in April.
- ROUND(number, num_digits)
- Rounds a number to a chosen number of digits, with halves rounded away from zero.
- ROUNDUP(number, num_digits)
- Rounds a number away from zero to a chosen number of digits, e.g. to count boxes or billable units.
- ROUNDDOWN(number, num_digits)
- Rounds a number toward zero to a chosen number of digits, cutting off the rest.
- INT(number)
- Rounds a number down to the nearest integer, toward minus infinity (−7.85 becomes −8).
- MOD(number, divisor)
- Returns the remainder after dividing one number by another; the result has the sign of the divisor.
- SEQUENCE(rows, [columns], [start], [step])
- Generates a spilled list or grid of sequential numbers with a chosen start and step.
Statistical
- COUNT(value1, [value2], ...)
- Counts how many cells contain numbers (including dates and times).
- COUNTA(value1, [value2], ...)
- Counts all cells that are not empty, whatever they contain: numbers, text, dates, TRUE/FALSE, errors or even empty text returned by a formula.
- COUNTIF(range, criteria)
- Counts the cells in a range that meet one condition, such as invoices marked "Paid", scores above 50 or emails containing "@gmail".
- COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)
- Counts the rows that meet several conditions at once, such as deals that are in the North region and won and worth at least 2,000.
- AVERAGE(number1, [number2], ...)
- Returns the arithmetic mean of numbers: add them up and divide by how many there are.
- AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
- Averages the cells that meet several conditions at once, for example sales of one product in one region, or invoices between two dates.
- MAX(number1, [number2], ...)
- Returns the largest number in a set of values, such as the highest sale, the top score or the latest date.
- MIN(number1, [number2], ...)
- Returns the smallest number in a set of values, such as the lowest price, the lowest score or the earliest date.
- MAXIFS(max_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
- Returns the largest number among the rows that meet one or more conditions, e.g. the biggest sale in the North region.
Logical
- IF(logical_test, [value_if_true], [value_if_false])
- Tests a condition and returns one value when it is TRUE and another when it is FALSE.
- IFS(logical_test1, value_if_true1, [logical_test2, value_if_true2], ...)
- Checks several conditions in order and returns the value for the first one that is TRUE.
- IFERROR(value, value_if_error)
- Returns a value you choose when a formula results in an error, and the formula's normal result otherwise.
- AND(logical1, [logical2], ...)
- Returns TRUE only when every condition you give it is TRUE, and FALSE as soon as any one of them is FALSE.
- OR(logical1, [logical2], ...)
- Returns TRUE if at least one of the conditions is TRUE, and FALSE only when all of them are FALSE.
- NOT(logical)
- Reverses a logical value: TRUE becomes FALSE and FALSE becomes TRUE.
- SWITCH(expression, value1, result1, [value2, result2], ..., [default])
- Compares one value against a list of options and returns the result paired with the first exact match, with an optional default.
- LET(name1, value1, [name2, value2, ...], calculation)
- Gives names to values or calculations inside one formula, so long formulas are easier to read and repeated parts are calculated only once.
Lookup & reference
- XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
- Finds a value in one range and returns the item in the same position of another range, with built-in not-found text and flexible match modes.
- VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
- Searches the first column of a table for a value and returns a value from another column in the same row.
- INDEX(array, row_num, [column_num], [area_num])
- Returns the value at a given row and column position inside a range, or a whole row or column of it.
- MATCH(lookup_value, lookup_array, [match_type])
- Returns the position of a value within a single row or column, such as 3 if it is the third item.
- XMATCH(lookup_value, lookup_array, [match_mode], [search_mode])
- Returns the position of an item in a row, column or array, with exact match by default and options to search backwards or find the next larger item.
- FILTER(array, include, [if_empty])
- Returns only the rows (or columns) of a range that meet one or more conditions, as a live list that updates when the data changes.
- SORT(array, [sort_index], [sort_order], [by_col])
- Sorts the contents of a range or array by one or more columns and returns the sorted copy as a spilled list.
- UNIQUE(array, [by_col], [exactly_once])
- Returns the distinct values (or distinct rows) from a range, removing duplicates, as a list that updates automatically.
Text
- LEFT(text, [num_chars])
- Returns a set number of characters from the start of a text string, e.g. the first 3 letters of a product code.
- RIGHT(text, [num_chars])
- Returns a set number of characters from the end of a text string, e.g. the last 4 digits of a phone or account number.
- MID(text, start_num, num_chars)
- Returns a given number of characters from the middle of a text, starting at any position you choose.
- LEN(text)
- Counts the characters in a text string, including spaces, punctuation and invisible characters.
- FIND(find_text, within_text, [start_num])
- Returns the position of one piece of text inside another, counting from the left.
- SEARCH(find_text, within_text, [start_num])
- Returns the position of one text inside another, ignoring case and allowing wildcards ( and ?).
- SUBSTITUTE(text, old_text, new_text, [instance_num])
- Replaces every occurrence (or one chosen occurrence) of a specific text with new text.
- TRIM(text)
- Removes spaces at the start and end of text and reduces any run of spaces between words to a single space.
- UPPER(text)
- Converts all letters in a text string to capitals.
- PROPER(text)
- Capitalises the first letter of every word and makes all other letters lowercase, e.g. "aNA sILVA" becomes "Ana Silva".
- TEXT(value, format_text)
- Formats a number or date as text using a format code such as "#,##0.00", "0%" or "dd-mmm-yyyy", e.g. for use in sentences and labels.
- TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)
- Joins text from ranges or values with a delimiter between each item, optionally skipping empty cells.
- TEXTSPLIT(text, col_delimiter, [row_delimiter], [ignore_empty], [match_mode], [pad_with])
- Splits text into separate cells at the delimiters you choose, across columns, down rows, or both.
- VALUE(text)
- Converts text that looks like a number, percentage, date or time into a real number Excel can calculate with.
Date & time
- TODAY()
- Returns today's date, updating automatically each day the workbook recalculates.
- NOW()
- Returns the current date and time, updating every time the worksheet recalculates.
- DATE(year, month, day)
- Builds a real Excel date from separate year, month and day numbers, rolling over extra months or days automatically.
- YEAR(serial_number)
- Returns the four-digit year of a date, from 1900 to 9999.
- MONTH(serial_number)
- Returns the month number (1 for January to 12 for December) from a date.
- DAY(serial_number)
- Returns the day of the month (1 to 31) from a date.
- EDATE(start_date, months)
- Returns the date that is a given number of months before or after a start date — ideal for contract ends, renewals and due dates.
- EOMONTH(start_date, months)
- Returns the last day of the month a given number of months before or after a date — perfect for month-end due dates and reports.
- DATEDIF(start_date, end_date, unit)
- Counts the complete years, months or days between two dates — the classic way to calculate age or length of service.
- NETWORKDAYS(start_date, end_date, [holidays])
- Counts working days (Monday to Friday) between two dates, including both ends and optionally skipping a list of holidays.
- WORKDAY(start_date, days, [holidays])
- Returns the date a given number of working days before or after a start date, skipping weekends and optional holidays.
- WEEKDAY(serial_number, [return_type])
- Returns the day of the week of a date as a number, e.g. 1 = Sunday to 7 = Saturday (the numbering is adjustable).
Financial
- PMT(rate, nper, pv, [fv], [type])
- Calculates the regular payment for a loan or savings plan with a constant interest rate and equal payments.
- FV(rate, nper, pmt, [pv], [type])
- Returns the future value of an investment or loan with regular payments and a constant interest rate.
- NPV(rate, value1, [value2], ...)
- Returns the net present value of a series of future cash flows at a given discount rate, assuming one flow at the end of each period.
- IRR(values, [guess])
- Returns the internal rate of return of a series of evenly spaced cash flows — the rate at which their NPV equals zero.