Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=LET(reg,A2:A6,vals,B2:B6,grp,"East",total,SUMIF(reg,grp,vals),cnt,COUNTIF(reg,grp),total/cnt)Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
When the same sub-expression (like a filtered range) appears multiple times in a formula, LET calculates it once and names it. This avoids redundant computation and makes the formula far easier to audit.
Yes — combine LET with HSTACK or VSTACK to output multiple summary metrics (sum, count, average, max) side by side from one formula, then wrap in BYROW or MAP to repeat across groups.
Yes. LET was added to Google Sheets in 2023 with the same syntax as Excel 365.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: