Excel Formulas List for Data Analysts, Grouped by Job

8 min read

A data analyst’s working set of Excel formulas is about 40 functions, and they fall into six jobs: looking values up (XLOOKUP, INDEX MATCH), cleaning text (TRIM, PROPER, TEXTBEFORE), working with dates (EOMONTH, EDATE, DATEDIF), adding up by condition (SUMIFS, COUNTIFS, MAXIFS), catching errors (IFNA, IFERROR, ISNUMBER) and pulling out lists (UNIQUE, FILTER, SORTBY). Every one of them is below, applied to the same sheet, with the result it returns.

Most formula lists are sorted alphabetically or by function category. That is fine as a reference, but it is not how the work arrives. You never think “I need a text function”; you think “these names are a mess”. So this list is organised by the problem in front of you.

How this list differs from a basic formulas list

If you need the basics first, such as SUM, AVERAGE, COUNT, ROUND and how a formula is written, start with our guide to Excel for data analysis, which covers the features of Excel and the core formulas with their syntax. This page assumes those and goes further: the functions an analyst reaches for when cleaning and summarising real exports, including the newer ones that most lists still leave out.

Several of them need a recent version of Excel. Each section says which, and there is a version table at the end.

The sheet used throughout

The examples use the loan book of a two-wheeler lender in Pune, exported from its loan system. Six loans, six columns, on a sheet named Loans in A1:F7. Cell H1 holds a fixed reporting date of 12 November 2026, so the date results below do not change when you open the file tomorrow.

A: loan_id B: customer C: branch D: disbursed_on E: amount F: status
PNQ-0412 rahul deshmukh, with a leading space and a double space Hadapsar 2026-03-24 85000 Active
PNQ-0413 PRIYA KULKARNI Kothrud 2026-05-19 112000 Closed
PNQ-0414 amit shinde, with a trailing space Hadapsar 2026-06-02 64000 Overdue
PNQ-0415 Sneha Patil Wakad 2026-07-27 98000 Active
PNQ-0416 vikram jadhav Kothrud 2026-08-14 76000 Overdue
PNQ-0417 Neha Joshi Wakad 2026-09-30 120000 Active

Amounts are in rupees. The names column is deliberately dirty, because exports always are.

Job 1: looking up a value from another table

Lookups bring a value from one table into another using a shared key. Here, a second sheet called Branches lists each branch with its code: Hadapsar is HDP-01, Kothrud is KTD-02 and Wakad is WKD-03, in A2:B4.

Formula What it does Example Result
XLOOKUP Finds a key in one column, returns the matching value from another =XLOOKUP(C2, Branches!A2:A4, Branches!B2:B4) HDP-01
XLOOKUP with a fallback Same, with a message for a missing key =XLOOKUP(“Baner”, Branches!A2:A4, Branches!B2:B4, “No code”) No code
VLOOKUP Finds a key in a table’s first column, returns a column by number =VLOOKUP(C3, Branches!A2:B4, 2, FALSE) KTD-02
INDEX with MATCH Finds the key’s position, then returns the value at that position =INDEX(Branches!B2:B4, MATCH(C4, Branches!A2:A4, 0)) HDP-01
MATCH Returns the position of a value in a list =MATCH(“Wakad”, Branches!A2:A4, 0) 3
XMATCH MATCH with exact match as the default =XMATCH(“Wakad”, Branches!A2:A4) 3

XLOOKUP and XMATCH need Microsoft 365 or Excel 2021 onwards. VLOOKUP and INDEX MATCH work everywhere. Which to use, approximate-match slab lookups, two-way lookups and the reasons a lookup returns #N/A are covered in full in our lesson on VLOOKUP, XLOOKUP and INDEX MATCH, part of this Excel series.

Job 2: cleaning text

Names typed by hand and codes that pack two facts into one string are the bulk of cleaning work. These formulas fix them without retyping anything.

