WorkbookLogic

Browse the library

Search by function name or the calculation you need. Read the explanation, check the example, and choose a file to adapt.

Functions, formulas, building blocks, or workbooks?
See the difference: from a loan payment to a property analysis

An illustration of each category’s scope; these examples are not a list of available downloads.

Functions
PMT calculates a regular loan payment from an interest rate, number of payments, and loan amount.
Formulas
A monthly mortgage payment formula applies PMT to your loan amount, annual rate, and term in years.
Building blocks
A mortgage repayment schedule shows each payment, interest, principal repaid, and remaining balance over time.
Workbooks
A property investment workbook combines mortgage repayments, purchase costs, rental income, and expenses to assess returns.

A building block can be all you need. The categories describe the scope of the task, not its difficulty or the number of sheets in the file.

100 results

OFFSET Function
=OFFSET(reference, rows, cols, [height], [width])
FunctionLookup and reference

OFFSET Function

OFFSET returns a reference shifted from a starting cell or range. It supports dynamic ranges, but its volatility can make large workbooks slower and harder to audit.

advancedFree download
PMT Function
=PMT(rate, nper, pv, [fv], [type])
FunctionFinancial

PMT Function

PMT calculates the constant payment for a loan or annuity using a fixed interest rate and fixed periods. Correct sign and period conventions are essential.

advancedFree download
REGEXEXTRACT Function
=REGEXEXTRACT(text, pattern, [return_mode], [case_sensitivity])
FunctionDynamic Array

REGEXEXTRACT Function

REGEXEXTRACT extracts text that matches a regular-expression pattern. Optional modes return the first match, all matches, or separate capture groups.

advancedFree download
SEQUENCE Function
=SEQUENCE(rows, [columns], [start], [step])
FunctionDynamic arrays

SEQUENCE Function

SEQUENCE generates an ordered series of numbers as a dynamic array. It replaces manually filled counters and supports configurable dimensions, starting values, and steps.

advancedFree download
SORT Function
=SORT(array, [sort_index], [sort_order], [by_col])
FunctionDynamic Array

SORT Function

The Excel SORT function returns a dynamic sorted copy of a range or array without rearranging the source data.

advancedFree download
SORTBY Function
=SORTBY(array, by_array1, [sort_order1], [by_array2, sort_order2], ...)
FunctionDynamic Array

SORTBY Function

The Excel SORTBY function returns a dynamically sorted array using one or more aligned key ranges, including keys omitted from the output.

advancedFree download
SUMPRODUCT Function
=SUMPRODUCT(array1, [array2], ...)
FunctionMath and aggregation

SUMPRODUCT Function

SUMPRODUCT multiplies corresponding array elements and sums the products. It handles weighted totals and compact conditional calculations without helper columns.

advancedFree download
TEXTSPLIT Function
=TEXTSPLIT(text, col_delimiter, [row_delimiter], [ignore_empty], [match_mode], [pad_with])
FunctionDynamic Array

TEXTSPLIT Function

TEXTSPLIT separates delimited text into a dynamic row, column, or two-dimensional array. Optional arguments control empty items, case matching, and padding.

advancedFree download
UNIQUE Function
=UNIQUE(array, [by_col], [exactly_once])
FunctionDynamic arrays

UNIQUE Function

UNIQUE returns the distinct values or rows from a range as a dynamic array. It is useful for self-updating lists, filters, and exception reports.

advancedFree download
XIRR Function
=XIRR(values, dates, [guess])
FunctionFinancial

XIRR Function

XIRR estimates the annualized return that makes the XNPV of irregularly dated cash flows equal zero. It uses actual day intervals rather than assuming equal periods.

advancedFree download
XLOOKUP Function
=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
FunctionDynamic Array

XLOOKUP Function

The Excel XLOOKUP function finds a value in one range and returns the aligned value from another range, using exact matching by default.

