Excel

Excel Formulas Explained: From Basic Calculations to Advanced Functions

Excel formulas tutorial showing basic calculations, SUM, subtraction, multiplication, division, IF, VLOOKUP, AVERAGE, and INDEX MATCH functions in a spreadsheet.

Welcome to ZeexasTech.com, your trusted destination for technology, AI tools, Microsoft Excel tutorials, digital productivity, and the latest tech insights.

I’m Vishal Kumar, the creator of ZeexasTech.com. My goal is to make technology simple, practical, and accessible for everyone. Through helpful guides, step-by-step tutorials, and informative articles, I aim to help students, professionals, bloggers, and business owners learn new skills and work smarter.

At ZeexasTech.com, we believe that the right knowledge and tools can make a real difference in your digital journey.

Microsoft Excel is one of the most widely used spreadsheet applications for organizing data, performing calculations, analyzing information, and creating reports. Whether you are a student, business owner, accountant, office professional, or data analyst, understanding Excel formulas can help you work faster and more accurately.

Excel formulas allow you to calculate totals, find averages, compare values, analyze business performance, manage budgets, and automate repetitive tasks. From simple addition and subtraction to advanced functions such as XLOOKUP, IF, SUMIFS, and dynamic array formulas, Excel provides powerful tools for almost every type of data-related task.

In this guide, you will learn how Excel formulas work, explore essential functions with practical examples, understand advanced techniques, and discover useful tips for avoiding common mistakes.

What Are Excel Formulas?

An Excel formula is an expression used to perform calculations or process data in a worksheet. A formula can contain numbers, cell references, mathematical operators, and built-in functions.

Every standard Excel formula begins with an equal sign (=). For example:

=10+20

When you enter this formula into a cell and press Enter, Excel displays the result: 30.

You can also perform calculations using cell references. If cell A1 contains 10 and cell B1 contains 20, enter the following formula:

=A1+B1

Excel adds the values stored in those cells. If either value changes, the result updates automatically.

This automatic recalculation is one of the biggest advantages of using Excel formulas.

Understanding Excel Formula Syntax

Before learning individual formulas, it is important to understand their basic structure.

Consider this example:

=SUM(A1:A10)

This formula contains three main elements:

  • Equal sign (=): Tells Excel that you are entering a formula.
  • Function name (SUM): Specifies the calculation Excel should perform.
  • Argument (A1:A10): Identifies the cells containing the values to calculate.

The colon in A1:A10 represents a range of cells from A1 through A10.

Excel formulas can also include operators such as:

  • + for addition
  • - for subtraction
  • * for multiplication
  • / for division
  • ^ for exponentiation
  • & for joining text
  • = for equal to
  • > for greater than
  • < for less than
  • >= for greater than or equal to
  • <= for less than or equal to
  • <> for not equal to

Understanding these symbols makes it easier to create formulas for everyday calculations and complex data analysis.

Basic Excel Formulas for Beginners

Basic formulas are the foundation of spreadsheet calculations. You can use them to manage expenses, calculate sales, prepare student results, and solve everyday mathematical problems.

1. Addition Formula in Excel

The addition formula combines two or more numbers.

Example:

=A1+B1

If A1 contains 100 and B1 contains 50, the result is 150.

To add several individual cells, you can write:

=A1+B1+C1

For a larger range of numbers, the SUM function is usually more convenient.

2. Subtraction Formula in Excel

The subtraction operator calculates the difference between values.

Example:

=A1-B1

If A1 contains 500 and B1 contains 200, Excel returns 300.

This formula is useful for calculating remaining budgets, outstanding balances, inventory differences, and profits before additional expenses.

3. Multiplication Formula in Excel

Use the asterisk (*) to multiply values.

Example:

=A1*B1

If A1 contains 25 and B1 contains 4, the result is 100.

This formula is useful for calculating product prices, total quantities, employee payments, and sales revenue.

4. Division Formula in Excel

The forward slash (/) divides one value by another.

Example:

=A1/B1

If A1 contains 100 and B1 contains 5, the result is 20.

Avoid dividing by zero because Excel returns the #DIV/0! error.

5. Percentage Formula in Excel

Percentages are useful for calculating discounts, tax rates, commissions, and performance improvements.

