Last value Cell/Row

  • Thread starter Thread starter an
  • Start date Start date
A

an

Helo!

I have:

A B C D
x
n k
w n p
f j y z

I need to obtain, in E column, the value of last cells not
null in row. Or:

A B C D E
x x
n k k
w n p p
f j y z z

Is it possible in Excel?
Thanks in advance.
an
 
Hi
if you only have text entries in your range (no numbers) you may try
the following in E1
=HLOOKUP(REPT("z",255),A1:D1,1)
copy down
 
An,

Try this then

=INDEX(A2:D2,1,MAX(IF(A2:D2<>"",COLUMN(A2:D2)))-COLUMN(A2:D2)+1)

it's an array formula, so commit with Ctrl-Shift-Enter

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Or try the following non array formula (though a little bit more
complex)

=INDEX(A1:D1,MAX(IF(ISNUMBER(MATCH(REPT("z",255),A1:D1)),MATCH(REPT("z"
,255),A1:D1),0),IF(ISNUMBER(MATCH(2E+30,A1:D1)),MATCH(2E+30,A1:D1),0)))
 
Back
Top