# Formulas and Functions That Matter

> Conditional logic, conditional aggregation, text and date functions, and modern dynamic array functions. Free notes, key concepts, resources and a mini project.

Canonical: https://www.internhack.in/roadmaps/tracks/data-analyst/spreadsheet-formulas
Last updated: 2026-11-28

Conditional logic, conditional aggregation, text and date functions, and modern dynamic array functions.

Beginner · about 6 hours · difficulty 2/5

Learn first: [Spreadsheet Foundations and Good Structure](https://www.internhack.in/roadmaps/tracks/data-analyst/spreadsheet-foundations)

You do not need to memorise hundreds of functions. A core set of around 30 covers most real work.

### The essential families

- **Logic**: `IF`, `IFS`, `AND`, `OR`, `IFERROR`. Keep nesting shallow; use `IFS` or a lookup table instead of five nested IFs.
- **Conditional aggregation**: `SUMIFS`, `COUNTIFS`, `AVERAGEIFS`, `MAXIFS`. These answer most "total by segment" questions without a pivot.
- **Text**: `LEFT`, `RIGHT`, `MID`, `LEN`, `TRIM`, `UPPER`, `TEXTSPLIT`, `TEXTJOIN`, `SUBSTITUTE`.
- **Dates**: `TODAY`, `EOMONTH`, `EDATE`, `DATEDIF`, `WEEKDAY`, `NETWORKDAYS`. Remember dates are just numbers under the hood.
- **Dynamic arrays** (Excel 365 and Sheets): `FILTER`, `SORT`, `UNIQUE`, `SEQUENCE`. One formula spills into many cells.
- **LET and LAMBDA**: name intermediate results inside a formula for readability.

### Writing formulas you can trust

Build complex formulas in steps using helper columns, check each piece, then combine. Use Evaluate Formula (Excel) to step through calculations. Test with a row where you know the answer by hand.

**Pitfalls:** `SUMIF` on numbers stored as text silently returns 0; `IFERROR` that hides real problems; volatile functions like `INDIRECT` and `OFFSET` slowing big workbooks. Move on when you can compute a segmented summary (e.g. revenue by region and month) using only SUMIFS and dynamic arrays.

## Key concepts

- **IF, IFS, AND, OR, IFERROR**
- **SUMIFS, COUNTIFS, AVERAGEIFS**
- **Text functions and TEXTSPLIT**
- **Date functions**
- **FILTER, SORT, UNIQUE dynamic arrays**
- **LET and LAMBDA**
- **Formula auditing and Evaluate Formula**
- **Sheets QUERY function**: SQL-like syntax inside Google Sheets

## Mini project

Using a sample superstore-style sales dataset, build a sheet that shows revenue, order count and average order value per region per month using only formulas (no pivots).

## Check yourself

A SUMIFS over a column returns 0 even though values are clearly there. What are two likely causes?

## Free resources

- [Excel functions and formulas help](https://support.microsoft.com/en-us/excel) (Microsoft)
- [Google Sheets function list](https://support.google.com/docs/table/25273) (Google)

Previous: [Spreadsheet Foundations and Good Structure](https://www.internhack.in/roadmaps/tracks/data-analyst/spreadsheet-foundations) · Next: [Lookups: XLOOKUP, INDEX/MATCH and Friends](https://www.internhack.in/roadmaps/tracks/data-analyst/spreadsheet-lookups)

## More in Spreadsheets as a Serious Analysis Tool

- [Spreadsheet Foundations and Good Structure](https://www.internhack.in/roadmaps/tracks/data-analyst/spreadsheet-foundations)
- [Formulas and Functions That Matter](https://www.internhack.in/roadmaps/tracks/data-analyst/spreadsheet-formulas)
- [Lookups: XLOOKUP, INDEX/MATCH and Friends](https://www.internhack.in/roadmaps/tracks/data-analyst/spreadsheet-lookups)
- [Pivot Tables and Summary Reporting](https://www.internhack.in/roadmaps/tracks/data-analyst/pivot-tables)
- [Charts and Simple Dashboards in Spreadsheets](https://www.internhack.in/roadmaps/tracks/data-analyst/spreadsheet-charts)
- [Power Query, Data Validation and Repeatable Cleanup](https://www.internhack.in/roadmaps/tracks/data-analyst/power-query-validation)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Data Analyst Roadmap](https://www.internhack.in/roadmaps/tracks/data-analyst)