advancedFree download
XMATCH Function
=XMATCH(lookup_value, lookup_array, [match_mode], [search_mode])
FunctionDynamic Array

XMATCH Function

The Excel XMATCH function returns an item's one-based position inside a row or column, with exact matching by default and optional reverse or wildcard searches.

advancedFree download
XNPV Function
=XNPV(rate, values, dates)
FunctionFinancial

XNPV Function

XNPV calculates present value from cash flows that occur on specific dates. It discounts each amount by its actual day distance from the first supplied date.

advancedFree download
Add Months to a Date
EDATE · EOMONTH · IF · DATE
FormulaDate and Time

Add Months to a Date

Move a date forward or backward by whole calendar months with EDATE, while making the distinction between same-day and month-end scheduling explicit for dependable date-based calculations.

intermediate3 credits
Average with Multiple Criteria
AVERAGEIFS · COUNTIFS · SUMIFS · IF · AND · SUM · ROUND
FormulaAggregation

Average with Multiple Criteria

Average values only where every selected condition matches the same row, then reconcile the result to the matching sum and count to expose the included population.

intermediate3 credits
Calculate Compound Annual Growth Rate
RRI · GEOMEAN · IF · ROUND · AND
FormulaFinancial

Calculate Compound Annual Growth Rate

Calculate the constant periodic growth rate connecting a starting value to an ending value, and reconcile the manual CAGR expression with independent RRI and GEOMEAN results.

intermediate3 credits
Calculate a Loan Payment
PMT · IF · ROUND · AND
FormulaFinancial

Calculate a Loan Payment

Calculate the level periodic payment for a fixed-rate loan with consistent rate and term units, explicit cash-flow signs, payment timing, and an optional ending balance assumption.

intermediate3 credits
Calculate a Running Total
SUM · IF
FormulaAggregation

Calculate a Running Total

Turn an ordered series of positive and negative movements into a cumulative balance by locking the first row and allowing the end of the SUM range to move.

beginner3 credits
Calculate Years Between Dates
YEARFRAC · INT · IF · ROUND
FormulaDate and Time

Calculate Years Between Dates

Measure elapsed time as fractional or completed years with YEARFRAC and INT, while keeping the governing day-count basis visible, reproducible, and distinct from simple rounding.

intermediate3 credits
Cap a Percentage Between 0% and 100%
MAX · MIN · IF · AND
FormulaFormula Structure

Cap a Percentage Between 0% and 100%

Keep a numeric percentage inside inclusive lower and upper limits with nested MAX and MIN, while preserving valid in-range values and clearly exposing any resulting adjustment.

intermediate3 credits
Count Rows Where Two Criteria Match
COUNTIFS · SUMPRODUCT · IF · AND · SUM
FormulaAggregation

Count Rows Where Two Criteria Match

Count records only when a text condition and numeric threshold both match the same row, with aligned COUNTIFS ranges and an independent SUMPRODUCT reconciliation for verification.

intermediate3 credits
Create a Dynamic Category Count
SORT · UNIQUE · COUNTIF · IF · COUNTA · SUM
FormulaStructure

Create a Dynamic Category Count

Generate a sorted distinct-category list from changing source data, count each returned category, and reconcile the dynamic summary directly to the full number of source records.

intermediate3 credits
Return the Top N Values Within a Group
FILTER · LARGE · SORT · MIN · COUNTIF · IF · AND
FormulaStructure

Return the Top N Values Within a Group

Return the highest-scoring records within a selected group by calculating a group-specific cutoff, filtering complete source rows, and sorting the dynamic result in descending order.

advanced3 credits
Filter Rows with Multiple Criteria
FILTER · COUNTIFS · IF · AND
FormulaDynamic Arrays

Filter Rows with Multiple Criteria

Return complete records only when a category and numeric threshold both match, using Boolean multiplication to create an AND test inside a dynamic FILTER formula.

intermediate3 credits