All formula in excel with examples

Overview of formulas in Excel

Get started on how to create formulas and use built-in functions to perform calculations and solve problems.

Your browser does not support video. Install Microsoft Silverlight, Adobe Flash Player, or Internet Explorer 9.

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

  1. Select a cell.

  2. Type the equal sign =.

    Note: Formulas in Excel always begin with the equal sign.

  3. Select a cell or type its address in the selected cell.

    select cell

  4. Enter an operator. For example, – for subtraction.

  5. Select the next cell, or type its address in the selected cell.

    next cell

  6. Press Enter. The result of the calculation appears in the cell with the formula.

See a formula

  1. When a formula is entered into a cell, it also appears in the Formula bar.

    Formula Bar

  2. To see a formula, select a cell, and it will appear in the formula bar.

    See formula bar

Enter a formula that contains a built-in function

  1. Select an empty cell.

  2. Type an equal sign = and then type a function. For example, =SUM for getting the total sales.

  3. Type an opening parenthesis (.

  4. Select the range of cells, and then type a closing parenthesis).

    range

  5. 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   

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.

    Sheet reference example

    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

    1. 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   

      Copied formula with relative reference

    2. 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   

      Copied formula with absolute reference

    3. 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   

      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?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Date yes Add (Subtract) Days to a Date add subtract days to date example download Concatenate Dates concatenate date example download Convert Date to Number date to number example download Convert Date to Text convert date to text example download Month Name to Number month name to number example download Create Date Range from Dates create date range example download Day Number of Year day number of year example download Month Name from Date month name from date example download First Day of Month first day month example download Add (Subtract) Weeks to a Date add subtract weeks to date example download If Functions with Dates if date example download Max Date max date example download Number of Days Between Dates days between dates example download Number of Days in a Month number days in month example download Number of Weeks Between Dates weeks between dates example download Number of Years Between Dates years between dates example download Split Date & Time into Separate Cells split date time example download Countdown Remaining Days countdown remaining days example download Insert Dates Random Date Generator random date generator example download Using Dynamic Ranges — Year to Date Values Add (Subtract) Years to a Date add subtract years to date example download Date Formula Examples Extract Day from Date extract day from date example download Get Day Name from Date day name from date example download Count Days Left in Month / Year days left month year example download Count Workdays Left in Month / Year workdays left month year example download Get Last Day of Month last day of month example download Last Business Day of Month / Year last business day month year example download Number of Work / Business Days in Month workdays in month example download Weekday Abbreviations weekday abbreviations example download Auto Populate Dates auto populate dates example download Number of Months Between Dates months between dates example download Quarter from a Date quarter from date example download Years of Service years of service example download Change Date Format change date format example download Compare Dates compare two dates example download Time yes Add (Subtract) Hours to Time add hours time example download Add (Subtract) Minutes to Time add minutes to time example download Add (Subtract) Seconds to Time add seconds to time example download Add Up time (Total Time) total time example download Time Differences time difference example download Change Time Format change time format example download Convert Minutes to Hours convert minutes to hours example download Convert Time to Decimal convert time to decimal example download Convert Time to Hours convert time to hours example download Convert Time to Minutes convert time to minutes example download Convert Time to Seconds convert time to seconds example download Military Time military time example download Round Time to Nearest 15 Minutes round time example download Overtime Calculator overtime calculator example download Number of Hours Between Times calculate hours between times example download Convert Seconds to Minutes, Hours, or Time convert seconds to minutes hours example download Count Hours Worked calculate hours worked example download Time Differences time difference hours minutes seconds example download Time Format — Show Minutes Seconds time format show minutes seconds example download Text yes Add Commas to Cells add comma example download Get First Word from Text get first word example download Capitalize First Letter capitalize first letter example download Clean & Format Phone #s clean format phone numbers example download Remove Extra Trailing / Leading Spaces remove extra trailing leading spaces example download Add Spaces to Cell add spaces to cell example download Assign Number Value to Text assign number value to text example download Combine Cells with Comma combine cells comma example download Combine First and Last Names combine first last names example download Convert Text String to Date convert text to date example download Convert Text to Number convert text number example download Extract Text From Cell extract text from cell example download Get Last Word extract last word example download Remove Unwated Characters remove unwanted characters example download Extract Text Before or After Character extract text before after character example download How to Split Text String by Space, Comma, & More split text space comma example download Remove Special Characters remove special characters example download Remove First Characters from Left remove first chars from left example download Substitute Multiple Values substitute multiple values example download Switch First & Last Names w/ Commas switch first last names commas example download Remove Specific Text from a Cell remove specific text cell example download Extract Text Between Characters (Ex. Parenthesis) extract text between characters parenthesis example download Add Leading Zeros to a Number add leading zeros example download Remove Line Breaks from Text remove line breaks example download Remove all Numbers from Text remove numbers from text example download Reverse Text reverse text example download Remove Non-Numeric Characters remove non numeric characters example download Remove Last Character(s) From Right remove last chars from right example download Separate First and Last Names separate first last names example download Separate Text & Numbers separate text numbers example download Round yes Round Formulas round functions example download Round Price to Nearest Dollar or Cent round price example download Round to Nearest 10, 100, or 1000 round to nearest 10 100 1000 example download Round to Nearest 5 or .5 round nearest 5 example download Round Percentages round percentages example download Round to Significant Figures round significant figures example download Count yes Count Blank and Non-blank Cells count blank non blank cells example download Count Cells Between Two Numbers count cells between two numbers example download Count Cells not Equal to count cells not equal to example download Count if Cells are in Range count if cells in range example download Count Times Word Appears in Cell count times word appears in cell example download Count Words in Cell count words in cell example download running count of occurrences in excel and google sheets example download Count Specific Characters in Column count specific characters column example download Count Total Number of Characters in Column count total characters column example download Count Cells that Equal one of two Results count cells equal two results example download Count Cells that do not Contain count cells do not contain example download Count Cells that Contain Specific Text count cells that contain specific text example download Count Unique Values in Range count unique values in range example download Countif — Multiple Criteria count if multiple criteria example download Count Total Number of Cells in Range total number of cells in range example download Count Cells with Any Text count cells with any text example download Count Total Cells in a Table total cells in table example download Lookup yes Two Dimensional VLOOKUP VLOOKUP Simple Example Vlookup — Multiple Matches Case Sensitive Lookup excel case sensitive lookup example download Case Sensitive VLOOKUP case sensitive vlookup excel google sheets example download Sum if — VLOOKUP sum if vlookup example download Case Sensitive Lookup case sensitive lookup example download Case Sensitive VLOOKUP vlookup case sensitive example download Find Duplicates w/ VLOOKUP or MATCH find duplicates vlookup match example download INDEX MATCH MATCH index match match 2d lookup example download Lookup — Return Cell Address (Not Value) lookup cell address example download Lookup Last Value in Column or Row lookup last value column example download Reverse VLOOKUP (Right to Left) reverse vlookup right to left example download Risk Score Bucket with VLOOKUP risk score bucket vlookup example download Sum with a VLOOKUP Function sum vlookup example download VLOOKUP & INDIRECT vlookup indirect example download VLOOKUP Concatenate vlookup concatenate example download VLOOKUP Contains (Partial Match) vlookup contains partial match example download 17 Reasons Why Your XLOOKUP is Not Working Double (Nested) XLOOKUP — Dynamic Columns double nested xlookup dynamic columns example download IFERROR (& IFNA) XLOOKUP iferror ifna xlookup example download Lookup Min / Max Value lookup min max value example download Nested VLOOKUP nested vlookup example download Top 11 Alternatives to VLOOKUP (Updated 2022!) vlookup alternatives example download VLOOKUP – Dynamic Column Reference vlookup dynamic column reference example download VLOOKUP – Fix #N/A Error vlookup na error example download VLOOKUP – Multiple Sheets at Once vlookup multiple sheets example download VLOOKUP & HLOOKUP Combined vlookup hlookup combined example download VLOOKUP & MATCH Combined vlookup match combined example download VLOOKUP Between Worksheets or Spreadsheets vlookup between sheets example download VLOOKUP Duplicate Values vlookup duplicate values example download VLOOKUP Letter Grades vlookup letter grades example download VLOOKUP Return Multiple Columns VLOOKUP Returns 0? Return Blank Instead vlookup return blank not zero example download VLOOKUP w/o #N/A Error XLOOKUP Multiple Sheets at Once xlookup multiple sheets example download XLOOKUP Between Worksheets or Spreadsheets XLOOKUP by Date xlookup date example download XLOOKUP Duplicate Values xlookup duplicate values example download XLOOKUP Multiple Criteria xlookup multiple criteria example download XLOOKUP Return Multiple Columns xlookup return multiple columns example download XLOOKUP Returns 0? Return Blank Instead xlookup return blank not zero example download XLOOKUP Text xlookup text example download XLOOKUP with IF XLOOKUP With If Statement Misc. yes Sort Multiple Columns sort two columns example download Use Cell Value in Formula use cell value in formula example download Percentage Change Between Numbers calculate percentage change between numbers example download Percentage Breakdown percentage breakdown range example download Rank Values Add Spaces to Cell add spaces to cell rept example download CAGR Formula Average Time average time example download Decimal Part of Number decimal part of number example download Integer Part of a Number integer part of number example download Compare Items in a List Dealing with NA() Errors if isna vlookup example download Get Worksheet Name excel formula get worksheet name example download Wildcard Characters wildcard characters example download Hyperlink to Current Folder hyperlink to current folder example download Compound Interest Formula Percentage Increase percentage increase formula in excel example download Create Random Groups random groups example download Sort with the Small and Large Functions sort with small large function example download Non-volatile Function Alternatives non volatile solutions example download Decrease a Number by a Percentage decrease by percentage example download Calculate Percent Variance percent variance example download Profit Margin Calculator profit margin calculator example download Convert Column Number to Letter convert column number to letter example download Get Full Address of Named Range get full address of named range example download Insert File Name insert file name formula example download Insert Path insert path formula example download Latitute / Longitude Functions Replace Negative Values negative values with zero example download Reverse List Range reverse list range example download Convert State Name to Abbreviation convert state name abbreviation example download Create Dynamic Hyperlinks dynamic hyperlinks example download Custom Sort List with Formula custom sort list example download Data Validation — Custom Formulas Dynamic Sheet Reference (INDIRECT) indirect dynamic sheet example download Reference Cell in Another Sheet or Workbook reference cell in another sheet workbook example download Get Cell Value by Address get cell value by address row column example download Get Worksheet Name get sheet name example download Increment Cell Reference increment cell reference example download List Sheet Names list sheet names example download List Skipped Numbers in Sequence list skipped numbers in sequence example download Return Address of Max Value in Range return address highest value in range example download Search by Keywords search by keywords example download Select Every Other (or Every nth) Row select every nth row example download Basics yes Cell Reference Basics — A1, R1C1, 3d, etc. Add Up (Sum) Entire Column or Row Into to Dynamic Array Formulas introduction to dynamic array formulas example download Conversions yes Convert Time Zones convert time zones example download Convert Celsius to Fahrenheit convert celsius to fahrenheit example download Convert Pounds to Kilograms convert pounds to kilograms example download Convert Time to Unix Time convert time to unix times example download Convert Feet to Meters convert feet to meters example download Convert Centimeters to Inches convert centimetres to inches example download Convert Kilometers to Miles convert kilometers to miles example download Convert Inches to Feet convert inches to feet example download Convert Date to Julian Format convert date to julian format example download Convert Column Letter to Number convert column letter to number example download Tests yes Test if a Range Contains any Text range contains any text example download Test if any Cell in Range is Number Test if a Cell Contains a Specific Value countif value exists example download Test if Cell Contains Any Number if cell contains any number example download Test if Cell Contains Specific Number if cell contains number example download Test if Cell is Number or Text cell is number text example download If yes Percentile If percentile if example download Subtotal If subtotal if example download Sumproduct If sumproduct if example download Large If and Small If large if small if example download Median If median if example download Concatentate If concatenate if example download Max If max if with condition example download Rank If rank if example download TEXTJOIN If textjoin if example download Sum yes Sum if — Begins With / Ends With sum if begins ends with example download Sum if — Month or Year to Date sum if month year to date example download Sum if — By Year sum if year example download Sum if — Blank / Non-Blank sum if blank example download Sum if — Horizontal Sum sum if horizontal example download Count / Sum If — Cell Color count sum cell color example download INDIRECT Sum indirect sum example download Sum If — Across Multiple Sheets sum if multiple sheets example download Sum If — By Month sum if month example download Sum If — Cells Not Equal To sum if not equal example download Sum If — Not Blank sum if not blank example download Sum if — Between Values sum if between values example download Sum If — Week Number sum if week number example download Sum Text sum text example download Sum if — By Category or Group sum if category group example download Sum if — Cell Contains Specific Text (Wildcards) sum if contains text wildcards example download Sum if — Date Rnage sum if date range example download Sum if — Dates Equal sum if dates equal example download Sum if — Day of Week sum if day of week example download Sum if — Greater Than sum if greater than example download Sum if — Less Than sum if less than example download Average yes Average Non-Zero Values Average If — Not Blank average if not blank example download Average — Ignore 0 average ignore 0 example download Average — Ignore Errors average ignore errors example download Math yes Multiplication Table multiplication table example download Cube Roots cube root example download nth Roots nth root example download Square Numbers square numbers example download Square Roots square roots example download Calculations yes Calculate a Ratio Calculate Age KILLLLLLL Calculate Loan Payments calculate loan payments in excel google sheets example download GPA Formula gpa formula example download Calculate VAT Tax calculate vat tax example download How to Grade Formulas grade formulas example download Find yes Find a Number in a Column / Workbook find number in column example download Find Most Frequent Numbers find most frequent numbers example download Find Smallest n Values find smallest n values example download Find nth Occurance of Character in Text find 2nd occurrence of character in text example download Find and Extract Number from String find extract number from string example download Find Earliest or Latest Date Based on Criteria find earliest latest date with criteria example download Find First Cell with Any Value find first cell with any value example download Find Last Row find last row example download Find Last Row with Data find last row with data example download Find Missing Values find missing values example download Find Largest n Values find largest n values example download Most Frequent Number find most frequent numbers example download Conditional Formatting yes Conditional Format — Dates & Times Conditional Format — Highlight Blank Cells highlight blank cells conditional formatting example download

[icon name=”calendar” class=”” unprefixed_class=””] DATE & TIME
DateDif
EndOfMonth
Time
Weekday
Weeknum
Workday
Year

[icon name=”lightbulb-o” class=”” unprefixed_class=””] LOGICAL
And
If
If, And
Iferror

[icon name=”arrow-circle-up” class=”” unprefixed_class=””] LOOKUP
Array, Lookup
Hlookup
Iferror, Vlookup
Index
Index, Match
Indirect
Match
Multiple Criteria, Vlookup
Offset
Pivot Table, GetPivotData
Sum, Lookup
Vlookup
Xlookup

[icon name=”calculator” class=”” unprefixed_class=””] MATH
Average
Count
CountA
CountBlank
CountIf
CountIfs
Mathematical Formulas
Mod
Percentage
Rand
Randbetween
Round
Subtotal
Sumifs
Sumproduct

[icon name=”delicious” class=”” unprefixed_class=””] OTHER
3D
Array
Chart
Convert, Values
Evaluate
Find & Select
FV
Reference
Show, Hide
Transpose
Type
Value

[icon name=”wpforms” class=”” unprefixed_class=””] TEXT
Between
Clean
Concatenate
Data Cleansing, Trim
Extract, Find, Left
Left
Len, Length
Proper
Remove
Remove, Substitute
Replace
Replace, Cleanup
Right
Substitute
Substitute, Trim
Text
Upper

[icon name=”wpforms” class=”” unprefixed_class=””] OFFICE 365
Filter
Sort
Sortby
Unique

Click on any Excel formula & function link below and it will take you to the advanced Excel formulas with examples in Excel sheet free download for you to practice!

Description of the functions in Excel with pictures and examples of their application in practice.

Functions for efficient settlement

example-sumifs-with-dates-many-conditionsDownload example SUMIFS with dates many conditions in Excel.
A template with examples of how to effectively use the broad capabilities of the SUMMESLYMN function under different conditions. How to use the function if there are many conditions with dates?

download-examples-of-using-find-functionDownload examples of using the FIND function in Excel.
Practical examples of the FIND function with pictures, a description and a file of ready-made solutions. Formulas for using the FIND function to find values in columns of tables.

download-examples-logical-functions-and-orDownload examples of using logical functions AND OR in Excel .
How to work with the formula of logical functions AND OR IF to automate the analysis of table data. Examples in pictures and with a detailed description of a sample file of tables or formulas.



totn Excel Functions


MS Excel: Formulas and Functions — Listed by Category

Learn how to use all 300+ Excel formulas and functions including worksheet functions entered in the formula bar and VBA functions used in Macros.

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. VBA functions are built-in functions that are used in Excel’s programming environment called Visual Basic for Applications (VBA).

Below is a list of Excel formulas sorted by category. If you would like an alphabetical list of these formulas, click on the following button:

Sort Alphabetically


(Enter a value in the field above to quickly find functions in the list below)

Lookup/Ref Functions

ADDRESS (WS) Returns a text representation of a cell address
AREAS (WS) Returns the number of ranges in a reference
CHOOSE (WS, VBA) 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)

String/Text Functions

ASC (VBA) Returns ASCII value of a character
BAHTTEXT (WS) Returns the number in Thai text
CHAR (WS) Returns the character based on the ASCII value
CHR (VBA) 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, VBA) 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
FORMAT STRINGS (VBA) Takes a string expression and returns it as a formatted string
INSTR (VBA) Returns the position of the first occurrence of a substring in a string
INSTRREV (VBA) Returns the position of the first occurrence of a string in another string, starting from the end of the string
LCASE (VBA) Converts a string to lowercase
LEFT (WS, VBA) Extract a substring from a string, starting from the left-most character
LEN (WS, VBA) Returns the length of the specified string
LOWER (WS) Converts all letters in the specified string to lowercase
LTRIM (VBA) Removes leading spaces from a string
MID (WS, VBA) 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
REPLACE (VBA) 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, VBA) Extracts a substring from a string starting from the right-most character
RTRIM (VBA) Removes trailing spaces from a string
SEARCH (WS) Returns the location of a substring in a string
SPACE (VBA) Returns a string with a specified number of spaces
SPLIT (VBA) Used to split a string into substrings based on a delimiter
STR (VBA) Returns a string representation of a number
STRCOMP (VBA) Returns an integer value representing the result of a string comparison
STRCONV (VBA) Returns a string converted to uppercase, lowercase, proper case or Unicode
STRREVERSE (VBA) Returns a string whose characters are in reverse order
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, VBA) Returns a text value with the leading and trailing spaces removed
UCASE (VBA) Converts a string to all uppercase
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
VAL (VBA) Returns the numbers found in a string
VALUE (WS) Converts a text value that represents a number to a number

