View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default This has me stumped

Hi,

Address of first 1 in range a1:A8

=ADDRESS(MATCH(1,A1:A8),1)

Last 1 in a1:a8 is an array formula

=ADDRESS((MAX((A1:A8=1)*ROW(A1:A8)))-ROW(A1:A8)+1,1)

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.


--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"wild turkey no9" wrote:


Excel 2003 user here. How do i return the cell reference of the first and
last occurences of a 1 in row?

Thanks in anticipation

Kevin