Suppose cell A1 contains 1,000 and B1 contains 10%.

To calculate 10% of 1,000, use:

=A1*B1

The result is 100.

To calculate the percentage change from an old value in A1 to a new value in B1, use:

=(B1-A1)/A1

Format the result as a percentage. Make sure the original value in A1 is not zero.

Essential Excel Functions You Should Know

Excel functions are predefined formulas that simplify calculations. Instead of manually creating long expressions, you can use a function to perform a specific task.

6. SUM Function

The SUM function adds numbers across cells or ranges.

Syntax:

=SUM(number1, [number2], ...)

Example:

=SUM(B2:B10)

This formula adds all numeric values in cells B2 through B10.

Practical use: Calculate monthly expenses, total sales, inventory quantities, or a final invoice amount.

7. AVERAGE Function

The AVERAGE function calculates the arithmetic mean of numeric values.

Example:

=AVERAGE(B2:B10)

If the cells contain 10, 20, and 30, the result is 20.

Excel ignores blank cells and text in referenced cells when calculating an average, but includes numeric zeros.

Practical use: Calculate average examination marks, average order values, or monthly sales performance.

8. MAX Function

The MAX function returns the largest numeric value in a range.

Example:

=MAX(C2:C20)

This formula identifies the highest value in the specified range.

Practical use: Find the highest sales figure, maximum score, or largest transaction.

9. MIN Function

The MIN function returns the smallest numeric value in a range.

Example:

=MIN(C2:C20)

Practical use: Identify the lowest price, minimum score, or smallest recorded expense.

10. COUNT Function

The COUNT function counts cells containing numbers.

Example:

=COUNT(A2:A100)

This formula counts numeric entries in the specified range.

Remember that COUNT does not count text-only cells. Use COUNTA when you want to count nonempty cells containing numbers, text, or other values.

11. COUNTA Function

COUNTA counts nonempty cells.

Example:

=COUNTA(A2:A100)

This is useful for counting customer names, completed entries, product descriptions, or records in a list.

12. ROUND Function

The ROUND function rounds a number to a specified number of digits.

Example:

=ROUND(A1,2)

If A1 contains 15.6789, the formula returns 15.68.

Use =ROUND(A1,0) to round to a whole number.

This function is useful for financial calculations, reports, and displaying consistent decimal precision.

Logical Excel Formulas

Logical functions help Excel make decisions based on conditions. They are especially useful for evaluating performance, checking eligibility, and categorizing records.

13. IF Function

The IF function returns one result when a condition is true and another when it is false.

Syntax:

=IF(logical_test, value_if_true, value_if_false)

Example:

=IF(B2>=40,"Pass","Fail")

If B2 contains 65, Excel returns “Pass.” If B2 contains 30, it returns “Fail.”

Practical use: Determine pass or fail status, check sales targets, and identify whether a payment is overdue.

14. AND Function

The AND function returns TRUE when every specified condition is true.

Example:

=AND(B2>=40,C2>=40)

This formula returns TRUE only if both B2 and C2 contain values of at least 40.

You can combine AND with IF:

=IF(AND(B2>=40,C2>=40),"Pass","Fail")

This is useful when a person must meet multiple requirements.

15. OR Function

The OR function returns TRUE when at least one condition is true.

Example:

=OR(B2>=90,C2>=90)

The formula returns TRUE if either cell meets the specified threshold.

Combined with IF:

=IF(OR(B2>=90,C2>=90),"Eligible","Not Eligible")

Use OR when satisfying any one of several conditions is sufficient.

16. IFERROR Function

IFERROR displays a chosen result when a formula produces an error.

Example:

=IFERROR(A2/B2,0)

If the calculation produces an error, Excel returns zero instead.

You could also use:

=IFERROR(A2/B2,"Check values")

This can make reports easier to read. However, use an informative fallback when possible so that important calculation problems are not hidden.

Excel Text Functions

Text functions help clean, extract, format, and combine information. They are valuable when working with customer lists, employee records, addresses, and imported data.

17. CONCAT Function

CONCAT combines text from multiple cells or ranges.

Example:

=CONCAT(A2," ",B2)

If A2 contains “Rahul” and B2 contains “Sharma,” the result is “Rahul Sharma.”

