Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=LOOKUP(2,1/(B2:F2<>""),B2:F2)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.
LOOKUP requires the lookup array to be sorted ascending. When all values are 1 and none match 2, LOOKUP returns the last element — effectively the last non-blank.
Yes — it returns the last non-blank value regardless of data type.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: