lookup for last value in a row

D

driller

Hello again,

I forget the formula to find tha last value in a row

A B C D E F=RESULT
AA N1 N2 N2
BB N3 N13 N13
CC N01 N02 N06 N06
DD N8 N11 N11
EE N6 N9 N9

looking for a formula on column F.

thanks in advance.
 
B

Bob Phillips

=LOOKUP(2,1/(A1:E1<>""),A1:E1)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
B

Bob Phillips

No need for the *1

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
D

driller

my wrong,

i forgot to place that the date shall be in the result as well.
I have a long list to paved by the formula.

A B C D E F=RESULT
DATE 2-Jan-08 14-Jan-08 22-Jan-08 1-Feb-08
AA N1 N2 N2 (22-Jan-08)
BB N3 N13 N13 (22-Jan-08)
CC N01 N02 N06 N06 (1-Feb-08)
DD N8 N11 N11 (22-Jan-08
EE N6 N9 N9 (14-Jan-08)

thanks again
--
regards,



Bob Phillips said:
=LOOKUP(2,1/(A1:E1<>""),A1:E1)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
B

Bob Phillips

If it is all text

=INDEX($A$1:$E$1,MATCH(REPT("z",20),A2:E2,1))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



driller said:
my wrong,

i forgot to place that the date shall be in the result as well.
I have a long list to paved by the formula.

A B C D E F=RESULT
DATE 2-Jan-08 14-Jan-08 22-Jan-08 1-Feb-08
AA N1 N2 N2 (22-Jan-08)
BB N3 N13 N13 (22-Jan-08)
CC N01 N02 N06 N06 (1-Feb-08)
DD N8 N11 N11 (22-Jan-08
EE N6 N9 N9 (14-Jan-08)

thanks again
 
M

Mike H

Hi,

It's a bit long winded now you want the date as well

=INDEX(A2:E2,MATCH(REPT("z",20),A2:E2,1)) &"
["&TEXT(INDEX($A$1:$E$1,MATCH(INDEX(A2:E2,MATCH(REPT("z",20),A2:E2,1)),A2:E2,FALSE)),"DD/MM/YYYY")&"]"

Mike

driller said:
my wrong,

i forgot to place that the date shall be in the result as well.
I have a long list to paved by the formula.

A B C D E F=RESULT
DATE 2-Jan-08 14-Jan-08 22-Jan-08 1-Feb-08
AA N1 N2 N2 (22-Jan-08)
BB N3 N13 N13 (22-Jan-08)
CC N01 N02 N06 N06 (1-Feb-08)
DD N8 N11 N11 (22-Jan-08
EE N6 N9 N9 (14-Jan-08)

thanks again
 
D

driller

your formula works again. many thanks today().

--
regards,



Mike H said:
Hi,

It's a bit long winded now you want the date as well

=INDEX(A2:E2,MATCH(REPT("z",20),A2:E2,1)) &"
["&TEXT(INDEX($A$1:$E$1,MATCH(INDEX(A2:E2,MATCH(REPT("z",20),A2:E2,1)),A2:E2,FALSE)),"DD/MM/YYYY")&"]"

Mike

driller said:
my wrong,

i forgot to place that the date shall be in the result as well.
I have a long list to paved by the formula.

A B C D E F=RESULT
DATE 2-Jan-08 14-Jan-08 22-Jan-08 1-Feb-08
AA N1 N2 N2 (22-Jan-08)
BB N3 N13 N13 (22-Jan-08)
CC N01 N02 N06 N06 (1-Feb-08)
DD N8 N11 N11 (22-Jan-08
EE N6 N9 N9 (14-Jan-08)

thanks again
 
M

Mike H

Your welcome and thanks for the feedback

driller said:
your formula works again. many thanks today().

--
regards,



Mike H said:
Hi,

It's a bit long winded now you want the date as well

=INDEX(A2:E2,MATCH(REPT("z",20),A2:E2,1)) &"
["&TEXT(INDEX($A$1:$E$1,MATCH(INDEX(A2:E2,MATCH(REPT("z",20),A2:E2,1)),A2:E2,FALSE)),"DD/MM/YYYY")&"]"

Mike

driller said:
my wrong,

i forgot to place that the date shall be in the result as well.
I have a long list to paved by the formula.

A B C D E F=RESULT
DATE 2-Jan-08 14-Jan-08 22-Jan-08 1-Feb-08
AA N1 N2 N2 (22-Jan-08)
BB N3 N13 N13 (22-Jan-08)
CC N01 N02 N06 N06 (1-Feb-08)
DD N8 N11 N11 (22-Jan-08
EE N6 N9 N9 (14-Jan-08)

thanks again
--
regards,



:

=LOOKUP(2,1/(A1:E1<>""),A1:E1)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



Hello again,

I forget the formula to find tha last value in a row

A B C D E F=RESULT
AA N1 N2 N2
BB N3 N13 N13
CC N01 N02 N06 N06
DD N8 N11 N11
EE N6 N9 N9

looking for a formula on column F.

thanks in advance.
 
D

driller

thanks Sir Bob, i have real dates to be lookup. I use Mike's formula.

--
regards,



Mike H said:
Hi,

It's a bit long winded now you want the date as well

=INDEX(A2:E2,MATCH(REPT("z",20),A2:E2,1)) &"
["&TEXT(INDEX($A$1:$E$1,MATCH(INDEX(A2:E2,MATCH(REPT("z",20),A2:E2,1)),A2:E2,FALSE)),"DD/MM/YYYY")&"]"

Mike

driller said:
my wrong,

i forgot to place that the date shall be in the result as well.
I have a long list to paved by the formula.

A B C D E F=RESULT
DATE 2-Jan-08 14-Jan-08 22-Jan-08 1-Feb-08
AA N1 N2 N2 (22-Jan-08)
BB N3 N13 N13 (22-Jan-08)
CC N01 N02 N06 N06 (1-Feb-08)
DD N8 N11 N11 (22-Jan-08
EE N6 N9 N9 (14-Jan-08)

thanks again
 
R

ryguy7272

Active Worksheet:
=LOOKUP(10000000000,F:F)

Another Worksheet:
=LOOKUP(10000000000,'Sheet1'!F:F)


Regards,
Ryan---
--
RyGuy


driller said:
thanks Sir Bob, i have real dates to be lookup. I use Mike's formula.

--
regards,



Mike H said:
Hi,

It's a bit long winded now you want the date as well

=INDEX(A2:E2,MATCH(REPT("z",20),A2:E2,1)) &"
["&TEXT(INDEX($A$1:$E$1,MATCH(INDEX(A2:E2,MATCH(REPT("z",20),A2:E2,1)),A2:E2,FALSE)),"DD/MM/YYYY")&"]"

Mike

driller said:
my wrong,

i forgot to place that the date shall be in the result as well.
I have a long list to paved by the formula.

A B C D E F=RESULT
DATE 2-Jan-08 14-Jan-08 22-Jan-08 1-Feb-08
AA N1 N2 N2 (22-Jan-08)
BB N3 N13 N13 (22-Jan-08)
CC N01 N02 N06 N06 (1-Feb-08)
DD N8 N11 N11 (22-Jan-08
EE N6 N9 N9 (14-Jan-08)

thanks again
--
regards,



:

=LOOKUP(2,1/(A1:E1<>""),A1:E1)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



Hello again,

I forget the formula to find tha last value in a row

A B C D E F=RESULT
AA N1 N2 N2
BB N3 N13 N13
CC N01 N02 N06 N06
DD N8 N11 N11
EE N6 N9 N9

looking for a formula on column F.

thanks in advance.
 

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

Similar Threads

Number Lookup in Matrix 12
How to remove empty cells from Listbox 4
Help with Code 3
2 Columns total division 4
Difficult formula! Need help quick! 4
Value lookup 7
sumif 1
How to do a 2-dimensional lookup? 0

Top