Published on : Aug 22, 2026

25 Excel Formulas Every Data Analyst Uses Every Week

Grouped by the job they do, not the alphabet, with a realistic example for each

6 Minutes Read
Rutvik Acharya, Principal Data Scientist at Atlassian

Rutvik Acharya

Principal Data Scientist Atlassian

25 Excel Formulas Every Data Analyst Uses Every Week thumbnail

25 Excel Formulas Every Data Analyst Uses Every Week

Most "Excel formulas" lists are alphabetical, which is exactly backwards for learning. Alphabetical order groups AVERAGEIFS next to CONCAT for no reason other than the letter A comes before C. It tells you nothing about when you'd actually reach for either one.

This list is grouped by the job each formula does instead: cleaning messy data, looking values up across tables, aggregating numbers by condition, working with dates, and manipulating text. That's also roughly the order you'll need them in on a real dataset, since cleaning usually comes first and aggregation comes after you've got something trustworthy to summarise.

Screenshot 2026-08-13 174634.png

How to use this list

Don't try to memorise all 25 in one sitting. Read through once to see which formulas you already know cold, then bookmark this page and come back to the category you're weakest in when you actually hit that kind of problem in real data. Every formula below uses a realistic business column, Orders[Amount], Customers[Region], not a placeholder like A1:A10, because the hard part of Excel is rarely the syntax itself; it's recognising which formula the problem in front of you actually calls for.

Clean and validate

Cleaning comes first because nothing downstream can be trusted until the raw data is. These five show up constantly on data pulled from another system, a form, or a copy-paste from somewhere with different formatting habits than yours.

#

Formula

What it's for

Example

1

TRIM

Removes extra spaces, especially the invisible leading or trailing ones that break lookups

=TRIM(Customers[CompanyName])

2

CLEAN

Strips non-printable characters that sometimes come through in exports from other systems

=CLEAN(Feedback[Comment])

3

SUBSTITUTE

Replaces a specific text pattern, useful for standardising inconsistent entries like "Pvt Ltd" vs "Pvt. Ltd."

=SUBSTITUTE(Customers[CompanyName], "Pvt. Ltd.", "Pvt Ltd")

4

PROPER

Standardises capitalisation, turning "RAHUL SHARMA" and "rahul sharma" into the same "Rahul Sharma", though it's worth a manual check afterward for brand names and names with unconventional capitalisation

=PROPER(Customers[ContactName])

5

LEN

Counts characters, most useful for spotting entries that are suspiciously short, blank, or truncated

=LEN(Orders[PhoneNumber])

Where this bites people: a lookup that silently fails because the key column has trailing spaces is one of the most common sources of "why isn't this matching" in real spreadsheets. TRIM is often the first thing to check, and it's worth running defensively on any join key before trusting a VLOOKUP or XLOOKUP result.

Lookup and reference

This is one of the most common areas interviewers probe, and the one where using an outdated default costs you the most credibility.

#

Formula

What it's for

Example

6

XLOOKUP

The modern default for pulling a value from another table based on a matching key

=XLOOKUP(Orders[CustomerID], Customers[CustomerID], Customers[Region], "Not found")

7

VLOOKUP

The older lookup function, still common in inherited workbooks and on Excel versions before 2021

=VLOOKUP(Orders[CustomerID], CustomerTable, 3, FALSE)

8

INDEX

Returns a value at a given row and column position, usually paired with MATCH

=INDEX(Customers[Region], MATCH(Orders[CustomerID], Customers[CustomerID], 0))

9

MATCH

Finds the position of a value in a range, rarely used alone

=MATCH(Orders[CustomerID], Customers[CustomerID], 0)

10

IFNA

Replaces an #N/A error from a failed lookup with something readable, like "Unmapped"

=IFNA(XLOOKUP(Orders[CustomerID], Customers[CustomerID], Customers[Region]), "Unmapped")

Where this bites people: wrapping every lookup in IFERROR to make the red error text disappear, without ever checking why the match failed. A silently hidden #N/A is often a real data problem, a customer ID that only exists in one table, hiding in plain sight. IFNA specifically catches lookup misses rather than masking every possible error, which keeps that distinction visible.

Screenshot 2026-08-13 174721.png

Aggregate and summarise

Once the data is clean and joined, this is where a flat table turns into an answer. These five cover the vast majority of "how much, by what" questions a manager will actually ask.

