Hi,

if the cells contain numbers, you could try

=MATCH(1,B3:B100,-1)-1

adjust ranges to suit.

hth