You can also use the ampersand operator:

=A2&" "&B2

18. LEFT Function

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

Example:

=LEFT(A2,3)

If A2 contains “EXCEL2026,” the result is “EXC.”

This can help extract prefixes, product codes, and identification numbers.

19. RIGHT Function

RIGHT extracts characters from the end of a text string.

Example:

=RIGHT(A2,4)

If A2 contains “PRODUCT1234,” the result is “1234.”

20. MID Function

MID extracts characters from a specified position.

Syntax:

=MID(text,start_num,num_chars)

Example:

=MID(A2,4,3)

If A2 contains “ABCDEFGHI,” the result is “DEF.”

This is useful for extracting sections of product codes or structured text.

21. LEN Function

LEN counts the number of characters in a text string, including spaces.

Example:

=LEN(A2)

This formula can help check character limits, identify unexpected spaces, and validate text entries.

22. TRIM Function

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

Example:

=TRIM(A2)

This is particularly useful when names or imported records contain unnecessary spaces that interfere with matching and analysis.

Date and Time Formulas in Excel

Excel stores dates and times as serial values, allowing you to perform calculations with them.

23. TODAY Function

The TODAY function returns the current date according to the system environment used by Excel.

Example:

=TODAY()

The result updates when the workbook recalculates.

Use this function to create reports, track deadlines, and calculate days remaining until a target date.

24. NOW Function

The NOW function returns the current date and time.

Example:

=NOW()

The result updates during recalculation, so it should not be treated as a permanent timestamp for when a transaction occurred.

25. DATEDIF Function

DATEDIF calculates the difference between two dates in specified units.

Example:

=DATEDIF(A2,B2,"Y")

This calculates the number of complete years between the start date in A2 and the end date in B2.

It can help calculate age or length of service. Ensure the end date is not earlier than the start date.

26. EOMONTH Function

EOMONTH returns the last day of a month a specified number of months before or after a starting date.

Example:

=EOMONTH(A2,0)

This returns the final day of the month containing the date in A2.

It is useful for monthly accounting, billing periods, and financial reports.

Lookup and Reference Functions

Lookup functions search for information and return corresponding values. They are essential for managing product catalogs, employee records, price lists, and large datasets.

27. VLOOKUP Function

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

Syntax:

=VLOOKUP(lookup_value,table_array,col_index_num,[range_lookup])

Example:

=VLOOKUP(E2,A2:C100,3,FALSE)

This formula searches for the value in E2 in the first column of A2 and returns the corresponding value from the third column. FALSE requests an exact match.

VLOOKUP is useful for finding product prices, employee departments, and customer information. Remember that the lookup value must be in the first column of the selected table range.

28. XLOOKUP Function

XLOOKUP is a modern lookup function available in supported Excel versions.

Example:

=XLOOKUP(E2,A2:A100,C2:C100,"Not found")

This formula searches for the value in E2 within A2 and returns the corresponding value from C2. If there is no match, it displays “Not found.”

Unlike VLOOKUP, XLOOKUP can return values from columns to the left or right of the lookup column.

29. INDEX Function

INDEX returns a value from a specified position in a range.

Example:

=INDEX(B2:B10,3)

This returns the third value in the range B2.

INDEX becomes particularly powerful when combined with MATCH.

30. MATCH Function

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

Example:

=MATCH("Laptop",A2:A10,0)

This returns the position of the first exact match for “Laptop” in the specified range.

Combining INDEX and MATCH allows flexible lookups:

=INDEX(C2:C100,MATCH(E2,A2:A100,0))

This searches for the value in E2 within column A and returns the corresponding value from column C.

Conditional Calculation Functions

Conditional functions allow you to calculate totals, averages, and counts based on specific criteria.

31. SUMIF Function

SUMIF adds values that meet one condition.

Example:

=SUMIF(A2:A100,"Electronics",B2:B100)

This adds the corresponding values in B2 where the cells in A2 equal “Electronics.”

It is useful for calculating sales by category, expenses by department, or revenue from a particular product.

32. SUMIFS Function

SUMIFS adds values that satisfy multiple conditions.

Example:

=SUMIFS(C2:C100,A2:A100,"Electronics",B2:B100,"North")