#

Formula

What it's for

Example

11

SUMIFS

Totals a column, filtered by one or more conditions

=SUMIFS(Orders[Amount], Orders[Region], "West", Orders[Month], "July")

12

COUNTIFS

Counts rows matching one or more conditions

=COUNTIFS(Orders[Status], "Delivered", Orders[Region], "West")

13

AVERAGEIFS

Averages a column, filtered by one or more conditions

=AVERAGEIFS(Orders[Amount], Orders[Category], "Electronics")

14

SUMPRODUCT

Multiplies arrays and sums the result, useful for weighted totals or OR-style conditions SUMIFS can't express cleanly

=SUMPRODUCT(((Orders[Region]="West")+(Orders[Region]="North"))*Orders[Amount])

15

UNIQUE

Returns the distinct values in a range on its own; paired with COUNTA, it gives a quick count of how many different values, like customers or products, appear

=COUNTA(UNIQUE(Orders[CustomerID]))

Where this bites people: using SUMIFS when the real question needs an OR condition across the same field, "West or North region," which SUMIFS can't express directly since its conditions are implicitly ANDed together. SUMPRODUCT fills that gap, but the logic inside it trips people up: (Region="West")*(Region="North") multiplies two conditions together, which is AND logic, and no single row can be both West and North at once, so that version always evaluates to zero. Adding the two conditions instead, (Region="West")+(Region="North"), is what expresses OR: each condition returns 1 or 0, and a row matching either one contributes a 1 to the sum. Multiplying the combined OR result by Orders[Amount] is what actually filters and totals the revenue.

Date and time

Every business question has a time dimension buried in it somewhere, and dates arrive in more inconsistent formats than almost any other column type.

#

Formula

What it's for

Example

16

EOMONTH

Returns the last day of a month, a specified number of months away, useful for month-end reporting boundaries

=EOMONTH(Orders[OrderDate], 0)

17

EDATE

Adds or subtracts a number of months from a date, useful for renewal or expiry calculations

=EDATE(Subscriptions[StartDate], 12)

18

DATEDIF

Calculates the difference between two dates in years, months, or days, useful for age or tenure-style calculations rather than everyday reporting

=DATEDIF(Customers[SignupDate], TODAY(), "y")

19

NETWORKDAYS

Counts business days between two dates, excluding weekends, and can optionally exclude a specified list of holidays too

=NETWORKDAYS(Orders[OrderDate], Orders[DeliveryDate], HolidayList)

20

TEXT

Formats a date (or number) as text in a specific pattern, useful for grouping by month in a Pivot Table in a way that still sorts chronologically

=TEXT(Orders[OrderDate], "yyyy-mm")

Where this bites people: a date column that looks like a date but is actually stored as text, usually because it was imported from a CSV. Several of the formulas in this section can fail outright or produce unexpected results when a date is stored as text rather than a genuine date value, so it's worth checking alignment, genuine dates right-align by default, before building anything on top of a suspicious date column.

Text and logic

The last group covers the formulas that turn raw values into business categories and handle the inevitable exceptions in real data.

#

Formula

What it's for

Example

21

IF

The basic conditional, returns one value or another based on a test

=IF(Orders[Amount]>10000, "High Value", "Standard")

22

IFS

Handles multiple conditions in sequence without nesting several IFs inside each other

=IFS(Orders[Amount]>50000, "Enterprise", Orders[Amount]>10000, "Mid", TRUE, "Standard")

23

TEXTJOIN

Combines multiple text values with a chosen separator, skipping blanks automatically

=TEXTJOIN(", ", TRUE, Customers[City], Customers[State])

24

LEFT / MID / RIGHT

Extracts a specific number of characters from the start, middle, or end of a text string

=LEFT(Orders[OrderID], 3) returns the first three characters, useful for extracting a region or category code baked into an ID

25

IFERROR

Catches any formula error and replaces it with a specified fallback value

=IFERROR(Orders[Amount]/Orders[Quantity], "Missing Qty")

Where this bites people: reaching for a deeply nested IF when IFS would say the same thing in a fraction of the characters and be far easier for someone else, or you in six months, to actually read. Three or more nested IFs is usually the signal to switch.

