If you work with data — even just a little — Excel formulas are your best friend. The right formula can turn hours of manual work into a 10-second task.
In this article, we cover the 10 most important Excel formulas every data analyst should know. Each formula includes a clear explanation, a real-world example, and a practical use case so you can start using it today.
📊 VLOOKUP — Look Up a Value in a Table
What it does: Searches for a value in the first column of a table and returns a value from another column in the same row.
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
=VLOOKUP(A2, MasterSheet!$A:$D, 4, FALSE)This looks for the value in A2, searches the first column of the master table, and returns column 4 (salary). FALSE means exact match.
🔍 XLOOKUP — The Modern Replacement for VLOOKUP
What it does: Searches a range for a value and returns a result. More flexible than VLOOKUP — can search any direction, handle errors, and return multiple columns.
=XLOOKUP(lookup_value, lookup_array, return_array, [not_found], [match_mode])
=XLOOKUP(D2, ProductList!A:A, ProductList!C:C, "Not Found")If the product is not found, it shows "Not Found" instead of an error.
📌 INDEX + MATCH — The Power Combo
What it does: INDEX returns a value at a position. MATCH finds the position. Together, they create a flexible lookup that works in any direction — even better than VLOOKUP.
=INDEX(return_range, MATCH(lookup_value, lookup_range, 0))
=INDEX(C2:C100, MATCH("Rahul", A2:A100, 0))MATCH finds which row "Rahul" is in. INDEX returns the salary from that row in column C.
➕ SUMIF — Add Up Values That Meet a Condition
What it does: Adds values in a range based on a condition you define.
=SUMIF(range, criteria, sum_range)
=SUMIF(A2:A500, "North", C2:C500)Column A has regions, Column C has sales amounts. This adds up all sales where region = North.
🔢 COUNTIF — Count Cells That Match a Condition
What it does: Counts the number of cells in a range that meet a specified condition.
=COUNTIF(range, criteria)
=COUNTIF(B2:B200, "Delhi")Count sales greater than 10,000:
=COUNTIF(C2:C200, ">10000")
🧮 IF — Make Decisions in Your Data
What it does: Returns one value if a condition is TRUE and another if it is FALSE. It is the foundation of logic in Excel.
=IF(logical_test, value_if_true, value_if_false)
=IF(C2>=50000, "Hit", "Miss")Grade students: A, B, C, or Fail:
=IF(D2>=90,"A", IF(D2>=75,"B", IF(D2>=60,"C","Fail")))
🗓️ TEXT — Format Numbers and Dates as Text
What it does: Converts a value to text with a specific format. Extremely useful when combining dates or numbers with text.
=TEXT(value, format_text)
="Report for "&TEXT(A2,"DD-MMM-YYYY")Result: "Report for 15-Jan-2026"
Format a number as currency with commas:
=TEXT(B2, "₹#,##0") → ₹1,25,000
🧹 TRIM + CLEAN — Remove Extra Spaces and Hidden Characters
What it does: TRIM removes leading, trailing, and extra spaces from text. CLEAN removes non-printable characters. Essential for cleaning messy data imported from other systems.
=TRIM(text)
=CLEAN(text)
=TRIM(CLEAN(text))
=TRIM(CLEAN(A2))" Rahul Sharma " → "Rahul Sharma"
🔗 CONCATENATE / TEXTJOIN — Combine Text from Multiple Cells
What it does: Joins text from multiple cells into one. TEXTJOIN is the modern, better version that lets you add a separator.
=TEXTJOIN(delimiter, ignore_empty, text1, text2, ...)
=A2&" "&B2 (using & operator)
=A2&" "&B2 → "Rahul Sharma"Join city, state, and country with comma separator:
=TEXTJOIN(", ", TRUE, A2, B2, C2)→ "Delhi, Delhi, India"
🛡️ IFERROR — Handle Errors Gracefully
What it does: Wraps any formula and catches errors like #N/A, #DIV/0!, #VALUE!, and shows a custom message instead — keeping your reports clean and professional.
=IFERROR(value, value_if_error)
=IFERROR(VLOOKUP(A2, MasterTable, 3, FALSE), "Not Found")Division that shows 0 instead of #DIV/0!:
=IFERROR(B2/C2, 0)
Quick Reference Table
Here is a quick summary of all 10 formulas. Click any formula name to jump to its full explanation:
| # | Formula | Best Used For | Available In |
|---|---|---|---|
| 1 | VLOOKUP | Look up values in a table (left to right) | All Excel versions |
| 2 | XLOOKUP | Modern lookup — any direction, with fallback | Excel 365 / 2021+ |
| 3 | INDEX+MATCH | Flexible lookup, works with any column order | All Excel versions |
| 4 | SUMIF / SUMIFS | Conditional totals | All Excel versions |
| 5 | COUNTIF / COUNTIFS | Count rows matching conditions | All Excel versions |
| 6 | IF / IFS | Conditional logic and classification | All / Excel 2019+ |
| 7 | TEXT | Format numbers/dates as readable text | All Excel versions |
| 8 | TRIM + CLEAN | Clean messy imported data | All Excel versions |
| 9 | TEXTJOIN / & | Combine text from multiple cells | Excel 2019+ / All |
| 10 | IFERROR | Hide errors in professional reports | All Excel versions |
🎯 Summary — Your Excel Formula Toolkit
Master these 10 formulas and you will be able to handle 80% of real-world data tasks in Excel:
- VLOOKUP — Look up data from a master table
- XLOOKUP — Modern, flexible, error-safe lookup
- INDEX + MATCH — The most powerful lookup combination
- SUMIF / SUMIFS — Conditional totals for reports
- COUNTIF / COUNTIFS — Count data by conditions
- IF / IFS — Logic and classification
- TEXT — Format values for display
- TRIM + CLEAN — Fix messy imported data
- TEXTJOIN — Combine data intelligently
- IFERROR — Keep reports clean and professional
Frequently Asked Questions
Want to learn Excel from scratch?
Our free Excel for Beginners course covers all these formulas step-by-step with practice tasks and real-world projects.