This adds values in column C when column A is “Electronics” and column B is “North.”

Use SUMIFS for detailed business reports involving several filters.

33. COUNTIF Function

COUNTIF counts cells that meet one condition.

Example:

=COUNTIF(B2:B100,">=50")

This counts the numeric cells in the range that contain values greater than or equal to 50.

You can also count matching text:

=COUNTIF(A2:A100,"Completed")

34. COUNTIFS Function

COUNTIFS counts records that satisfy multiple conditions.

Example:

=COUNTIFS(A2:A100,"North",B2:B100,"Completed")

This counts records where column A contains “North” and column B contains “Completed.”

It is useful for monitoring order status, tracking leads, and analyzing employee performance.

35. AVERAGEIF Function

AVERAGEIF calculates the average of values that meet a condition.

Example:

=AVERAGEIF(A2:A100,"Marketing",B2:B100)

This calculates the average of values in column B for rows where column A contains “Marketing.”

Advanced Excel Functions and Techniques

Advanced functions make it possible to work with complex datasets, create dynamic reports, and reduce manual effort.

36. FILTER Function

FILTER returns records that meet specified criteria in supported Excel versions.

Example:

=FILTER(A2:C100,B2:B100="Completed","No records")

This returns the rows from A2 where column B contains “Completed.”

FILTER is useful for creating live lists of completed orders, selected departments, or qualifying products. The returned results can spill into adjacent cells, so ensure that the output area is clear.

37. UNIQUE Function

UNIQUE returns distinct values from a range in supported Excel versions.

Example:

=UNIQUE(A2:A100)

This creates a list of unique entries from the specified range.

It is useful for identifying distinct customers, product categories, or locations without manually removing duplicates.

38. SORT Function

SORT sorts a range or array.

Example:

=SORT(A2:B20,2,-1)

This sorts the selected data by its second column in descending order.

SORT can help create dynamic reports where the displayed order updates as the source data changes.

39. LET Function

LET allows you to assign names to values or calculations inside a formula.

Example:

=LET(total,A2*B2,total*1.1)

This calculates the product of A2 and B2, names that result total, and then multiplies it by 1.1.

LET can make complicated formulas easier to read and may prevent repeated calculations within the same formula.

40. IF with Multiple Conditions

You can nest IF functions to evaluate several possible outcomes.

Example:

=IF(B2>=80,"Excellent",IF(B2>=60,"Good",IF(B2>=40,"Pass","Fail")))

This formula assigns a result based on the value in B2.

Nested IF formulas are useful for grading systems, performance categories, and commission levels. For many categories, consider using IFS or a lookup table to make the logic easier to maintain.

Understanding Absolute and Relative Cell References

Cell references determine how a formula behaves when copied to other cells.

Relative Reference

Example:

=A2*B2

When copied down one row, Excel adjusts the formula to =A3*B3.

Relative references are useful when applying the same calculation to multiple records.

Absolute Reference

Example:

=A2*$F$1

The dollar signs lock column F and row 1. When the formula is copied, the reference to F1 remains fixed.

This is helpful when applying a constant tax rate, commission percentage, or discount rate to many rows.

Mixed Reference

Examples:

  • $A1 locks column A but allows the row to change.
  • A$1 locks row 1 but allows the column to change.

Mixed references are useful in multiplication tables and formulas copied across both rows and columns.

Common Excel Formula Errors and How to Fix Them

Even experienced users encounter formula errors. Learning what they mean makes troubleshooting easier.

#DIV/0! appears when a formula divides by zero or an empty cell treated as zero. Check the divisor before calculating.

#N/A means a required value is unavailable. In lookup formulas, verify that the lookup value exists and that the data is formatted consistently.

#VALUE! often appears when a formula receives an incompatible type of value, such as text where a number is expected.

#REF! indicates an invalid cell reference, often caused by deleting a referenced row, column, or cell.

#NAME? usually means Excel does not recognize a function name or text in a formula. Check spelling and ensure text values are enclosed in quotation marks.

#SPILL! can occur when a dynamic array formula cannot place its results because cells in the output area are occupied.

Incorrect results: Check cell references, calculation settings, number formats, and whether the formula uses the intended criteria.

Tips for Using Excel Formulas More Efficiently

