Excel: Formula To Find Last Valid Cell in a RangeID: Q85234
|
Microsoft Excel can return the value of the last valid cell in a range
of cells using an array formula. The following formula is an example:
=IF(NOT(ISERROR(range)),OFFSET(startcell,COUNT(range)-1,0))
A1: 23
A2: 7
A3: 78
A4:
A5:
A6: =IF(NOT(ISERROR(A1:A5)),OFFSET(A1,COUNT(A1:A5)-1,0))
"Microsoft Excel User's Guide 1," version 4.0, pages 156-157
"Microsoft Excel User's Guide," for Windows or OS/2, version 3.0,
pages 119-120
"Microsoft Excel User's Guide," for the Macintosh, version 3.0, pages
113-114
Additional query words: 3.0 3.00 4.0 4.00 max nonblank non-blank
Keywords :
Version : MACINTOSH:3.0 and 4.0; WINDOWS:3.0 and 4.0
Platform : MACINTOSH WINDOWS
Issue type :
Last Reviewed: July 9, 1999