Formula What it does Example on the loan book Result
TRIM Removes leading and trailing spaces, and squeezes double spaces to one =TRIM(B2) rahul deshmukh
PROPER Capitalises the first letter of each word =PROPER(TRIM(B2)) Rahul Deshmukh
UPPER and LOWER Converts case =UPPER(C2) HADAPSAR
LEN Counts characters, spaces included =LEN(B2) 16
LEN after TRIM Shows how many stray spaces there were =LEN(TRIM(B2)) 14
LEFT First characters of a value =LEFT(A2, 3) PNQ
RIGHT with VALUE Last characters, turned into a number =VALUE(RIGHT(A2, 4)) 412
MID with FIND Characters after a separator, in any version =MID(A2, FIND(“-“, A2)+1, 4) 0412
TEXTBEFORE Everything before a separator =TEXTBEFORE(PROPER(TRIM(B2)), ” “) Rahul
TEXTAFTER Everything after a separator =TEXTAFTER(A2, “-“) 0412
TEXTSPLIT Splits one cell across several =TEXTSPLIT(PROPER(TRIM(B2)), ” “) Rahul and Deshmukh in two cells
SUBSTITUTE Replaces one piece of text with another =SUBSTITUTE(A2, “PNQ”, “PUN”) PUN-0412
CLEAN Removes non-printing characters that come in from other systems =CLEAN(B2) Same text, minus hidden characters
Ampersand Joins values into one string =A2&” / “&C2 PNQ-0412 / Hadapsar
TEXTJOIN Joins a range with a separator, skipping blanks =TEXTJOIN(“, “, TRUE, Branches!A2:A4) Hadapsar, Kothrud, Wakad

Two notes. TRIM is the single most useful cleaning formula, because a trailing space makes “Hadapsar ” a different branch from “Hadapsar” in every SUMIFS and lookup. And TEXTBEFORE, TEXTAFTER and TEXTSPLIT exist only in Microsoft 365 and Excel 2024; in older versions use LEFT, MID and FIND, as in the MID row. Google Sheets has SPLIT in place of TEXTSPLIT.

Job 3: working with dates

Excel stores a date as a whole number of days, so you can subtract one from another and get a gap in days. The date functions handle the parts that plain subtraction cannot, such as month ends and India’s April to March financial year.

Formula What it does Example Result
Subtraction Days between two dates =$H$1-D2 233
DATEDIF Whole months, or years, between two dates =DATEDIF(D2, $H$1, “m”) 7
EOMONTH Last day of the month, or of a month before or after =EOMONTH(D2, 0) 2026-03-31
EDATE Same day a set number of months later, such as an EMI date =EDATE(D2, 1) 2026-04-24
TEXT Formats a date as text, for labels =TEXT(D2, “mmm-yy”) Mar-26
WEEKDAY Day of the week, with type 2 making Monday 1 =WEEKDAY(D2, 2) 2, a Tuesday
NETWORKDAYS Working days between two dates, with an optional holiday list =NETWORKDAYS(DATE(2026,11,2), DATE(2026,11,13)) 10
DATE Builds a date from year, month and day =DATE(2026, 4, 1) 2026-04-01
Financial year end The year in which the April to March year ends =YEAR(D2)+(MONTH(D2)>=4) 2026
Financial year label Writes the year as Indian reports do =”FY “&(YEAR(D2)-(MONTH(D2)<4))&”-“&RIGHT(YEAR(D2)+(MONTH(D2)>=4), 2) FY 2025-26
Financial quarter Q1 is April to June =INT(MOD(MONTH(D2)-4, 12)/3)+1 4

The financial-year formulas work because a TRUE inside arithmetic counts as 1 and FALSE as 0. A loan disbursed in March 2026 belongs to FY 2025-26 and the fourth quarter; the one in row 3, disbursed in May, returns FY 2026-27 and quarter 1. Every Indian finance team needs this, and it is missing from almost every formula list.

DATEDIF is undocumented in Excel’s function list and does not autocomplete, but it works in every version and in Google Sheets. Use the “m” unit for whole months and “y” for whole years.

Job 4: adding up, counting and averaging by condition

This is the group a manager’s questions land on: how much, how many, by branch, by status. The IFS family takes the range to calculate first, then pairs of criteria range and criteria.

Formula Question it answers Example Result
SUMIFS Total lent by the Kothrud branch =SUMIFS(E2:E7, C2:C7, “Kothrud”) 188000
SUMIFS, two conditions Active loans at Hadapsar =SUMIFS(E2:E7, C2:C7, “Hadapsar”, F2:F7, “Active”) 85000
SUMIFS on a date Disbursed in FY 2026-27, from 1 April 2026 =SUMIFS(E2:E7, D2:D7, “>=”&DATE(2026,4,1)) 470000
COUNTIFS Number of overdue loans =COUNTIFS(F2:F7, “Overdue”) 2
COUNTIFS on a number Loans of 1 lakh rupees or more =COUNTIFS(E2:E7, “>=100000”) 2
AVERAGEIFS Average size of an active loan =AVERAGEIFS(E2:E7, F2:F7, “Active”) 101000
MAXIFS Largest loan at Wakad =MAXIFS(E2:E7, C2:C7, “Wakad”) 120000
MINIFS Smallest overdue loan =MINIFS(E2:E7, F2:F7, “Overdue”) 64000
SUMPRODUCT Overdue amount, as a weighted sum =SUMPRODUCT((F2:F7=”Overdue”)*E2:E7) 140000