Common mistakes across all 25

  • Learning the syntax without the judgment call. Knowing that SUMIFS exists is not the same as knowing when a question actually needs a rate instead of a sum, or an OR condition SUMIFS can't express. The formula is the easy part.

  • Wrapping everything in IFERROR by default. This hides real problems, a broken join, a genuinely missing value, alongside harmless ones. Investigate the error at least once before deciding to suppress it.

  • Not checking whether a date column is really a date. Several of the date formulas above can misbehave, sometimes silently, when run against a text-formatted date rather than a genuine one.

  • Defaulting to VLOOKUP out of habit. It still works and it's still worth recognising in inherited files, but XLOOKUP avoids VLOOKUP's most common failure mode, an accidental approximate match, by default.

  • Nesting IFs past two or three levels. At that point IFS, or a lookup table for the categories, is almost always more readable.

Where to go from here

This list covers formulas in isolation; seeing them inside a full cleaning and reporting workflow is a different skill, and the Excel for Data Analysis guide covers that fuller working set, including Pivot Tables and Power Query, which sit alongside these formulas rather than replacing them.

Lookups specifically come up constantly once you move into SQL, since a lookup and a JOIN are solving the same underlying problem in different tools; the SQL for Data Analysts guide is a natural next stop if XLOOKUP and INDEX/MATCH felt comfortable here. If you want to practise these formulas against a genuinely messy dataset rather than a clean example table, a few of the beginner project ideas are built around exactly that kind of cleanup work.

Quiz

TEST WHAT YOU LEARNED

Question 1 of 15

Q1: Why is this list grouped by task instead of alphabetically?

FAQ

FREQUENTLY ASKED QUESTIONS

No. Recognising the category a problem falls into, such as clean, look up, aggregate, date, or text, matters more than memorising every syntax detail. You can look up the exact argument order, but you cannot look up which formula the problem requires.
XLOOKUP and VLOOKUP are among the most common areas interviewers probe, along with SUMIFS and COUNTIFS. Interviewers also frequently ask candidates to explain differences such as VLOOKUP versus XLOOKUP or SUMIF versus SUMIFS rather than simply write the formula.
For new work, XLOOKUP is generally the safer default. However, you should still recognise VLOOKUP because older workbooks and Excel versions before 2021 commonly use it.
SUMIFS is simpler and handles most conditional-total requirements, but its conditions effectively use AND logic. SUMPRODUCT is more flexible and can handle OR-style logic within the same field, although it can be harder to read.
Structured table references are more robust when working with real Excel Tables because the references automatically expand as new rows are added. A fixed range such as A2:A100 will not automatically expand.
IFNA is more precise for lookup formulas because it specifically catches the #N/A error produced when a match is not found. IFERROR can also hide other types of errors, which may make debugging harder.
Not checking whether the date column contains genuine Excel dates rather than text formatted to look like dates. This can cause functions such as EOMONTH, DATEDIF, and NETWORKDAYS to return errors or unexpected results.
No. UNIQUE is part of the newer dynamic array functions available in Microsoft 365 and Excel 2021 onward. On older versions, Pivot Tables or Remove Duplicates can be practical alternatives.
The & operator concatenates values but requires separators to be added manually and can include blanks. TEXTJOIN lets you specify a separator once and can automatically ignore blank values, making it more useful when combining several optional fields.
IFS is useful when you have more than two or three conditions. It presents conditions as a flat sequence, making the logic easier to read and maintain than several layers of nested IF statements.
In modern Excel, XLOOKUP covers nearly all common use cases for INDEX/MATCH, including lookups to the left. INDEX/MATCH is still worth learning because it works in older Excel versions and remains common in existing workbooks and interview questions.
Check that the key columns on both sides match exactly, including spaces, capitalisation, and data type. Functions such as TRIM and PROPER can help address common formatting issues that cause lookups to fail.
SUMPRODUCT can seem intimidating because of its array-style syntax, but its common use cases, such as weighted averages and OR-style conditions, are practical enough to be worth learning.
Not for most analyst work. TRIM, SUBSTITUTE, and the LEFT, MID, and RIGHT functions cover many common text-cleaning tasks. Regular expressions are not traditionally available through classic Excel formulas.
Use a genuinely messy dataset rather than a clean textbook dataset and try to answer three or four realistic business questions using these formulas. This helps bridge the gap between recognising a formula and knowing when to use it.
25 Excel Formulas Every Data Analyst Uses Every Week