WorkbookLogic

A documented library of spreadsheet logic

Stop rebuilding the same spreadsheet logic.

Find reusable formulas and spreadsheet building blocks. See how the inputs, calculations and checks work, then adapt the .xlsx file to your own spreadsheet.

Read every explanation free. Create a free account to download; some files require credits.

Workbook Preview
Weighted Average, Formula Review
See how SUMPRODUCT, SUM, AVERAGE, and TRANSPOSE each support the pattern.
Column vectors, editableFunction review
TrancheBalance ($)RateWeighted interest ($)StepFormula syntaxResultInterpretation
Facility A$500,0005.0%$25,000SUMPRODUCT numerator=SUMPRODUCT($B$12:$B$16,$C$12:$C$16)$160,000Weighted numerator
Facility B$750,0006.0%$45,000SUM denominator=SUM($B$12:$B$16)$2,500,000Total weight
Notes$1,000,0007.0%$70,000Normalized weighted average=SUMPRODUCT($B$12:$B$16,$C$12:$C$16)/SUM($B$12:$B$16)6.4%Blended rate
Revolver$250,0008.0%$20,000AVERAGE contrast=AVERAGE($C$12:$C$16)7.0%Equal weighting
Undrawn option$09.0%$0
TRANSPOSE, align a horizontal weight vector
Horizontal balances$500,000$750,000$1,000,000$250,000$0
Aligned weighted average=SUMPRODUCT(TRANSPOSE($G$19:$K$19),$C$12:$C$16)/SUM($G$19:$K$19)6.4%
Reliability checks
Normalized result returns the expected 6.4%OK
SUMPRODUCT numerator ties to the visible row-level contributionsOK
TRANSPOSE orientation result ties to the column-vector resultOK
See the worked example: Calculate a Weighted Average

Start with the piece you need

Understand a function, solve a calculation, reuse a working tool, or explore a complete workbook. Choose the scope that fits your task.

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.

Understand the logic before you download

  • Read the inputs, calculations and checks
  • Follow related functions and formulas
  • Download an Excel .xlsx example to adapt
  • Human review before publication

Find the next piece for your spreadsheet.

Explore the library and read the explanations for free. Create a free account when you’re ready to download.