Skip to main content
Albero Academy

Excel Formulas — Foundations

The 15 Excel formulas every analyst needs — IF, SUMIFS, COUNTIFS, XLOOKUP, INDEX/MATCH, dynamic arrays, and more.

Chapter 1Excel16 min readBeginner friendly
  • #Excel
  • #Formulas
  • #Lookups

Excel is still the world's most-used analytics tool. If you can write 15 formulas well, you can solve 90% of analyst day-to-day work. This chapter is those 15.

Cell references — relative, absolute, mixed

ReferenceBehaviour when copied
A1both row and column shift
$A1column locked, row shifts
A$1row locked, column shifts
$A$1both locked

Logical — IF, IFS, AND, OR

Excel
=IF(A2 >= 60, "Pass", "Fail")
=IF(AND(A2>=60, B2>=60), "Pass", "Fail")
-- IFS replaces nested IFs (Excel 2019+)
=IFS(
A2>=90, "A+",
A2>=75, "A",
A2>=60, "B",
TRUE, "C"
)

Aggregates — SUMIFS, COUNTIFS, AVERAGEIFS

Text
-- Sum revenue for North region in Q1 2026
=SUMIFS(D:D, // sum range
A:A, "North", // criteria 1
B:B, ">=2026-01-01", // criteria 2
B:B, "<=2026-03-31") // criteria 3
-- Count orders > ₹1000 in Mumbai
=COUNTIFS(C:C, "Mumbai", D:D, ">1000")
-- Average order value per region
=AVERAGEIFS(D:D, A:A, "South")

Lookups — XLOOKUP, INDEX/MATCH

XLOOKUP (Excel 2021+) replaces both VLOOKUP and HLOOKUP. Use it whenever you can.

Text
-- Modern: XLOOKUP
=XLOOKUP(
A2, // what to find
Products[ID], // where to look
Products[Price], // what to return
"Not found" // if missing
)
-- Backward search — find the LAST match
=XLOOKUP(A2, Products[ID], Products[Price], , 0, -1)
-- Legacy systems: INDEX/MATCH
=INDEX(Products[Price], MATCH(A2, Products[ID], 0))

Dynamic arrays — FILTER, UNIQUE, SORT

Excel 2021+ introduced spilling formulas. One formula → many cells.

Text
-- All orders > ₹10,000 — spills down automatically
=FILTER(Orders, Orders[Amount] > 10000)
-- Distinct cities
=UNIQUE(Orders[City])
-- Sorted by revenue desc
=SORT(Orders, 4, -1)
-- Top 5 products by revenue
=TAKE(SORT(Products, 2, -1), 5)

Text functions

Text
=LEFT("Albero", 3) // "Alb"
=RIGHT("Albero", 3) // "ero"
=MID("Albero Academy", 8, 7) // "Academy"
=LEN("Albero") // 6
=UPPER("hello") / LOWER("WORLD") / PROPER("aanya kapoor")
=TRIM(" spaces ") // "spaces"
=TEXTSPLIT("a,b,c", ",") // {"a","b","c"}
=TEXTJOIN(",", TRUE, A1:A10)

Key takeaways

  1. 01F4 cycles through reference types — memorise it.
  2. 02IFS replaces nested IFs; SWITCH handles equality chains.
  3. 03SUMIFS/COUNTIFS/AVERAGEIFS take ANY number of criteria.
  4. 04XLOOKUP > VLOOKUP — bi-directional, with a default value, no column number.
  5. 05Dynamic arrays (FILTER, UNIQUE, SORT) replace pivot tables for many use cases.
  6. 06TEXTSPLIT and TEXTJOIN make string surgery painless.