Top 30 Excel Formulas for Data Analysis
Here are the most powerful and essential Excel formulas you need for performing professional-level data analysis. Each formula is presented with its function and practical use case.
1. Basic Calculations
SUM(range): Adds numbers — Used for total sales, revenue, or expenses.
AVERAGE(range): Finds the average — Used to calculate customer average spending or ratings.
COUNT(range): Counts numbers — Used for total orders, entries, or transactions.
COUNTA(range): Counts non-empty cells — To measure filled responses or attendance.
COUNTBLANK(range): Counts empty cells — To identify missing data points.
MAX(range): Finds the highest value — Helpful for max sales, salary, or marks.
MIN(range): Finds the lowest value — Used for checking lowest prices or scores.
2. Data Lookup & Matching
VLOOKUP(value, table, col_index, FALSE): Vertical lookup — Fetch product price or employee data from a list.
HLOOKUP(value, table, row_index, FALSE): Horizontal lookup — Search across a row.
INDEX(range, row, col): Returns data from a table — Extract specific row-column data.
MATCH(value, lookup_range, 0): Finds position — Rank students or product order.
INDEX + MATCH: Advanced lookup combo — More flexible than VLOOKUP.
XLOOKUP(value, lookup_array, return_array): Modern lookup — Faster and simpler than VLOOKUP.
3. Logical & Conditional Analysis
IF(condition, value_if_true, value_if_false): Conditional check — Show Pass/Fail or Profit/Loss.
IFS(condition1, value1, ...): Multiple conditions — Grade students or performance levels.
AND(cond1, cond2): All must be true — For strict validations.
OR(cond1, cond2): At least one true — Flexible validation.
IFERROR(formula, "Message"): Handles errors — Avoid #N/A or #DIV/0! in reports.
4. Data Cleaning & Text Handling
TRIM(text): Removes extra spaces — Clean messy data.
LEN(text): Counts characters — Useful for IDs, tags, or usernames.
LEFT(text, num_chars): Extract from start — Grab initials or codes.
RIGHT(text, num_chars): Extract from end — Find extensions or suffixes.
MID(text, start, num_chars): Extract middle text — Cut part of name or code.
SUBSTITUTE(text, old, new): Replace text — Fix category or name errors.
TEXTJOIN(", ", TRUE, range): Join multiple texts — Merge names or tags.
UNIQUE(range): Remove duplicates — Get unique entries only.
5. Date & Time Analysis
TODAY(): Current date — Auto-update reports.
NOW(): Date & time — Track real-time activities.
DATEDIF(start, end, "Y"): Date difference in years — Calculate age or experience.
TEXT(date, "mmm-yyyy"): Formats date — Like "Jan-2024".
EOMONTH(start, months): Month-end date — Useful for monthly summaries.
Conclusion: These formulas are must-know tools for efficient, error-free, and powerful data analysis in Excel. Learn, apply, and share them!