Excel formula reference cell above last cell in range -
i'm trying set formula automatically calculate % change between added cell in range (which includes #n/a values @ bottom of range) , cell above it. i've been using formula obtain value of bottom not #n/a cell:
lookup(2, 1/not(isna(g8:g19)), g8:g19)
which working fine. first thought on how reach cell above use offset, so:
offset(lookup(2, 1/not(isna(g8:g19)), g8:g19), -1, 0)
but gives me error, think because lookup function returning value in cell rather cell reference. how should format function return value of cell above last non-n/a cell in range?
try alternative seeking last non-error, numerical value in column g.
=index(g:g, match(1e99, g:g))/index(g:g, match(1e99, g:g)-1)
using match find last number in column returns row number index. simple matter subtract 1 row number.
Comments
Post a Comment