Follow these practical habits to make your spreadsheets more reliable:

  1. Use descriptive column headings so that your data is easy to understand.
  2. Convert data ranges into Excel Tables to simplify structured references and help formulas expand with new records.
  3. Use absolute references when a calculation depends on a fixed tax rate or other constant.
  4. Use IFERROR thoughtfully rather than hiding every possible error without investigation.
  5. Prefer XLOOKUP over VLOOKUP when your Excel version supports it and the lookup requirements fit.
  6. Use SUMIFS and COUNTIFS when calculations depend on multiple criteria.
  7. Check formula results against a manual calculation when creating important reports.
  8. Keep raw data separate from summary reports whenever possible.
  9. Avoid unnecessary nested formulas that make workbooks difficult to maintain.
  10. Add comments or documentation to complex calculations so that other users can understand them.

Practical Example: Calculating Sales in Excel

Imagine that you maintain a sales worksheet with the following columns:

  • Column A: Product Name
  • Column B: Quantity Sold
  • Column C: Price Per Unit
  • Column D: Total Sales

To calculate total sales for the first product, enter this formula in D2:

=B2*C2

Copy the formula down to calculate sales for the remaining products.

To calculate total revenue for all products, use:

=SUM(D2:D100)

To calculate average sales per product record, use:

=AVERAGE(D2:D100)

To identify the highest sales value, use:

=MAX(D2:D100)

To count the number of product records with sales greater than 10,000, use:

=COUNTIF(D2:D100,">10000")

To calculate revenue from a particular category, use SUMIF or SUMIFS, depending on the number of criteria required.

These formulas transform a simple list into a useful sales report and demonstrate how basic and advanced functions can work together.

Frequently Asked Questions About Excel Formulas

What is the most commonly used formula in Excel?

SUM is one of the most frequently used Excel functions because it quickly adds numbers across cells and ranges. Other commonly used functions include IF, AVERAGE, COUNT, and XLOOKUP.

How do I start a formula in Excel?

Select a cell, type an equal sign (=), enter the formula, and press Enter. For example, =A1+B1 adds the values in A1 and B1.

What are the basic formulas every beginner should learn?

Start with addition, subtraction, multiplication, division, SUM, AVERAGE, MIN, MAX, COUNT, and IF. After learning these, move on to lookup and conditional functions.

What is the difference between a formula and a function?

A formula is an expression that performs a calculation. A function is a predefined operation that can be used within a formula. For example, =A1+B1 is a formula, while SUM is a function used in =SUM(A1:B10).

Which Excel functions are useful for data analysis?

SUMIFS, COUNTIFS, AVERAGEIF, XLOOKUP, INDEX, MATCH, FILTER, UNIQUE, and SORT are valuable for analyzing and organizing data.

Can Excel formulas update automatically?

Yes. Excel normally recalculates dependent formulas when referenced values change. However, if calculation mode is set to Manual, you may need to trigger recalculation.

Are advanced Excel functions available in every version?

No. Functions such as XLOOKUP, FILTER, UNIQUE, SORT, and LET depend on the Excel version and update channel. Check your version’s compatibility before using them in shared workbooks.

Conclusion

Excel formulas are essential for performing calculations, analyzing information, and automating everyday spreadsheet tasks. By learning basic arithmetic operators and functions such as SUM, AVERAGE, IF, COUNTIF, and VLOOKUP, beginners can build a strong foundation in spreadsheet skills.

As your knowledge grows, explore XLOOKUP, SUMIFS, FILTER, UNIQUE, SORT, and LET to create more flexible and efficient workflows. Understanding cell references, logical conditions, and common formula errors will also help you maintain accurate spreadsheets.

The best way to master Excel formulas is to practise them with real examples. Start with a small dataset, apply a few formulas, check the results, and gradually move toward more advanced functions. With consistent practice, Excel can become a powerful tool for managing data, improving productivity, and making better decisions.

Thank you so much for visiting ZeexasTech.com and taking the time to read my articles. Your support and interest mean a lot to me. I hope you find the information useful and enjoy exploring the website!

Best regards,
Vishal Kumar
Writer of ZeexasTech.com

1 comment

Leave a Reply

Your email address will not be published. Required fields are marked *