Hello Friends, in this blog post, we are going to discuss a few amazing “Advanced Excel Formulas“.
Formulas such as SUM, AVERAGE, and COUNT are considered basic level in Excel.
And when you gradually move a few levels up, you see the real strength of Powerful Excel applications.

With the use of advanced Excel formulas, you can easily compare information, search large datasets, combine multiple…
… conditions, automate decisions, and with less manual effort you can create accurate and consistent reports.
In Excel, lookup formulas offer you great help to find the product’s price from a master list. You can easily classify sales performance using the “IF” formula in Excel.
From a flexible data table, you can easily retrieve information using a combination of INDEX and MATCH formulas.
In this post, we are going to explore a few amazing facts about “Advanced Excel formulas“.
Along with their working process, we will also go through the demonstration of some practical examples…
…which would surely be useful for students, accountants, analysts, business owners, and professionals.
1. The IF Function: Build Logical Decisions
The IF function evaluates a condition and returns one result when the condition is true and another when it is false.
Syntax:
=IF(logical_test, value_if_true, value_if_false)
Suppose a student’s marks are stored in cell B2. To check whether the student has passed with at least 40 marks, use:
=IF(B2>=40,"Pass","Fail")
If B2 contains 65, the result is “Pass”. If B2 contains 30, the result is “Fail”.
Using nested IF formulas
A nested IF places one IF function inside another. This is useful when you need to assign multiple categories.
For example, suppose an employee’s performance score is in B2:
=IF(B2>=90,"Excellent",IF(B2>=75,"Good",IF(B2>=50,"Average","Needs Improvement")))
This formula assigns a category according to the score:
- 90 or above: Excellent
- 75 to 89: Good
- 50 to 74: Average
- Below 50: Needs Improvement
The order of conditions matters because Excel evaluates the formula from the outside inward.
For more complicated conditions, consider IFS or lookup tables instead of creating a very long nested IF formula.
2. AND and OR: Test Multiple Conditions
The AND and OR functions help you evaluate more than one condition at a time.
AND function
AND returns TRUE only when all supplied conditions are true.
Example:
=AND(B2>=40,C2>=40)
This returns TRUE only when both B2 and C2 contain values greater than or equal to 40.
You can combine AND with IF:
=IF(AND(B2>=40,C2>=40),"Pass","Fail")
This could be used to check whether a student has passed two subjects, assuming both subjects require at least 40 marks.
OR function
OR returns TRUE when at least one supplied condition is true.
=IF(OR(B2="Urgent",C2="High"),"Priority","Normal")
This formula returns “Priority” if B2 contains “Urgent” or C2 contains “High”.
When to use AND and OR:
- Checking multiple eligibility requirements
- Identifying high-priority orders
- Validating sales targets
- Evaluating attendance and marks
- Applying business rules to records
3. XLOOKUP: Find Information Quickly
XLOOKUP is one of the most useful modern Excel lookup functions. It searches for a value in one range and returns a corresponding value from another range.
Unlike traditional VLOOKUP, XLOOKUP can search in one column and return information from a column on either side of it. It also supports an explicit result when no match is found.
Syntax:
=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
Practical example
Suppose you have this product list:
| Product ID | Product | Price |
|---|---|---|
| P101 | Laptop | 45,000 |
| P102 | Printer | 12,000 |
| P103 | Monitor | 18,000 |
| P104 | Keyboard | 2,000 |
Assume product IDs are in A2, product names are in B2, and prices are in C2.
If cell E2 contains, P103, use:
=XLOOKUP(E2,A2:A5,C2:C5,"Not Found")
The result is 18,000.
Excel searches for the ID in column A and returns the corresponding price from column C.
Return a product name instead
=XLOOKUP(E2,A2:A5,B2:B5,"Not Found")
This returns “Monitor” for P103.
Find the next smaller or larger value
XLOOKUP also supports approximate matching. For example, match mode -1 looks for an exact match or the next smaller item, while match mode 1 looks for an exact match or the next larger item.
=XLOOKUP(E2,A2:A5,C2:C5,"Not Found",-1)
Use approximate matching carefully. Your lookup data and business rules must support the result you expect.
Important: XLOOKUP is available in Microsoft 365 and newer supported Excel versions, but it is not available in some older versions, including Excel 2016 and Excel 2019.
4. VLOOKUP: A Traditional Lookup Formula
Although XLOOKUP is often more flexible, VLOOKUP remains common in existing spreadsheets and older Excel versions.
VLOOKUP searches for a value in the first column of a table and returns a value from a specified column to its right.
Syntax:
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
Using the product table above, suppose E2 contains P103. Enter:
=VLOOKUP(E2,A2:C5,3,FALSE)
The result is 18,000 because the price is in the third column of the selected table.
The final argument FALSE requests an exact match. This is generally the safer choice for product IDs, employee IDs, invoice numbers, and similar identifiers.
Limitations of VLOOKUP
- It searches only the first column of the selected table.
- It returns information from columns to the right of the lookup column.
- Inserting or deleting columns can make a hard-coded column index unsuitable.
- Approximate matching can produce unexpected results if the data is not arranged appropriately.
For new spreadsheets, XLOOKUP is often easier to maintain when your Excel version supports it.
5. INDEX and MATCH: Flexible Data Retrieval
INDEX and MATCH are frequently used together to look up information without the structural limitations of VLOOKUP.
Understanding INDEX
INDEX returns a value from a specified position in a range.
=INDEX(C2:C5,3)
This returns the third value in C2, which is 18,000 in our example.
Understanding MATCH
MATCH returns the position of a value within a range.
=MATCH("P103",A2:A5,0)
This returns 3, because P103 is the third item in the selected range. The final argument 0 requests an exact match.
Combining INDEX and MATCH
=INDEX(C2:C5,MATCH(E2,A2:A5,0))
If E2 contains P103, the formula returns 18,000.
Here is how it works:
- MATCH searches for the product ID in A2.
- MATCH returns its relative position.
- INDEX uses that position to return the corresponding value from C2.
This approach is useful when you need to retrieve data from a column to the left or right of the lookup column, provided you choose the appropriate ranges.
When to use INDEX and MATCH:
- Looking up employee details
- Retrieving product prices
- Finding student records
- Searching large tables
- Maintaining spreadsheets compatible with older Excel versions
6. SUMIFS: Calculate Totals Using Multiple Conditions
SUMIFS adds values only when all specified conditions are satisfied.
Syntax:
=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
Imagine a sales worksheet with three columns:
- Column A: Product
- Column B: Region
- Column C: Sales
To calculate sales for Laptop in the North region, use:
=SUMIFS(C2:C100,A2:A100,"Laptop",B2:B100,"North")
Excel adds the sales values in column C only when the corresponding product is Laptop and the region is North.
Use cell references for flexible reports
Instead of writing conditions directly into the formula, place the product name in E2 and the region in F2:
=SUMIFS(C2:C100,A2:A100,E2,B2:B100,F2)
Now you can change E2 or F2 to calculate another combination without rewriting the formula.
This is useful for interactive reports and business dashboards.
7. COUNTIFS: Count Records with Multiple Conditions
The COUNTIFS function counts records that satisfy several conditions simultaneously.
Suppose column A contains regions and column B contains order statuses.
To count completed orders in the North region, use:
=COUNTIFS(A2:A100,"North",B2:B100,"Completed")
To make the formula dynamic, use E2 for the region and F2 for the status:
=COUNTIFS(A2:A100,E2,B2:B100,F2)
COUNTIFS is particularly useful for tracking:
- Completed and pending orders
- Employees by department and location
- Students by class and result
- Attendance by date and status
- Customers by category and region
Ensure that all criteria ranges have matching dimensions.
8. IFERROR and IFNA: Handle Lookup Errors
Lookup formulas may return errors when the requested item does not exist, or the formula contains a problem.
IFERROR
IFERROR returns an alternative result when a formula produces an error.
=IFERROR(XLOOKUP(E2,A2:A5,C2:C5),"Check Data")
This formula displays “Check Data” if the lookup expression returns an error.
IFNA
IFNA handles specifically the #N/A error.
=IFNA(VLOOKUP(E2,A2:C5,3,FALSE),"Product Not Found")
This can be useful when a lookup item does not exist in the source list.
The difference matters: IFERROR handles many error types, whereas IFNA handles only # N/A
Avoid using error-handling functions to conceal problems that should be corrected. A message such as “Product Not Found” is appropriate for a missing lookup result, but a broken cell reference may require a different solution.
9. FILTER: Extract Records That Meet Conditions
The FILTER function returns rows or columns from a range that satisfy a condition. It is available in Microsoft 365 and other supported modern Excel versions.
Syntax:
=FILTER(array, include, [if_empty])
Suppose A2 contains a sales table, with the region in column B. To display all records for the North region, use:
=FILTER(A2:C100,B2:B100="North","No Records")
Excel returns the matching rows in the worksheet as a dynamic array.
To display only records where sales in column C are greater than 10,000, use:
=FILTER(A2:C100,C2:C100>10000,"No Records")
Combine multiple conditions
For records where the region is North and sales exceed 10,000:
=FILTER(A2:C100,(B2:B100="North")*(C2:C100>10000),"No Records")
In this example, multiplication represents AND logic: both conditions must be true.
FILTER can save time when preparing filtered reports without manually applying worksheet filters or copying individual records.
10. UNIQUE and SORT: Organise Data Automatically
Modern Excel includes dynamic array functions that can return multiple results from a single formula.
UNIQUE
=UNIQUE(A2:A100)
This returns a list of distinct values from the selected range.
It is useful for generating lists of unique products, customers, regions, or categories.
SORT
=SORT(A2:A100)
This returns the values in ascending order by default.
To sort a multi-column table by its second column in ascending order, you could use:
=SORT(A2:C100,2,1)
Here, 2 identifies the second column within the selected array, and 1 specifies ascending order.
These formulas can make summary sheets easier to maintain because the results can update when the underlying source data changes, subject to the formula’s range and calculation settings.
Compatibility note: UNIQUE, SORT, FILTER, and XLOOKUP require a version of Excel that supports these functions. Older versions may return #NAME? or otherwise fail to recognise them.
11. LET: Make Complex Formulas Easier to Read
The LET function allows you to assign names to intermediate calculations inside a formula. This can improve readability and avoid repeating the same calculation several times.
For example:
=LET(total,B2*C2,discount,total*10%,total-discount)
This formula:
- Assigns the result of B2 multiplied by C2 to the name
total. - Calculates a 10% discount.
- Returns the total after subtracting the discount.
If B2 contains 5 and C2 contains 1,000, the result is 4,500.
LET is useful when a formula contains repeated expressions or several calculation steps. It is available in supported modern Excel versions, including Microsoft 365.
12. TEXT and Date Calculations
Excel stores dates as serial numbers, which allows you to calculate the difference between dates.
Suppose A2 contains a start date and B2 contains an end date.
Calculate the number of days between dates:
=B2-A2
Calculate the end date after 30 days:
=A2+30
Display a date in a particular text format:
=TEXT(A2,"dd-mmm-yyyy")
For example, a date may appear as 15-Jan-2026.
TEXT converts a value into text, which is useful for labels and reports. However, if you need to perform further date calculations, it is generally better to retain the original date value and apply cell formatting rather than convert it unnecessarily into text.
Date formats can also vary according to regional settings.
Practical Example: Build an Advanced Sales Report
Suppose you maintain a worksheet with the following columns:
| Column | Information |
|---|---|
| A | Product ID |
| B | Product |
| C | Region |
| D | Sales |
| E | Target |
You can add the following calculations.
1. Check whether a target was achieved
In F2:
=IF(D2>=E2,"Achieved","Below Target")
Copy the formula down to other rows.
2. Calculate total sales for the North region
=SUMIFS(D2:D100,C2:C100,"North")
3. Count products that achieved their targets
=COUNTIF(F2:F100,"Achieved")
4. Find the price of a product from a separate master list
If the master list contains product IDs in H2 and prices in I2, use:
=XLOOKUP(A2,H2:H100,I2:I100,"Not Found")
5. Display only North region records
=FILTER(A2:F100,C2:C100="North","No Records")
Together, these formulas can help you build a report that categorises performance, summarises sales, retrieves product information, and displays selected records.
For dependable results, keep source data consistent, use clearly labelled columns, and verify formulas with a few known records before relying on the report.
Best Practices for Using Advanced Excel Formulas
Follow these recommendations to keep your spreadsheets reliable and maintainable.
- Use exact matches for identifiers. Product IDs, invoice numbers, and employee IDs should generally use exact-match lookup logic.
- Prefer cell references over hard-coded criteria. This makes reports easier to update.
- Use absolute references when needed. Dollar signs, such as,
$B$1keep a reference fixed when copying formulas. - Keep data ranges consistent. Criteria ranges and sum ranges should cover the intended records.
- Choose the right function for your Excel version. Use XLOOKUP and dynamic array functions when supported; consider VLOOKUP or INDEX and MATCH for compatibility.
- Test formulas before sharing reports. Compare the results against a few manually verified examples.
- Avoid unnecessarily complex formulas. Break complicated calculations into helper columns or use LET when supported.
- Document important calculations. Clear column headings and explanatory notes help other people understand your workbook.
Frequently Asked Questions
1. Which advanced Excel formula should I learn first?
Start with IF, AND, OR, SUMIFS, and COUNTIFS. Then learn XLOOKUP or INDEX and MATCH for retrieving information from tables.
2. Is XLOOKUP better than VLOOKUP?
XLOOKUP is generally more flexible because it separates the lookup range from the return range, supports looking in either direction, and provides a built-in option for missing results. VLOOKUP remains useful in older workbooks and Excel versions that do not support XLOOKUP.
3. What is the difference between INDEX MATCH and XLOOKUP?
Both can retrieve information from a table. XLOOKUP combines the lookup and return operations in one function, while INDEX and MATCH work together as two functions. INDEX and MATCH remain useful for compatibility with older versions and for certain complex lookup arrangements.
4. What are dynamic array formulas?
Dynamic array formulas can return multiple results that automatically spill into neighbouring cells. Functions such as FILTER, UNIQUE, and SORT use this behaviour in supported versions of Excel.
5. Why does my Excel formula return an error?
Common causes include incorrect cell references, missing lookup values, mismatched data types, misspelled function names, and unsupported functions. Review the formula, verify the source data, and check whether your Excel version supports the function.
Conclusion
Friends, in this blog post, we have fully understood “Advanced Excel formulas“. These advanced Excel formulas are capable enough to make an ordinary spreadsheet into a fascinating and powerful reporting & analysis tool. You can easily automate decisions using IF, AND, and OR. For retrieving information, you can use XLOOKUP, VLOOKUP, and INDEX with MATCH. SUMIFS and COUNTIFS formulas are used to analyse the records. And for organising data dynamically, FILTER, UNIQUE, and SORT functions are used.
Memorising all the functions at once is not a good strategy you should follow. Rather, learn one formula at a time and practice it with a small dataset, understand its arguments, and always make sure to test the result before applying it to real, important business information.
Once you get a good command over these functions or formulas, you will be easily able to create sales summaries, automated reports, employee trackers, inventory systems, and fascinating & good-looking dashboards
If you have any questions, write to us at support@a5theory.com; we will get back to you ASAP.
Hope! You will enjoy this post, “Advanced Excel Formulas“.
Please feel free to share your feedback in the comments below.
Have a great time!