Date/Time Functions

DATE (WS) Returns the serial date value for a date
DATE (VBA) Returns the current system date
DATEADD (VBA) Returns a date after which a certain time/date interval has been added
DATEDIF (WS) Returns the difference between two date values, based on the interval specified
DATEDIFF (VBA) Returns the difference between two date values, based on the interval specified
DATEPART (VBA) Returns a specified part of a given date
DATESERIAL (VBA) Returns a date given a year, month, and day value
DATEVALUE (WS, VBA) Returns the serial number of a date
DAY (WS, VBA) 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
FORMAT DATES (VBA) Takes a date expression and returns it as a formatted string
HOUR (WS, VBA) 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, VBA) Returns the minutes (a number from 0 to 59) from a time value
MONTH (WS, VBA) Returns the month (a number from 1 to 12) given a date value
MONTHNAME (VBA) Returns a string representing the month given a number from 1 to 12
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, VBA) 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
TIMESERIAL (VBA) Returns a time given an hour, minute, and second value
TIMEVALUE (WS, VBA) Returns the serial number of a time
TODAY (WS) Returns the current system date
WEEKDAY (WS, VBA) Returns a number representing the day of the week, given a date value
WEEKDAYNAME (VBA) Returns a string representing the day of the week given a number from 1 to 7
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, VBA) 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

Math/Trig Functions

ABS (WS, VBA) 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
ATN (VBA) Returns the arctangent 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, VBA) 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, VBA) Returns e raised to the nth power
FACT (WS) Returns the factorial of a number
FIX (VBA) Returns the integer portion of a number
FLOOR (WS) Returns a number rounded down based on a multiple of significance
FORMAT NUMBERS (VBA) Takes a numeric expression and returns it as a formatted string
INT (WS, VBA) 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
LOG (VBA) Returns the natural logarithm of a number
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
MOD (VBA) 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
RANDOMIZE (VBA) Used to change the seed value used by the random number generator for the RND function
RND (VBA) Used to generate a random number (integer value)
ROMAN (WS) Converts a number to roman numeral
ROUND (WS) Returns a number rounded to a specified number of digits
ROUND (VBA) 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
SGN (VBA) Returns the sign of a number
SIGN (WS) Returns the sign of a number
SIN (WS, VBA) Returns the sine of an angle
SINH (WS) Returns the hyperbolic sine of a number
SQR (VBA) Returns the square root 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, VBA) 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

Statistical Functions

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

Logical Functions

AND (WS) Returns TRUE if all conditions are TRUE
AND (VBA) Returns TRUE if all conditions are TRUE
CASE (VBA) Has the functionality of an IF-THEN-ELSE statement
FALSE (WS) Returns a logical value of FALSE
FOR…NEXT (VBA) Used to create a FOR LOOP
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
IF-THEN-ELSE (VBA) Returns a value if a specified condition evaluates to TRUE or another value if it evaluates to FALSE
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
OR (VBA) Returns TRUE if any of the conditions are TRUE
SWITCH (WS) Compares an expression to a list of values and returns the corresponding result
SWITCH (VBA) Evaluates a list of expressions and returns the corresponding value for the first expression in the list that is TRUE
TRUE (WS) Returns a logical value of TRUE
WHILE…WEND (VBA) Used to create a WHILE LOOP

Information Functions

CELL (WS) Used to retrieve information about a cell such as contents, formatting, size, etc.
ENVIRON (VBA) Returns the value of an operating system environment variable
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
ISDATE (VBA) Returns TRUE if the expression is a valid date
ISEMPTY (VBA) Used to check for blank cells or uninitialized variables
ISERR (WS) Used to check for error values except #N/A
ISERROR (WS, VBA) 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
ISNULL (VBA) Used to check for a NULL value
ISNUMBER (WS) Used to check for a numeric value
ISNUMERIC (VBA) 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

Financial Functions

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, VBA) Returns the depreciation of an asset based on the double-declining balance method
FV (WS, VBA) Returns the future value of an investment
IPMT (WS, VBA) Returns the interest payment for an investment
IRR (WS, VBA) Returns the internal rate of return for a series of cash flows
ISPMT (WS) Returns the interest payment for an investment
MIRR (WS, VBA) Returns the modified internal rate of return for a series of cash flows
NPER (WS, VBA) Returns the number of periods for an investment
NPV (WS, VBA) Returns the net present value of an investment
PMT (WS, VBA) Returns the payment amount for a loan
PPMT (WS, VBA) Returns the payment on the principal for a particular payment
PV (WS, VBA) Returns the present value of an investment
RATE (WS, VBA) Returns the interest rate for an annuity
SLN (WS, VBA) Returns the depreciation of an asset based on the straight-line depreciation method
SYD (WS, VBA) 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

Database Functions

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

Engineering Functions

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

File/Directory Functions

CHDIR (VBA) Used to change the current directory or folder
CHDRIVE (VBA) Used to change the current drive
CURDIR (VBA) Returns the current path
DIR (VBA) Returns the first filename that matches the pathname and attributes specified
FILEDATETIME (VBA) Returns the date and time of when a file was created or last modified
FILELEN (VBA) Returns the size of a file in bytes
GETATTR (VBA) Returns an integer that represents the attributes of a file, folder, or directory
MKDIR (VBA) Used to create a new folder or directory
SETATTR (VBA) Used to set the attributes of a file

Data Type Conv. Functions

CBOOL (VBA) Converts a value to a boolean
CBYTE (VBA) Converts a value to a byte (ie: number between 0 and 255)
CCUR (VBA) Converts a value to currency
CDATE (VBA) Converts a value to a date
CDBL (VBA) Converts a value to a double
CDEC (VBA) Converts a value to a decimal number
CINT (VBA) Converts a value to an integer
CLNG (VBA) Converts a value to a long integer
CSNG (VBA) Converts a value to a single-precision number
CSTR (VBA) Converts a value to a string
CVAR (VBA) Converts a value to a variant

More Lookup Functions

Other

Like this post? Please share to your friends:
  • All forms of word history
  • All forms of the word weather
  • All forms of the word online
  • All forms of the word lie
  • All forms of the word genuine