All Excel Formula With Example

Advertisement

All Excel formulas with example are essential tools for anyone looking to enhance their data analysis capabilities. Microsoft Excel, a powerful spreadsheet application, offers a vast range of formulas that can simplify complex calculations and automate various tasks. Whether you're a beginner or a seasoned user, understanding these formulas can significantly improve your efficiency and accuracy in data management. In this article, we will explore various categories of Excel formulas, including mathematical, statistical, text, logical, and lookup functions, each accompanied by practical examples to illustrate their usage.

Mathematical Formulas



Mathematical formulas are fundamental in Excel for performing calculations. Here are some of the most commonly used mathematical functions:


  • SUM

  • AVERAGE

  • COUNT

  • MIN

  • MAX



SUM


The SUM function adds up a range of cells.

Example:
```excel
=SUM(A1:A10)
```
This formula will add all values from cells A1 to A10.

AVERAGE


The AVERAGE function calculates the mean of a range of values.

Example:
```excel
=AVERAGE(B1:B10)
```
This formula will compute the average of the values in cells B1 to B10.

COUNT


The COUNT function counts the number of cells in a range that contain numeric values.

Example:
```excel
=COUNT(C1:C10)
```
This will return the count of numeric entries in the range C1 to C10.

MIN


The MIN function finds the smallest number in a range.

Example:
```excel
=MIN(D1:D10)
```
This will give you the smallest value from D1 to D10.

MAX


The MAX function returns the largest value in a range.

Example:
```excel
=MAX(E1:E10)
```
This will provide the maximum value from E1 to E10.

Statistical Formulas



Statistical formulas help in analyzing data sets to extract meaningful insights. Key statistical functions include:


  • MEDIAN

  • MODE

  • STDEV

  • VAR



MEDIAN


The MEDIAN function returns the middle number in a set of values.

Example:
```excel
=MEDIAN(F1:F10)
```
This will compute the median value from F1 to F10.

MODE


The MODE function identifies the most frequently occurring number in a range.

Example:
```excel
=MODE(G1:G10)
```
This will return the mode from the range G1 to G10.

STDEV


STDEV calculates the standard deviation of a set of values, which is a measure of the amount of variation or dispersion.

Example:
```excel
=STDEV(H1:H10)
```
This provides the standard deviation for the values in H1 to H10.

VAR


VAR calculates the variance, which measures the degree of spread in a set of values.

Example:
```excel
=VAR(I1:I10)
```
This will return the variance from I1 to I10.

Text Formulas



Text formulas are useful for manipulating string data. Common text functions include:


  • CONCATENATE

  • LEFT

  • RIGHT

  • TRIM



CONCATENATE


The CONCATENATE function joins two or more text strings together.

Example:
```excel
=CONCATENATE(J1, " ", K1)
```
This will combine the text from J1 and K1 with a space in between.

LEFT


LEFT extracts a specified number of characters from the start of a text string.

Example:
```excel
=LEFT(L1, 5)
```
This will return the first five characters from the text in L1.

RIGHT


RIGHT extracts a specified number of characters from the end of a text string.

Example:
```excel
=RIGHT(M1, 3)
```
This will return the last three characters from the text in M1.

TRIM


TRIM removes extra spaces from text, leaving only single spaces between words.

Example:
```excel
=TRIM(N1)
```
This will clean up the text in N1 by removing unnecessary spaces.

Logical Formulas



Logical formulas are used for making decisions based on certain conditions. Key logical functions include:


  • IF

  • AND

  • OR

  • NOT



IF


The IF function checks a condition and returns one value if true and another if false.

Example:
```excel
=IF(O1 > 100, "Above 100", "100 or below")
```
This will check if the value in O1 is greater than 100 and return "Above 100" if true, otherwise "100 or below".

AND


The AND function checks multiple conditions and returns TRUE if all conditions are true.

Example:
```excel
=AND(P1 > 50, P1 < 100)
```
This will return TRUE if P1 is greater than 50 and less than 100.

OR


The OR function checks multiple conditions and returns TRUE if at least one condition is true.

Example:
```excel
=OR(Q1 < 20, Q1 > 80)
```
This will return TRUE if Q1 is less than 20 or greater than 80.

NOT


The NOT function reverses the truth value of a condition.

Example:
```excel
=NOT(R1 > 50)
```
This will return TRUE if R1 is not greater than 50.

Lookup Formulas



Lookup formulas are essential for searching and retrieving data from a table. The most common lookup functions are:


  • VLOOKUP

  • HLOOKUP

  • INDEX

  • MATCH



VLOOKUP


VLOOKUP searches for a value in the first column of a table and returns a value in the same row from another column.

Example:
```excel
=VLOOKUP(S1, A1:B10, 2, FALSE)
```
This will look for the value in S1 within the range A1:B10 and return the corresponding value from the second column.

HLOOKUP


HLOOKUP searches for a value in the top row of a table and returns a value in the same column from another row.

Example:
```excel
=HLOOKUP(T1, A1:E5, 3, FALSE)
```
This will search for the value in T1 in the top row of the range A1:E5 and return the value from the third row.

INDEX


INDEX returns the value of a cell in a specified row and column within a range.

Example:
```excel
=INDEX(A1:C10, 3, 2)
```
This retrieves the value located at the intersection of the third row and second column in the range A1:C10.

MATCH


MATCH returns the relative position of a specified value within a range.

Example:
```excel
=MATCH(U1, A1:A10, 0)
```
This will return the position of the value in U1 within the range A1:A10.

Conclusion



Understanding all Excel formulas with example can significantly enhance your productivity and data analysis skills. Mastering these formulas will not only help you in performing quick calculations but also in making informed business decisions based on data insights. Whether you are working with mathematical, statistical, text, logical, or lookup functions, the versatility of Excel will empower you to handle various tasks efficiently. Start practicing these formulas today to become proficient in Excel and maximize your data management capabilities.

Frequently Asked Questions


What is the SUM function in Excel and how is it used?

The SUM function adds all the numbers in a range of cells. For example, =SUM(A1:A5) adds the values in cells A1 through A5.

How does the VLOOKUP function work?

VLOOKUP searches for a value in the first column of a table and returns a value in the same row from a specified column. For example, =VLOOKUP(B2, A1:C10, 3, FALSE) looks for the value in B2 within A1:A10 and returns the corresponding value from column C.

What is the difference between COUNT and COUNTA in Excel?

COUNT only counts cells with numeric values, while COUNTA counts all non-empty cells. For example, =COUNT(A1:A10) counts only the numbers, while =COUNTA(A1:A10) counts all non-blank cells.

What is the IF function and how can it be applied?

The IF function checks whether a condition is met and returns one value for TRUE and another for FALSE. For example, =IF(A1>10, 'Over 10', '10 or less') returns 'Over 10' if A1 is greater than 10, otherwise '10 or less'.

How do you use the CONCATENATE function?

The CONCATENATE function joins two or more text strings into one string. For example, =CONCATENATE(A1, ' ', B1) combines the contents of A1 and B1 with a space in between.

What is the purpose of the AVERAGE function?

The AVERAGE function calculates the mean of a group of numbers. For example, =AVERAGE(A1:A5) calculates the average of the values in cells A1 through A5.

How can you use the TEXT function in Excel?

The TEXT function converts a number to text in a specified format. For example, =TEXT(A1, '0.00') formats the number in A1 to two decimal places as text.

What is the purpose of the NOW function?

The NOW function returns the current date and time. For example, =NOW() will display the current date and time in the cell.

How does the INDEX and MATCH combination work?

INDEX returns a value from a specified position in a range, while MATCH finds the position of a value in a range. Combined, they can perform lookups. For example, =INDEX(A1:A10, MATCH(B1, B1:B10, 0)) returns the value from A1:A10 that corresponds to the position of B1 in B1:B10.