Criteria with an operator go in quotes, and a cell reference or date is joined on with an ampersand, as in “>=”&DATE(2026,4,1). Writing “>=DATE(2026,4,1)” inside the quotes is a common mistake and quietly matches nothing.

MAXIFS and MINIFS need Excel 2019 or later. SUMPRODUCT works in every version and handles conditions SUMIFS cannot express, such as a condition on a calculated value. Once you are writing more than three or four of these, a pivot table usually does the same job in less time.

Job 5: catching errors and checking the data

Before anyone sees a number, an analyst checks that the inputs are what they appear to be. These formulas find the problems and stop errors spreading through a report.

Formula What it does Example Result
IFNA Replaces only the #N/A a missing lookup produces =IFNA(VLOOKUP(“Baner”, Branches!A2:B4, 2, FALSE), “No code”) No code
IFERROR Replaces any error with a value =IFERROR(VALUE(RIGHT(A2, 4)), “Bad ID”) 412
ISNUMBER TRUE if a cell holds a real number, not text that looks like one =ISNUMBER(E2) TRUE
ISBLANK TRUE if a cell is empty =ISBLANK(D2) FALSE
COUNTIF as a duplicate flag TRUE if the loan ID appears more than once =COUNTIF($A$2:$A$7, A2)>1 FALSE
Reconciliation Totals by status should add back to the grand total =SUM(E2:E7)-SUM(SUMIFS(E2:E7, F2:F7, {“Active”,”Closed”,”Overdue”})) 0

The reconciliation row is worth copying into every report. If it returns anything other than 0, a status has a typo or a stray space and some loans are falling out of your totals.

Prefer IFNA to IFERROR around lookups. IFERROR also hides genuine mistakes, such as a misspelt function name, so you can publish a wrong number without ever seeing the error.

Job 6: pulling out lists

The dynamic array functions return a whole list that spills into the cells below. They replace a lot of copying, pasting and Remove Duplicates, and they update when the data changes.

Formula What it does Example Result
UNIQUE Distinct values in a range =UNIQUE(C2:C7) Hadapsar, Kothrud, Wakad
COUNTA with UNIQUE How many distinct values =COUNTA(UNIQUE(C2:C7)) 3
FILTER Rows that meet a condition =FILTER(A2:A7, F2:F7=”Overdue”) PNQ-0414, PNQ-0416
FILTER, two conditions Overdue loans above 70,000 rupees =FILTER(A2:A7, (F2:F7=”Overdue”)*(E2:E7>70000)) PNQ-0416
SORT Sorts a list =SORT(UNIQUE(C2:C7)) Hadapsar, Kothrud, Wakad
SORTBY Sorts one column by another =SORTBY(A2:A7, E2:E7, -1) PNQ-0417, PNQ-0413, PNQ-0415, PNQ-0412, PNQ-0416, PNQ-0414

These need Microsoft 365 or Excel 2021 onwards. In Excel 2019 and older, the closest equivalents are Advanced Filter and Remove Duplicates, done by hand each time. Google Sheets has had UNIQUE, FILTER and SORT for years.

Job 7: labelling rows with logic

The last group decides which bucket a row belongs in. IF handles two outcomes, IFS handles several, and AND and OR combine conditions.

Formula What it does Example Result
IF One value if a test passes, another if not =IF(F2=”Overdue”, “Call”, “”) blank for PNQ-0412
IF with AND Both conditions must hold =IF(AND(F6=”Overdue”, E6>70000), “Escalate”, “”) Escalate
IFS First matching condition wins =IFS(E2>=100000, “Large”, E2>=75000, “Medium”, TRUE, “Small”) Medium
SWITCH Maps exact values to labels =SWITCH(F3, “Active”, “A”, “Closed”, “C”, “Overdue”, “O”) C

Across all six loans, the IFS row returns Medium, Large, Small, Medium, Medium and Large. IFS and SWITCH need Excel 2019 or later. Nested IF, the order conditions must go in, and how to avoid a ten-level formula are covered in our IF formula lesson, coming next in this series.

Which version you need

A formula that works on your laptop shows #NAME? on a colleague’s older Excel. Check this table before you send a workbook out.

Formulas Excel 2016 Excel 2019 Excel 2021 Microsoft 365 and Excel 2024
VLOOKUP, INDEX, MATCH, SUMIFS, COUNTIFS, DATEDIF, EDATE, EOMONTH, IFERROR, IFNA, SUMPRODUCT Yes Yes Yes Yes
IFS, SWITCH, MAXIFS, MINIFS, TEXTJOIN, CONCAT No Yes Yes Yes
XLOOKUP, XMATCH, UNIQUE, FILTER, SORT, SORTBY No No Yes Yes
TEXTBEFORE, TEXTAFTER, TEXTSPLIT No No No Yes

Mistakes that break formulas on real data

Numbers stored as text. An export can bring amounts in as text. SUM skips them without a warning and the total comes out low. ISNUMBER finds them, and VALUE or Text to Columns fixes them.

Ranges of different sizes in SUMIFS. If the sum range is E2:E7 and a criteria range is C2:C8, SUMIFS returns #VALUE!. Every range must be the same shape.

Ranges without dollar signs, copied down. A formula that works in row 2 and drifts by row 5 is missing dollar signs. Our guide to absolute and relative cell referencing explains when to lock and what F4 does.

Hiding errors too early. Wrapping everything in IFERROR from the start means you never see the rows that need fixing. Add it last.

Frequently asked questions

What are the most important Excel formulas for a data analyst?

XLOOKUP or INDEX MATCH for lookups, SUMIFS and COUNTIFS for conditional totals, TRIM and PROPER for cleaning text, EOMONTH and DATEDIF for dates, IF and IFS for labels, and IFNA for handling missing values. In Microsoft 365, add UNIQUE and FILTER. With those and pivot tables, you can do most day-to-day analysis work in Excel.

How many formulas are there in Excel?

Microsoft 365 has around 500 worksheet functions, and the number grows with updates. An analyst uses perhaps 40 of them regularly. Learning those 40 well matters far more than knowing the rest exist.

What is the difference between SUMIF and SUMIFS?

SUMIF takes a single condition and puts the sum range last, while SUMIFS takes one or more conditions and puts the sum range first. SUMIFS does everything SUMIF does, so most analysts use SUMIFS for everything to keep one argument order.

How do I get the financial year from a date in Excel?

For India’s April to March year, =YEAR(A2)+(MONTH(A2)>=4) returns the year in which the financial year ends, so a date in May 2026 returns 2027, meaning FY 2026-27. The comparison returns TRUE or FALSE, which Excel counts as 1 or 0 in arithmetic. Build a label such as FY 2026-27 by joining the start year and the last two digits of the end year.

Which Excel formulas do not work in older versions?

XLOOKUP, FILTER, UNIQUE, SORT, SORTBY and XMATCH need Microsoft 365 or Excel 2021 onwards. TEXTBEFORE, TEXTAFTER and TEXTSPLIT need Microsoft 365 or Excel 2024. IFS, MAXIFS, MINIFS, SWITCH and TEXTJOIN need Excel 2019 onwards. Older versions show #NAME? for any of these.

Do Excel formulas work in Google Sheets?

Almost all of the formulas on this page work in Google Sheets with the same names and arguments, including XLOOKUP, SUMIFS, UNIQUE and FILTER. The main gaps are TEXTBEFORE, TEXTAFTER and TEXTSPLIT, where SPLIT and REGEXEXTRACT in Sheets do the same job.

Know which formula the problem needs

A list helps you remember a function exists. The skill employers test, in an Excel interview or on day one of a job, is looking at a messy export and knowing which of these the problem needs, in what order.

SkilloVilla’s Excel: Beginner to Advanced course covers formulas, named ranges, conditional, lookup, text and date functions, data cleaning techniques, auditing a workbook, pivot tables and interactive dashboards, taught in live classes by working professionals. If you want Excel inside a full analyst programme with SQL, Python and placement support, see the Data Analytics with Python track.

VLOOKUP, XLOOKUP and INDEX MATCH in Excel, With Examples

VLOOKUP in Excel explained with examples, plus XLOOKUP and INDEX MATCH: syntax, which to use, two-way lookups and why a lookup returns #N/A.
SkilloVilla Team
7 min read

Percentage Formula in Excel: Share, Change, Marks and GST

The percentage formula in Excel for share of total, percentage change, increase or decrease by a percent, marks percentage and GST, with worked examples.
SkilloVilla Team
6 min read

Excel Shortcuts: The Full List for Windows and Mac

Excel shortcuts for Windows and Mac in one list: moving, selecting, formulas, formatting and data, plus the 15 that save analysts the most time.
SkilloVilla Team
9 min read

Leave a Reply