Finding the first and last entry in a column

G

Guest

In a column (array $B$7:$B$54) I have entered all numbers 1 from B12:B24. I
would like a formula which recognises the first entry (on B12) and returns a
value from A12.

Also I would like a formula which recognises the last entry of the entries
(onB24) and returns the value from A24.
 
B

Bob Phillips

=INDEX(A7:A54,MIN(IF(B7:B54<>"",ROW(B7:B54)))-MIN(ROW(B7:B54))+1)

=INDEX(A7:A54,MAX(IF(B7:B54<>"",ROW(B7:B54)))-MIN(ROW(B7:B54))+1)

both are array formulae, so commit with Ctrl-Shift-Enter, not just Enter

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)
 
T

T. Valko

In a column (array $B$7:$B$54) I have entered all numbers 1 from B12:B24.

If I understand:

For the first entry:

=INDEX(A7:A54,MATCH(1,B7:B54,0))

For the last entry:

=INDEX(A7:A54,MATCH(2,B7:B54))

Or:

=INDEX(A7:A54,MATCH(10^10,B7:B54))

Biff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top