Formulas and Functions That Matter

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

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