The two lists are the same length, read in step; a pair with an empty value or weight is skipped. Weights that add to 0, or lists of different lengths, give empty.
Syntax
weightedAverage(values, weights)Arguments marked ? are optional. An ellipsis (…) allows more arguments.
Try an example
weightedAverage([90, 80], [2, 1])Returns 86.66666666666667 (number).
Change the example note’s properties
Run the expression to see its result here.
Date examples use 9 October 2026, 12:00 UTC. Examples run in your browser using Shelf’s formula engine.
Use it in your library
The example names the sample note’s properties. In the app, the formula editor shows the same example with your library’s own properties. Write a property name with spaces as prop("Target words"). The formula language reference explains values, operators, and lists.