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
Need it for your exact data?
Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.
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: