Excel Formulas
Excel Formulas
1. COUNT: Counts the number of cells that contain numerical values within a range.
Example: =COUNT(A1:A10)
2. COUNTA: Counts all nonempty cells in a range, including text, numbers, and errors.
Example: =COUNTA(A1:A10)
3. PROPER: Converts the first letter of each word in a text string to uppercase and the rest to lowercase.
4. LEN: Returns the length (number of characters) of a text string, including spaces.
Example: =SUMIF(A1:A10, ">5") adds all values in the range A1:A10 that are greater than 5
Example: =LARGE(A1:A10, 2) returns the 2nd largest value in the range A1:A10
Example: =SMALL(A1:A10, 3) returns the 3rd smallest value in the range A1:A10
10. RIGHT: Extracts a specified number of characters from the end (right side) of a text string.
11. LEFT: Extracts a specified number of characters from the beginning (left side) of a text string.
Example: =SUM(A1:A10)
Example: =PRODUCT(A1:A10)
Example: =MAX(A1:A10)
Example: =MIN(A1:A10)
Example: =COUNTBLANK(A1:A10)
20. CONCATENATE: Combines (joins) two or more text strings into one. In newer versions of Excel,
CONCATENATE has been replaced by the CONCAT and TEXTJOIN functions.
Example: =AVERAGE(A1:A10) returns the average value of numbers in the range A1:A10
22. COUNTIF: Counts the number of cells in a range that meet a specific condition (criterion).
Example: =COUNTIF(A1:A10, ">10") counts how many cells in A1:A10 have values greater than
23. RANDBETWEEN: Generates a random integer between two specified numbers. This value recalculates
every time the worksheet is recalculated.
25. IFERROR: Returns a specified value if a formula evaluates to an error; otherwise, it returns the result
of the formula.
Example: =IFERROR(A1/B1, "Error") returns "Error" if the division results in an error, otherwise it shows
the result.
26. TRANSPOSE: Converts a vertical range of cells to a horizontal range or vice versa.
Example: =TRANSPOSE(A1:A3) changes the vertical range A1:A3 into a horizontal format.
27. INDEX: Returns the value of a cell in a specified row and column within a given range.
Example: =INDEX(A1:C3, 2, 3) returns the value in the second row and third column of the range A1:C3.
28. MATCH: Returns the relative position of an item in an array that matches a specified value in a specified
order.
Example: =MATCH("Apple", A1:A5, 0) returns the position of "Apple" in the range A1:A5.
29. CONCAT: Joins two or more text strings together (similar to CONCATENATE).
Example: =TEXT(A1, "0.00") converts the number in A1 to text with two decimal places.
31. DATEDIF: Calculates the difference between two dates in years, months, or days.
Example: =DATEDIF(A1, B1, "Y") returns the number of complete years between dates in A1 and B1.
32. NETWORKDAYS: Returns the number of whole workdays between two dates, excluding weekends and
specified holidays.
33. RANDBETWEEN: Returns a random integer between the numbers you specify.
37. CEILING: Rounds a number up, away from zero, to the nearest multiple of significance.
Example: =SUBTOTAL(1, C1:C10) returns the average of the values in C1 to C10, where "1" specifies the
AVERAGE function.
Example: =UNIQUE(E1:E10) returns a list of unique values found in the range E1 to E10.