How do I choose the last nonblank cell in a ROW?

  • Thread starter Thread starter DaChris
  • Start date Start date
D

DaChris

I have a row of sales data by month. I need to create a link in a seperate
worksheet to access the last data in the row. The link must differenate
between 0 as data and a blank cell as no data.
 
Hi,

This returns the last populated cell in row 2 of sheet 1

=LOOKUP(2,1/(Sheet1!2:2>0),Sheet1!2:2)

Mike
 
Something like this array* formula will work.

=OFFSET(A2,0,MIN(IF(ISBLANK(2:2),COLUMN(2:2)))-2)

*Confirm formula using Ctrl+Shift+Enter, not just Enter.
 
Hi,

My previous post reyturns the lat populated cell text or numeric. For
numeric on try

=LOOKUP(6.022*10^23,Sheet1!2:2)

Mike
 
Back
Top