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
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.
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: