Find last entry in a row

T

TUF

HI,

I have rows of figures under monthly categories, i.e. Jan, Feb, Mar etc. . ,
there are empty cells within each row (approx 18 columns wide).

What I am trying to get is a formula that reads the last entry in the row
even if there are empty cells on either side of it

Thanks
 
T

T. Valko

Try this:

=IF(COUNT(A1:R1),LOOKUP(1E100,A1:R1),"")

It'll return the rightmost number in the range. If no numbers are present
it'll return a blank.
 
T

TUF

Thanks,

That's seems to have done the trick. Out of curiosity is there a left most
version?

Thanks again
 
T

T. Valko

It's a different technique:

=IF(COUNT(A1:R1),INDEX(A1:R1,MATCH(TRUE,INDEX(A1:R1<>"",0),0)),"")
 

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