Overview of formulas in Excel
Get started on how to create formulas and use built-in functions to perform calculations and solve problems.
Important: The calculated results of formulas and some Excel worksheet functions may differ slightly between a Windows PC using x86 or x86-64 architecture and a Windows RT PC using ARM architecture. Learn more about the differences.
Important: In this article we discuss XLOOKUP and VLOOKUP, which are similar. Try using the new XLOOKUP function, an improved version of VLOOKUP that works in any direction and returns exact matches by default, making it easier and more convenient to use than its predecessor.
Create a formula that refers to values in other cells
-
Select a cell.
-
Type the equal sign =.
Note: Formulas in Excel always begin with the equal sign.
-
Select a cell or type its address in the selected cell.
-
Enter an operator. For example, – for subtraction.
-
Select the next cell, or type its address in the selected cell.
-
Press Enter. The result of the calculation appears in the cell with the formula.
See a formula
-
When a formula is entered into a cell, it also appears in the Formula bar.
-
To see a formula, select a cell, and it will appear in the formula bar.
Enter a formula that contains a built-in function
-
Select an empty cell.
-
Type an equal sign = and then type a function. For example, =SUM for getting the total sales.
-
Type an opening parenthesis (.
-
Select the range of cells, and then type a closing parenthesis).
-
Press Enter to get the result.
Download our Formulas tutorial workbook
We’ve put together a Get started with Formulas workbook that you can download. If you’re new to Excel, or even if you have some experience with it, you can walk through Excel’s most common formulas in this tour. With real-world examples and helpful visuals, you’ll be able to Sum, Count, Average, and Vlookup like a pro.
Formulas in-depth
You can browse through the individual sections below to learn more about specific formula elements.
A formula can also contain any or all of the following: functions, references, operators, and constants.
Parts of a formula
1. Functions: The PI() function returns the value of pi: 3.142…
2. References: A2 returns the value in cell A2.
3. Constants: Numbers or text values entered directly into a formula, such as 2.
4. Operators: The ^ (caret) operator raises a number to a power, and the * (asterisk) operator multiplies numbers.
A constant is a value that is not calculated; it always stays the same. For example, the date 10/9/2008, the number 210, and the text «Quarterly Earnings» are all constants. An expression or a value resulting from an expression is not a constant. If you use constants in a formula instead of references to cells (for example, =30+70+110), the result changes only if you modify the formula. In general, it’s best to place constants in individual cells where they can be easily changed if needed, then reference those cells in formulas.
A reference identifies a cell or a range of cells on a worksheet, and tells Excel where to look for the values or data you want to use in a formula. You can use references to use data contained in different parts of a worksheet in one formula or use the value from one cell in several formulas. You can also refer to cells on other sheets in the same workbook, and to other workbooks. References to cells in other workbooks are called links or external references.
-
The A1 reference style
By default, Excel uses the A1 reference style, which refers to columns with letters (A through XFD, for a total of 16,384 columns) and refers to rows with numbers (1 through 1,048,576). These letters and numbers are called row and column headings. To refer to a cell, enter the column letter followed by the row number. For example, B2 refers to the cell at the intersection of column B and row 2.
To refer to
Use
The cell in column A and row 10
A10
The range of cells in column A and rows 10 through 20
A10:A20
The range of cells in row 15 and columns B through E
B15:E15
All cells in row 5
5:5
All cells in rows 5 through 10
5:10
All cells in column H
H:H
All cells in columns H through J
H:J
The range of cells in columns A through E and rows 10 through 20
A10:E20
-
Making a reference to a cell or a range of cells on another worksheet in the same workbook
In the following example, the AVERAGE function calculates the average value for the range B1:B10 on the worksheet named Marketing in the same workbook.
1. Refers to the worksheet named Marketing
2. Refers to the range of cells from B1 to B10
3. The exclamation point (!) Separates the worksheet reference from the cell range reference
Note: If the referenced worksheet has spaces or numbers in it, then you need to add apostrophes (‘) before and after the worksheet name, like =’123′!A1 or =’January Revenue’!A1.
-
The difference between absolute, relative and mixed references
-
Relative references A relative cell reference in a formula, such as A1, is based on the relative position of the cell that contains the formula and the cell the reference refers to. If the position of the cell that contains the formula changes, the reference is changed. If you copy or fill the formula across rows or down columns, the reference automatically adjusts. By default, new formulas use relative references. For example, if you copy or fill a relative reference in cell B2 to cell B3, it automatically adjusts from =A1 to =A2.
Copied formula with relative reference
-
Absolute references An absolute cell reference in a formula, such as $A$1, always refer to a cell in a specific location. If the position of the cell that contains the formula changes, the absolute reference remains the same. If you copy or fill the formula across rows or down columns, the absolute reference does not adjust. By default, new formulas use relative references, so you may need to switch them to absolute references. For example, if you copy or fill an absolute reference in cell B2 to cell B3, it stays the same in both cells: =$A$1.
Copied formula with absolute reference
-
Mixed references A mixed reference has either an absolute column and relative row, or absolute row and relative column. An absolute column reference takes the form $A1, $B1, and so on. An absolute row reference takes the form A$1, B$1, and so on. If the position of the cell that contains the formula changes, the relative reference is changed, and the absolute reference does not change. If you copy or fill the formula across rows or down columns, the relative reference automatically adjusts, and the absolute reference does not adjust. For example, if you copy or fill a mixed reference from cell A2 to B3, it adjusts from =A$1 to =B$1.
Copied formula with mixed reference
-
-
The 3-D reference style
Conveniently referencing multiple worksheets If you want to analyze data in the same cell or range of cells on multiple worksheets within a workbook, use a 3-D reference. A 3-D reference includes the cell or range reference, preceded by a range of worksheet names. Excel uses any worksheets stored between the starting and ending names of the reference. For example, =SUM(Sheet2:Sheet13!B5) adds all the values contained in cell B5 on all the worksheets between and including Sheet 2 and Sheet 13.
-
You can use 3-D references to refer to cells on other sheets, to define names, and to create formulas by using the following functions: SUM, AVERAGE, AVERAGEA, COUNT, COUNTA, MAX, MAXA, MIN, MINA, PRODUCT, STDEV.P, STDEV.S, STDEVA, STDEVPA, VAR.P, VAR.S, VARA, and VARPA.
-
3-D references cannot be used in array formulas.
-
3-D references cannot be used with the intersection operator (a single space) or in formulas that use implicit intersection.
What occurs when you move, copy, insert, or delete worksheets The following examples explain what happens when you move, copy, insert, or delete worksheets that are included in a 3-D reference. The examples use the formula =SUM(Sheet2:Sheet6!A2:A5) to add cells A2 through A5 on worksheets 2 through 6.
-
Insert or copy If you insert or copy sheets between Sheet2 and Sheet6 (the endpoints in this example), Excel includes all values in cells A2 through A5 from the added sheets in the calculations.
-
Delete If you delete sheets between Sheet2 and Sheet6, Excel removes their values from the calculation.
-
Move If you move sheets from between Sheet2 and Sheet6 to a location outside the referenced sheet range, Excel removes their values from the calculation.
-
Move an endpoint If you move Sheet2 or Sheet6 to another location in the same workbook, Excel adjusts the calculation to accommodate the new range of sheets between them.
-
Delete an endpoint If you delete Sheet2 or Sheet6, Excel adjusts the calculation to accommodate the range of sheets between them.
-
-
The R1C1 reference style
You can also use a reference style where both the rows and the columns on the worksheet are numbered. The R1C1 reference style is useful for computing row and column positions in macros. In the R1C1 style, Excel indicates the location of a cell with an «R» followed by a row number and a «C» followed by a column number.
Reference
Meaning
R[-2]C
A relative reference to the cell two rows up and in the same column
R[2]C[2]
A relative reference to the cell two rows down and two columns to the right
R2C2
An absolute reference to the cell in the second row and in the second column
R[-1]
A relative reference to the entire row above the active cell
R
An absolute reference to the current row
When you record a macro, Excel records some commands by using the R1C1 reference style. For example, if you record a command, such as clicking the AutoSum button to insert a formula that adds a range of cells, Excel records the formula by using R1C1 style, not A1 style, references.
You can turn the R1C1 reference style on or off by setting or clearing the R1C1 reference style check box under the Working with formulas section in the Formulas category of the Options dialog box. To display this dialog box, click the File tab.
Top of Page
Need more help?
You can always ask an expert in the Excel Tech Community or get support in the Answers community.
See Also
Switch between relative, absolute and mixed references for functions
Using calculation operators in Excel formulas
The order in which Excel performs operations in formulas
Using functions and nested functions in Excel formulas
Define and use names in formulas
Guidelines and examples of array formulas
Delete or remove a formula
How to avoid broken formulas
Find and correct errors in formulas
Excel keyboard shortcuts and function keys
Excel functions (by category)
Need more help?
Learn how to use all Excel worksheet formulas entered in the formula bar. Worksheet formulas are built-in functions that are entered as part of a formula in a cell. These are the most basic functions used when learning Excel.
Below is a list of Excel worksheet formulas sorted alphabetically. If you would like a list of these formulas sorted by category, click on the following button:
Sort Alphabetically
Search Worksheet formulas:
(Enter a value in the field above to quickly find functions in the list below)
ADDRESS (WS) | Returns a text representation of a cell address |
AREAS (WS) | Returns the number of ranges in a reference |
CHOOSE (WS) | Returns a value from a list of values based on a given position |
COLUMN (WS) | Returns the column number of a cell reference |
COLUMNS (WS) | Returns the number of columns in a cell reference |
HLOOKUP (WS) | Performs a horizontal lookup by searching for a value in the top row of the table and returning the value in the same column based on the index_number |
HYPERLINK (WS) | Creates a shortcut to a file or Internet address |
INDEX (WS) | Returns either the value or the reference to a value from a table or range |
INDIRECT (WS) | Returns the reference to a cell based on its string representation |
LOOKUP (WS) | Returns a value from a range (one row or one column) or from an array |
MATCH (WS) | Searches for a value in an array and returns the relative position of that item |
OFFSET (WS) | Returns a reference to a range that is offset a number of rows and columns |
ROW (WS) | Returns the row number of a cell reference |
ROWS (WS) | Returns the number of rows in a cell reference |
TRANSPOSE (WS) | Returns a transposed range of cells |
VLOOKUP (WS) | Performs a vertical lookup by searching for a value in the first column of a table and returning the value in the same row in the index_number position |
XLOOKUP (WS) | Performs a lookup (either vertical or horizontal) |
BAHTTEXT (WS) | Returns the number in Thai text |
CHAR (WS) | Returns the character based on the ASCII value |
CLEAN (WS) | Removes all nonprintable characters from a string |
CODE (WS) | Returns the ASCII value of a character or the first character in a cell |
CONCAT (WS) | Used to join 2 or more strings together |
CONCATENATE (WS) | Used to join 2 or more strings together (replaced by CONCAT Function) |
CONCATENATE with & (WS) | Used to join 2 or more strings together using the & operator |
DOLLAR (WS) | Converts a number to text, using a currency format |
EXACT (WS) | Compares two strings and returns TRUE if both values are the same |
FIND (WS) | Returns the location of a substring in a string (case-sensitive) |
FIXED (WS) | Returns a text representation of a number rounded to a specified number of decimal places |
LEFT (WS) | Extract a substring from a string, starting from the left-most character |
LEN (WS) | Returns the length of the specified string |
LOWER (WS) | Converts all letters in the specified string to lowercase |
MID (WS) | Extracts a substring from a string (starting at any position) |
NUMBERVALUE (WS) | Returns a text to a number specifying the decimal and group separators |
PROPER (WS) | Sets the first character in each word to uppercase and the rest to lowercase |
REPLACE (WS) | Replaces a sequence of characters in a string with another set of characters |
REPT (WS) | Returns a repeated text value a specified number of times |
RIGHT (WS) | Extracts a substring from a string starting from the right-most character |
SEARCH (WS) | Returns the location of a substring in a string |
SUBSTITUTE (WS) | Replaces a set of characters with another |
T (WS) | Returns the text referred to by a value |
TEXT (WS) | Returns a value converted to text with a specified format |
TEXTJOIN (WS) | Used to join 2 or more strings together separated by a delimiter |
TRIM (WS) | Returns a text value with the leading and trailing spaces removed |
UNICHAR (WS) | Returns the Unicode character based on the Unicode number provided |
UNICODE (WS) | Returns the Unicode number of a character or the first character in a string |
UPPER (WS) | Convert text to all uppercase |
VALUE (WS) | Converts a text value that represents a number to a number |
DATE (WS) | Returns the serial date value for a date |
DATEDIF (WS) | Returns the difference between two date values, based on the interval specified |
DATEVALUE (WS) | Returns the serial number of a date |
DAY (WS) | Returns the day of the month (a number from 1 to 31) given a date value |
DAYS (WS) | Returns the number of days between 2 dates |
DAYS360 (WS) | Returns the number of days between two dates based on a 360-day year |
EDATE (WS) | Adds a specified number of months to a date and returns the result as a serial date |
EOMONTH (WS) | Calculates the last day of the month after adding a specified number of months to a date |
HOUR (WS) | Returns the hours (a number from 0 to 23) from a time value |
ISOWEEKNUM (WS) | Returns the ISO week number for a date |
MINUTE (WS) | Returns the minutes (a number from 0 to 59) from a time value |
MONTH (WS) | Returns the month (a number from 1 to 12) given a date value |
NETWORKDAYS (WS) | Returns the number of work days between 2 dates, excluding weekends and holidays |
NETWORKDAYS.INTL (WS) | Returns the number of work days between 2 dates, excluding weekends and holidays |
NOW (WS) | Returns the current system date and time |
SECOND (WS) | Returns the seconds (a number from 0 to 59) from a time value |
TIME (WS) | Returns a decimal number given an hour, minute and second value |
TIMEVALUE (WS) | Returns the serial number of a time |
TODAY (WS) | Returns the current system date |
WEEKDAY (WS) | Returns a number representing the day of the week, given a date value |
WEEKNUM (WS) | Returns the week number for a date |
WORKDAY (WS) | Adds a specified number of work days to a date and returns the result as a serial date |
WORKDAY.INTL (WS) | Adds a specified number of work days to a date and returns the result as a serial date (customizable weekends) |
YEAR (WS) | Returns a four-digit year (a number from 1900 to 9999) given a date value |
YEARFRAC (WS) | Returns the number of days between 2 dates as a year fraction |
ABS (WS) | Returns the absolute value of a number |
ACOS (WS) | Returns the arccosine (in radians) of a number |
ACOSH (WS) | Returns the inverse hyperbolic cosine of a number |
AGGREGATE (WS) | Apply functions such AVERAGE, SUM, COUNT, MAX or MIN and ignore errors or hidden rows |
ASIN (WS) | Returns the arcsine (in radians) of a number |
ASINH (WS) | Returns the inverse hyperbolic sine of a number |
ATAN (WS) | Returns the arctangent (in radians) of a number |
ATAN2 (WS) | Returns the arctangent (in radians) of (x,y) coordinates |
ATANH (WS) | Returns the inverse hyperbolic tangent of a number |
CEILING (WS) | Returns a number rounded up based on a multiple of significance |
CEILING.PRECISE (WS) | Returns a number rounded up to the nearest integer or to the nearest multiple of significance |
COMBIN (WS) | Returns the number of combinations for a specified number of items |
COMBINA (WS) | Returns the number of combinations for a specified number of items and includes repetitions |
COS (WS) | Returns the cosine of an angle |
COSH (WS) | Returns the hyperbolic cosine of a number |
DEGREES (WS) | Converts radians into degrees |
EVEN (WS) | Rounds a number up to the nearest even integer |
EXP (WS) | Returns e raised to the nth power |
FACT (WS) | Returns the factorial of a number |
FLOOR (WS) | Returns a number rounded down based on a multiple of significance |
INT (WS) | Returns the integer portion of a number |
LN (WS) | Returns the natural logarithm of a number |
LOG (WS) | Returns the logarithm of a number to a specified base |
LOG10 (WS) | Returns the base-10 logarithm of a number |
MDETERM (WS) | Returns the matrix determinant of an array |
MINVERSE (WS) | Returns the inverse matrix for a given matrix |
MMULT (WS) | Returns the matrix product of two arrays |
MOD (WS) | Returns the remainder after a number is divided by a divisor |
ODD (WS) | Rounds a number up to the nearest odd integer |
PI (WS) | Returns the mathematical constant called pi |
POWER (WS) | Returns the result of a number raised to a given power |
PRODUCT (WS) | Multiplies the numbers and returns the product |
RADIANS (WS) | Converts degrees into radians |
RAND (WS) | Returns a random number that is greater than or equal to 0 and less than 1 |
RANDBETWEEN (WS) | Returns a random number that is between a bottom and top range |
ROMAN (WS) | Converts a number to roman numeral |
ROUND (WS) | Returns a number rounded to a specified number of digits |
ROUNDDOWN (WS) | Returns a number rounded down to a specified number of digits |
ROUNDUP (WS) | Returns a number rounded up to a specified number of digits |
SIGN (WS) | Returns the sign of a number |
SIN (WS) | Returns the sine of an angle |
SINH (WS) | Returns the hyperbolic sine of a number |
SQRT (WS) | Returns the square root of a number |
SUBTOTAL (WS) | Returns the subtotal of the numbers in a column in a list or database |
SUM (WS) | Adds all numbers in a range of cells |
SUMIF (WS) | Adds all numbers in a range of cells based on one criteria |
SUMIFS (WS) | Adds all numbers in a range of cells, based on a single or multiple criteria |
SUMPRODUCT (WS) | Multiplies the corresponding items in the arrays and returns the sum of the results |
SUMSQ (WS) | Returns the sum of the squares of a series of values |
SUMX2MY2 (WS) | Returns the sum of the difference of squares between two arrays |
SUMX2PY2 (WS) | Returns the sum of the squares of corresponding items in the arrays |
SUMXMY2 (WS) | Returns the sum of the squares of the differences between corresponding items in the arrays |
TAN (WS) | Returns the tangent of an angle |
TANH (WS) | Returns the hyperbolic tangent of a number |
TRUNC (WS) | Returns a number truncated to a specified number of digits |
AVEDEV (WS) | Returns the average of the absolute deviations of the numbers provided |
AVERAGE (WS) | Returns the average of the numbers provided |
AVERAGEA (WS) | Returns the average of the numbers provided and treats TRUE as 1 and FALSE as 0 |
AVERAGEIF (WS) | Returns the average of all numbers in a range of cells, based on a given criteria |
AVERAGEIFS (WS) | Returns the average of all numbers in a range of cells, based on multiple criteria |
BETA.DIST (WS) | Returns the beta distribution |
BETA.INV (WS) | Returns the inverse of the cumulative beta probability density function |
BETADIST (WS) | Returns the cumulative beta probability density function |
BETAINV (WS) | Returns the inverse of the cumulative beta probability density function |
BINOM.DIST (WS) | Returns the individual term binomial distribution probability |
BINOM.INV (WS) | Returns the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion |
BINOMDIST (WS) | Returns the individual term binomial distribution probability |
CHIDIST (WS) | Returns the one-tailed probability of the chi-squared distribution |
CHIINV (WS) | Returns the inverse of the one-tailed probability of the chi-squared distribution |
CHITEST (WS) | Returns the value from the chi-squared distribution |
COUNT (WS) | Counts the number of cells that contain numbers as well as the number of arguments that contain numbers |
COUNTA (WS) | Counts the number of cells that are not empty as well as the number of value arguments provided |
COUNTBLANK (WS) | Counts the number of empty cells in a range |
COUNTIF (WS) | Counts the number of cells in a range, that meets a given criteria |
COUNTIFS (WS) | Counts the number of cells in a range, that meets a single or multiple criteria |
COVAR (WS) | Returns the covariance, the average of the products of deviations for two data sets |
FORECAST (WS) | Returns a prediction of a future value based on existing values provided |
FREQUENCY (WS) | Returns how often values occur within a set of data. It returns a vertical array of numbers |
GROWTH (WS) | Returns the predicted exponential growth based on existing values provided |
INTERCEPT (WS) | Returns the y-axis intersection point of a line using x-axis values and y-axis values |
LARGE (WS) | Returns the nth largest value from a set of values |
LINEST (WS) | Uses the least squares method to calculate the statistics for a straight line and returns an array describing that line |
MAX (WS) | Returns the largest value from the numbers provided |
MAXA (WS) | Returns the largest value from the values provided (numbers, text and logical values) |
MAXIFS (WS) | Returns the largest value in a range, that meets a single or multiple criteria |
MEDIAN (WS) | Returns the median of the numbers provided |
MIN (WS) | Returns the smallest value from the numbers provided |
MINA (WS) | Returns the smallest value from the values provided (numbers, text and logical values) |
MINIFS (WS) | Returns the smallest value in a range, that meets a single or multiple criteria |
MODE (WS) | Returns most frequently occurring number |
MODE.MULT (WS) | Returns a vertical array of the most frequently occurring numbers |
MODE.SNGL (WS) | Returns most frequently occurring number |
PERCENTILE (WS) | Returns the nth percentile from a set of values |
PERCENTRANK (WS) | Returns the nth percentile from a set of values |
PERMUT (WS) | Returns the number of permutations for a specified number of items |
QUARTILE (WS) | Returns the quartile from a set of values |
RANK (WS) | Returns the rank of a number within a set of numbers |
SLOPE (WS) | Returns the slope of a regression line based on the data points identified by known_y_values and known_x_values |
SMALL (WS) | Returns the nth smallest value from a set of values |
STDEV (WS) | Returns the standard deviation of a population based on a sample of numbers |
STDEVA (WS) | Returns the standard deviation of a population based on a sample of numbers, text, and logical values |
STDEVP (WS) | Returns the standard deviation of a population based on an entire population of numbers |
STDEVPA (WS) | Returns the standard deviation of a population based on an entire population of numbers, text, and logical values |
VAR (WS) | Returns the variance of a population based on a sample of numbers |
VARA (WS) | Returns the variance of a population based on a sample of numbers, text, and logical values |
VARP (WS) | Returns the variance of a population based on an entire population of numbers |
VARPA (WS) | Returns the variance of a population based on an entire population of numbers, text, and logical values |
AND (WS) | Returns TRUE if all conditions are TRUE |
FALSE (WS) | Returns a logical value of FALSE |
IF (WS) | Returns one value if the condition is TRUE or another value if the condition is FALSE |
IF (more than 7) (WS) | Nest more than 7 IF functions |
IF (up to 7) (WS) | Nest up to 7 IF functions |
IFERROR (WS) | Used to return an alternate value if a formula results in an error |
IFNA (WS) | Used to return an alternate value if a formula results in #N/A error |
IFS (WS) | Specify multiple IF conditions within 1 function |
NOT (WS) | Returns the reversed logical value |
OR (WS) | Returns TRUE if any of the conditions are TRUE |
SWITCH (WS) | Compares an expression to a list of values and returns the corresponding result |
TRUE (WS) | Returns a logical value of TRUE |
CELL (WS) | Used to retrieve information about a cell such as contents, formatting, size, etc. |
ERROR.TYPE (WS) | Returns the numeric representation of an Excel error |
INFO (WS) | Returns information about the operating environment |
ISBLANK (WS) | Used to check for blank or null values |
ISERR (WS) | Used to check for error values except #N/A |
ISERROR (WS) | Used to check for error values |
ISLOGICAL (WS) | Used to check for a logical value (TRUE or FALSE) |
ISNA (WS) | Used to check for #N/A error |
ISNONTEXT (WS) | Used to check for a value that is not text |
ISNUMBER (WS) | Used to check for a numeric value |
ISREF (WS) | Used to check for a reference |
ISTEXT (WS) | Used to check for a text value |
N (WS) | Converts a value to a number |
NA (WS) | Returns the #N/A error value |
TYPE (WS) | Returns the type of a value |
ACCRINT (WS) | Returns the accrued interest for a security that pays interest on a periodic basis |
ACCRINTM (WS) | Returns the accrued interest for a security that pays interest at maturity |
AMORDEGRC (WS) | Returns the linear depreciation of an asset for each accounting period, on a prorated basis |
AMORLINC (WS) | Returns the depreciation of an asset for each accounting period, on a prorated basis |
DB (WS) | Returns the depreciation of an asset based on the fixed-declining balance method |
DDB (WS) | Returns the depreciation of an asset based on the double-declining balance method |
FV (WS) | Returns the future value of an investment |
IPMT (WS) | Returns the interest payment for an investment |
IRR (WS) | Returns the internal rate of return for a series of cash flows |
ISPMT (WS) | Returns the interest payment for an investment |
MIRR (WS) | Returns the modified internal rate of return for a series of cash flows |
NPER (WS) | Returns the number of periods for an investment |
NPV (WS) | Returns the net present value of an investment |
PMT (WS) | Returns the payment amount for a loan |
PPMT (WS) | Returns the payment on the principal for a particular payment |
PV (WS) | Returns the present value of an investment |
RATE (WS) | Returns the interest rate for an annuity |
SLN (WS) | Returns the depreciation of an asset based on the straight-line depreciation method |
SYD (WS) | Returns the depreciation of an asset based on the sum-of-years’ digits depreciation method |
VDB (WS) | Returns the depreciation of an asset based on a variable declining balance depreciation method |
XIRR (WS) | Returns the internal rate of return for a series of cash flows that may not be periodic |
DAVERAGE (WS) | Averages all numbers in a column in a list or database, based on a given criteria |
DCOUNT (WS) | Returns the number of cells in a column or database that contains numeric values and meets a given criteria |
DCOUNTA (WS) | Returns the number of cells in a column or database that contains nonblank values and meets a given criteria |
DGET (WS) | Retrieves from a database a single record that matches a given criteria |
DMAX (WS) | Returns the largest number in a column in a list or database, based on a given criteria |
DMIN (WS) | Returns the smallest number in a column in a list or database, based on a given criteria |
DPRODUCT (WS) | Returns the product of the numbers in a column in a list or database, based on a given criteria |
DSTDEV (WS) | Returns the standard deviation of a population based on a sample of numbers |
DSTDEVP (WS) | Returns the standard deviation of a population based on the entire population of numbers |
DSUM (WS) | Sums the numbers in a column or database that meets a given criteria |
DVAR (WS) | Returns the variance of a population based on a sample of numbers |
DVARP (WS) | Returns the variance of a population based on the entire population of numbers |
BIN2DEC (WS) | Converts a binary number to a decimal number |
BIN2HEX (WS) | Converts a binary number to a hexadecimal number |
BIN2OCT (WS) | Converts a binary number to an octal number |
COMPLEX (WS) | Converts coefficients (real and imaginary) into a complex number |
CONVERT (WS) | Convert a number from one measurement unit to another measurement unit |
More Lookup Functions
Other
Time-saving ways to insert formulas into Excel
Basic Excel Formulas Guide
Mastering the basic Excel formulas is critical for beginners to become highly proficient in financial analysis. Microsoft Excel is considered the industry standard piece of software in data analysis. Microsoft’s spreadsheet program also happens to be one of the most preferred software by investment bankers and financial analysts in data processing, financial modeling, and presentation.
This guide will provide an overview and list of some basic Excel functions.
Once you’ve mastered this list, move on to CFI’s advanced Excel formulas guide!
Basic Terms in Excel
There are two basic ways to perform calculations in Excel: Formulas and Functions.
1. Formulas
In Excel, a formula is an expression that operates on values in a range of cells or a cell. For example, =A1+A2+A3, which finds the sum of the range of values from cell A1 to cell A3.
2. Functions
Functions are predefined formulas in Excel. They eliminate laborious manual entry of formulas while giving them human-friendly names. For example: =SUM(A1:A3). The function sums all the values from A1 to A3.
Key Highlights
- Excel is still the industry benchmark for financial analysis and modeling across almost all corporate finance functions. This course is designed to highlight some of the most important basic Excel formulas.
- Mastering these will help a learner build confidence in Excel and move on to more difficult functions and formulas.
- There are also several different ways to enter a function in Excel, as shown below.
Five Time-saving Ways to Insert Data into Excel
When analyzing data, there are five common ways of inserting basic Excel formulas. Each strategy comes with its own advantages. Therefore, before diving further into the main formulas, we’ll clarify those methods, so you can create your preferred workflow earlier on.
1. Simple insertion: Typing a formula inside the cell
Typing a formula in a cell or the formula bar is the most straightforward method of inserting basic Excel formulas. The process usually starts by typing an equal sign, followed by the name of an Excel function.
Excel is quite intelligent in that when you start typing the name of the function, a pop-up function hint will show (see below). It’s from this list you’ll select your preference. However, don’t press the Enter key after making your selection. Instead, press the Tab key and Excel will automatically fill in the function name.
2. Using Insert Function Option from Formulas Tab
If you want full control of your function’s insertion, using the Excel Insert Function dialogue box is all you ever need. To achieve this, go to the Formulas tab and select the first menu labeled Insert Function. The dialogue box will contain all the functions you need to complete your financial analysis.
3. Selecting a Formula from One of the Groups in Formula Tab
This option is for those who want to delve into their favorite functions quickly. To find this menu, navigate to the Formulas tab and select your preferred group. Click to show a sub-menu filled with a list of functions.
From there, you can select your preference. However, if you find your preferred group is not on the tab, click on the More Functions option – it’s probably just hidden there.
4. Using AutoSum Option
For quick and everyday tasks, the AutoSum function is your go-to option. Navigate to the Formulas tab and click the AutoSum option. Then click the caret to show other hidden formulas. This option is also available in the Home tab.
5. Quick Insert: Use Recently Used Tabs
If you find re-typing your most recent formula a monotonous task, then use the Recently Used selection. It’s on the Formulas tab, a third menu option just next to AutoSum.
Free Excel Formulas YouTube Tutorial
Watch CFI’s FREE video tutorial to quickly learn the most important Excel formulas. By watching the video demonstration you’ll quickly learn the most important formulas and functions.
Seven Basic Excel Formulas For Your Workflow
Since you’re now able to insert your preferred formulas and function correctly, let’s check some fundamental Excel functions to get you started.
1. SUM
The SUM function is the first must-know formula in Excel. It usually aggregates values from a selection of columns or rows from your selected range.
=SUM(number1, [number2], …)
Example:
=SUM(B2:G2) – A simple selection that sums the values of a row.
=SUM(A2:A8) – A simple selection that sums the values of a column.
=SUM(A2:A7, A9, A12:A15) – A sophisticated collection that sums values from range A2 to A7, skips A8, adds A9, jumps A10 and A11, then finally adds from A12 to A15.
=SUM(A2:A8)/20 – Shows you can also turn your function into a formula.
2. AVERAGE
The AVERAGE function should remind you of simple averages of data, such as the average number of shareholders in a given shareholding pool.
=AVERAGE(number1, [number2], …)
Example:
=AVERAGE(B2:B11) – Shows a simple average, also similar to (SUM(B2:B11)/10)
3. COUNT
The COUNT function counts all cells in a given range that contain only numeric values.
=COUNT(value1, [value2], …)
Example:
COUNT(A:A) – Counts all values that are numerical in A column. However, you must adjust the range inside the formula to count rows.
COUNT(A1:C1) – Now it can count rows.
4. COUNTA
Like the COUNT function, COUNTA counts all cells in a given rage. However, it counts all cells regardless of type. That is, unlike COUNT that only counts numerics, it also counts dates, times, strings, logical values, errors, empty string, or text.
=COUNTA(value1, [value2], …)
Example:
COUNTA(C2:C13) – Counts rows 2 to 13 in column C regardless of type. However, like COUNT, you can’t use the same formula to count rows. You must make an adjustment to the selection inside the brackets – for example, COUNTA(C2:H2) will count columns C to H
5. IF
The IF function is often used when you want to sort your data according to a given logic. The best part of the IF formula is that you can embed formulas and functions in it.
=IF(logical_test, [value_if_true], [value_if_false])
Example:
=IF(C2<D3,“TRUE”,”FALSE”) – Checks if the value at C3 is less than the value at D3. If the logic is true, let the cell value be TRUE, otherwise, FALSE
=IF(SUM(C1:C10) > SUM(D1:D10), SUM(C1:C10), SUM(D1:D10)) – An example of a complex IF statement. First, it sums C1 to C10 and D1 to D10, then it compares the sum. If the sum of C1 to C10 is greater than the sum of D1 to D10, then it makes the value of a cell equal to the sum of C1 to C10.
6. TRIM
The TRIM function makes sure your functions do not return errors due to extra spaces in your data. It ensures that all empty spaces are eliminated. Unlike other functions that can operate on a range of cells, TRIM only operates on a single cell. Therefore, it comes with the downside of adding duplicated data to your spreadsheet.
=TRIM(text)
Example:
TRIM(A2) – Removes empty spaces in the value in cell A2.
7. MAX & MIN
The MAX and MIN functions help in finding the maximum number and the minimum number in a range of values.
=MIN(number1, [number2], …)
Example:
=MIN(B2:C11) – Finds the minimum number between column B from B2 and column C from C2 to row 11 in both columns B and C.
=MAX(number1, [number2], …)
Example:
=MAX(B2:C11) – Similarly, it finds the maximum number between column B from B2 and column C from C2 to row 11 in both columns B and C.
More Resources
Thank you for reading CFI’s guide to basic Excel formulas. To continue your development as a world-class financial analyst, these additional CFI resources will be helpful:
- Advanced Excel Formulas
- Benefits of Excel Shortcuts
- Valuation Modeling in Excel
- See all Excel resources
This article is on the cheat sheet of formulas available in Microsoft Excel. Different Excel formulas with respective examples are explained in the article below. In addition, this article focuses on TEXT functions, STATISTICAL functions, DATE and TIME functions, MATHEMATICAL functions, and many more.
Different Excel Formulas with respective examples are explained below.
Table of contents
- Excel Formulas for Cheat Sheet
- #1 Text Functions in Excel
- #2 Statistical Functions in Excel
- #3 Date and Time Functions in Excel
- #4 Mathematical Functions in Excel
- Excel Best Practices for Using Cheat Sheet of Excel Formulas
- Recommended Articles
You can download this Cheat Sheet of Excel Formulas Template here – Cheat Sheet of Excel Formulas Template
#1 Text Functions in Excel
MS Excel offers a variety of string functions. Some Excel formulas cheat sheet is given below. The table contains the function’s name, meaning, syntax, example, and explanation.
Sr. No | Function | Meaning | Syntax | Example | Explanation |
---|---|---|---|---|---|
1 | LEFT function in Excel | Returns the specified number of characters from the left of the string | LEFT (string, no_of_characters) | =LEFT(B2,1) | Where B2 is the cell containing the text. |
2 | RIGHT function in Excel | Returns the specified number of characters from the right of the string | RIGHT (string, no_of_characters) | = RIGHT (B2,5) | Where B2 is the cell containing text. |
3 | MID function in Excel | Returns the specified number of characters from the string starting from the given position | MID (string, starting_position, no_of_characters) | =MID (B2, 1,4) | Where B2 is the cell containing text, 1 is the starting position, and 4 is the number of chars to be retrieved. |
4 | LEN | Returns the number of characters in the given string | LEN (String_to_be_measured) | =LEN(B2) | Where B2 is the cell containing text. |
5 | CONCATENATE function in Excel | Merges two given strings to form one | CONCATENATE (String1, String2…, StringN) | =CONCATENATE (D2, F2) | Where D2 and F2 are the cells to be concatenated. |
The above-explained cheat sheet of Excel formulas examples is implemented in the Excel worksheet shown in the following screenshot.
#2 Statistical Functions in Excel
MS Excel offers a variety of statistical functions. Some Excel formulas cheat sheet is given below. The table contains the function’s name, meaning, syntax, example, and explanation.
Sr. No | Function | Meaning | Syntax | Example | Explanation |
---|---|---|---|---|---|
1 | AVERAGE | Returns the average of the series of values given | =AVERAGE (Value1, Value 2…, ValueN) | =AVERAGE (B2:B5) | Value1,.., value is the range of values |
2 | MIN | Returns the minimum value from the given range of cells. | =MIN (Value1, Value 2…, ValueN) | =MIN (B2:B5) | Value1…, valueN is the range of values |
3 | COUNT | Returns the number of cells fitting the given criteria of a range of worksheet cells. | =COUNT (Value1, Value 2…, ValueN) | =COUNT (B2:B5) | Value1…, valueN is the range of values |
4 | COUNTA | Returns the number of non-empty cells fitting the given criteria of a range of worksheet cells. | =COUNTA (Value1, Value 2…, ValueN) | =COUNTA (B2:B6) | Value1…, valueN is the range of values |
5 | MAX | Merges two given strings to form one | =MAX (Value1, Value 2…, ValueN) | =MAX (B2:B5) | Value1…, valueN is the range of values. |
The above-explained cheat sheet of Excel formulas examples is implemented in the Excel worksheet shown in the following screenshot.
#3 Date and Time Functions in Excel
MS Excel offers a variety of date and time functions. Some Excel formulas cheat sheet is given below. The table contains the function’s name, meaning, syntax, example, and explanation.
Sr. No | Function | Meaning | Syntax | Example | Explanation |
---|---|---|---|---|---|
1 | DATE | Returns the serial number of a specific date | =DATE (year, month, day) | =DATE (2018,12,21) | 12/21/2018 Is the result. |
2 | NOW | Returns the current date and time | =NOW () | =NOW () | 7/20/2018 11:26 |
3 | WEEKDAY | Returns the day of the week | =WEEKDAY(serial_no) | =WEEKDAY(B1) | 6 |
4 | WEEKNUM | Returns the week number of the week in a year | =WEEKNUM(serial_no) | =WEEKNUM (NOW ()) | 29 |
5 | YEAR | Returns the year in the date argument | =YEAR(serial_no) | =YEAR (NOW ()) | 2018 |
The above-explained cheat sheet of Excel formulas examples is implemented in the Excel worksheet shown in the following screenshot.
#4 Mathematical Functions in Excel
MS Excel offers a variety of mathematical functionsMathematical functions in excel refer to the different expressions used to apply various forms of calculation. The seven frequently used mathematical functions in MS excel are SUM, AVERAGE, AVERAGEIF, COUNTA, COUNTIF, MOD, and ROUND.read more. Some Excel formulas cheat sheet is given below. The table contains the function’s name, meaning, syntax, example, and explanation.
Sr. No | Function | Meaning | Syntax | Example | Explanation |
---|---|---|---|---|---|
1 | SUM function in Excel | Returns the sum of all the given arguments | =SUM (Value1, Value 2…, ValueN) | = SUM (A2:A5) | The addition of all the values in the range A2:A5 is 100. |
2 | PRODUCT function | Returns the product of all the given arguments | =PRODUCT (Value1, Value 2…, ValueN) | =PRODUCT (A2:A5) | The multiplication of all the values in the range A2:A5 is 24000. |
3 | SQRT | Returns the square root of the given number | =SQRT (Number) | = SQRT (B2) | The square root of the value in B2 is 20, which is 10. The same is shown in D2 |
4 | CEILING | Returns the round-off number up to the nearest multiple of significance. | =CEILING (Number, Significance) | =CEILING (0.5,5) | The answer is 5, as shown in E2. |
5 | FLOOR | Returns the round-off number down to the nearest multiple of significance. | =FLOOR (Number, Significance) | =FLOOR (0.5,1) | The answer is 0, as shown in F2. |
The above-explained cheat sheet of Excel formulas examples is implemented in the Excel worksheet shown in the following screenshot.
Excel Best Practices for Using Cheat Sheets of Excel Formulas
Follow this Best Practice | By doing the following: |
---|---|
Easily change the type of reference | To switch between relative, absolute, and mixed references: 1. Select the cell that contains the formula. 2. Select the reference you want to change in the formula bar. 3. Press F4 to switch between the reference types. |
Quickly copy formulas | To enter the same formula into a range of cells, select the range you want to calculate, type the formula, and press Ctrl + Enter. For example, if you type =SUM (A1:B1) in range C1:C5 and then press Ctrl+ Enter, Excel enters the formula in each range, using A1 as a relative reference. |
Use Formula Autocomplete | To make it easier to create and edit formulas and minimize typing and syntax errors, use Formula Autocomplete. For example, After you type an = (equal sign) and beginning letters (the beginning letters act as a display trigger), Excel displays a dynamic list of valuable functions and names below the cell. |
Use Function ScreenTips | If you are not familiar with the arguments of a function, you can use the function ScreenTip that appears after you type the function name and open parenthesis. Then, click the function name to view the Help topic on the function, or click an argument name to select the corresponding argument in your formula. |
Recommended Articles
This article is a guide to the Cheat Sheet of Excel Formulas. We discuss the different Excel formulas with cheat sheet, examples with detailed explanations. You can learn more about Excel from the following articles: –
- Excel Max IF
- Exponential Smoothing in Excel
- How to use a MONTH in Excel
- MAX in Excel
Reader Interactions