Stop learning formulas in isolation. The fastest way to get better is to apply them to real problems — the kind you face at work. Below are compact, repeatable patterns you can copy, tweak, and ship.
1) Sales: Rolling 3‑Month Revenue by Region
Goal: Sum revenue for the last three full months for a given region.
Data:
- Dates in
A2:A, Region inB2:B, Amount inC2:C
Sales Data with Formulas
Example showing sales data with a SUM formula in the Total column. Hover over the formula cell to see the formula.
fxCells with formulas are highlighted in green
Hover over formula cells to see the formula and highlight referenced cells
Pattern (uses EOMONTH + SUMIFS):
=SUMIFS(
C:C,
A:A, ">="&EOMONTH(TODAY(),-3)+1,
A:A, "<="&EOMONTH(TODAY(),0),
B:B, "North"
)
Why it works:
- Date window is dynamic
- Exact region control
Mini exercise: Change the window to 6 months and compare trends.
2) Finance: Detect Outliers in Expense Claims
Goal: Flag claims that exceed departmental thresholds.
Data:
- Claim amount in
E2:E, Department inD2:D - Threshold table in
J2:K(Department, MaxAmount)
Reliable lookup (prefer XLOOKUP):
=IF(E2 > XLOOKUP(D2, J:J, K:K, 0), "Review", "OK")
Legacy alternative (INDEX/MATCH):
=IF(E2 > INDEX(K:K, MATCH(D2, J:J, 0)), "Review", "OK")
Pitfall: Don’t hardcode limits in formulas — centralize in a table.
3) HR: Headcount, Hires, and Attrition (Monthly)
Goal: Compute starting headcount, hires, exits, and ending headcount per month.
Data:
- HireDate in
B2:B, ExitDate inC2:C(blank if active) - Month label in
F2(e.g., first day of month)
Formulas:
Beginning HC (F2):
=COUNTIFS(B:B, "<="&F2, C:C, ">"&EOMONTH(F2,-1))
Hires in month:
=COUNTIFS(B:B, ">="&F2, B:B, "<="&EOMONTH(F2,0))
Exits in month:
=COUNTIFS(C:C, ">="&F2, C:C, "<="&EOMONTH(F2,0))
Ending HC:
=BeginningHC + Hires - Exits
Tip: Convert to a table and build a clean chart from these four lines.
4) Operations: On‑Time Delivery Rate
Goal: % of orders delivered on or before promised date.
Data:
- Promise in
H2:H, Actual inI2:I
=TEXT(
AVERAGE(--(I2:I1000 <= H2:H1000)),
"0%"
)
Explanation:
--(condition)coerces TRUE/FALSE to 1/0AVERAGEover 1/0 gives the rate
5) Marketing: Merge Clean Campaign Labels
Goal: Build readable labels that ignore blanks.
=TEXTJOIN(" | ", TRUE, Brand, Channel, Region)
Why: TEXTJOIN skips empty parts — far less fragile than long & chains.
6) Customer Support: First‑Response SLA (Hours)
Goal: Calculate hours between ticket created and first response, business‑hours aware (simple version).
Data:
- Created
A2:A, RespondedB2:B
Simple baseline (calendar hours):
=ROUND((B2 - A2) * 24, 1)
Pro tip: Use a working‑hours calendar (holidays + weekends) and SUMPRODUCT over hourly buckets for precise SLAs.
7) Inventory: Next Reorder Date (Dynamic)
Goal: Given daily sales and current stock, estimate reorder date.
Data:
- CurrentStock in
M2, AvgDailySales inN2
=TODAY() + ROUNDUP(M2 / N2, 0)
Add guardrails:
=IFERROR(TODAY() + ROUNDUP(M2 / N2, 0), "Check data")
Patterns You’ll Reuse Everywhere
- Exact matching by default: prefer
XLOOKUPorMATCH(...,0) - Dynamic date windows with
EOMONTHandTODAY() - Robust text building with
TEXTJOIN - Safer logic with
IFSor helper columns instead of deep nesting - Defensive calculations with
IFERRORand typed data
Quick Checklist
- Can this be a table instead of loose ranges?
- Is the date math dynamic and correct across months?
- Are lookups centralized in one source of truth?
- Did I avoid hardcoding business rules?
- Can I validate with a small, hand‑checked sample?
Conclusion
Real productivity comes from repeatable patterns. Save these snippets, adapt them to your datasets, and you’ll move faster with fewer errors — whether you’re in Sales Ops, Finance, HR, or Support.
If you want hands‑on practice, try the exercises in the app that mirror these scenarios.
