Weighted score
=MMULT({0.3,0.7}, {exam1; exam2}) combines literal weights with stacked scores in one expression.
An array literal is an inline constant array written with curly braces, for example {1,2,3} across columns or {1;2;3} down rows. Semicolons separate rows and commas separate columns in US locale. Array literals feed functions expecting ranges without placing values on the grid first.
Use array literals for small constant sets: weekday labels, scoring weights, boolean masks in one formula, or quick matrix math in advanced models.
Skip large literals in formulas when a Settings tab table is easier for non-technical editors to update without touching formula syntax.
Wrap constants in { } with comma for horizontal and semicolon for vertical stacking per your locale rules.
Combine literals with ranges like {A2:A5; B2:B5} to stack two columns into one array in some patterns.
MMULT, TRANSPOSE, and array-aware functions accept literal matrices for linear algebra shortcuts.
Wrong separator for locale causes
Spilled dynamic arrays reduced need for some literal tricks but literals remain useful for constants.
Document literal meaning in adjacent cell comment when magic numbers appear only inside braces.
=MMULT({0.3,0.7}, {exam1; exam2}) combines literal weights with stacked scores in one expression.
={"Q1","Q2","Q3","Q4"} headers output across columns from one formula for a small report row.
Multiply range by {1,0,1,0} literal pattern where columns alternate inclusion in a calc.
Build this without starting from a blank cell
Use a Better Sheets tool for Array literal, then watch a walkthrough when you want the full pattern.
Watch how Array literal works
ARRAYFORMULA tells Google Sheets to treat a formula as an array operation so one expression fills many cells at once. It is common with IF, VLOOKUP, and math on full columns before dynamic arrays made many patterns automatic. It still matters for legacy sheets and explicit control.
Read guide →Locale controls whether function arguments separate with commas or semicolons and whether decimals use dot or comma. A sheet set to France may expect =SUM(A1;A10) while US expects =SUM(A1,A10). CSV imports and array literals also clash when decimal commas meet comma separators. File > Settings > Locale sets the default behavior for new formulas in that file.
Read guide →Every formula starts with = followed by a function name and arguments in parentheses. Ranges use A1 notation, text sits in quotes, and operators like + and & combine values. Sheets recalculates when inputs change, so syntax errors show as #NAME? or #ERROR! in the cell.
Read guide →#SPILL! means a dynamic array formula tried to fill multiple cells but something blocked the spill range. Another value, merged cells, or a table in the way stops the output. Clear the obstruction or move the formula to open space.
Read guide →Done reading about Array literal?
Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.
Need this once
Jump to a free tool or a single tutorial for this topic.
Learning Sheets for real
Unlock the full library, generators, and templates with membership.