PPRuNe Forums - View Single Post - Lookup function - Excel
View Single Post
Old 14th Aug 2005, 14:20
  #7 (permalink)  
JollyNomad
 
Join Date: Mar 2002
Location: Bahrain
Posts: 3
Likes: 0
Received 0 Likes on 0 Posts
Greetings

If anyone still cares, below is a way of achieving this with a formula. I am sure it can be improved/shortened

Notes:

This is an array formula so when after is has been typed or pasted into the formula bar you must press CTRL+SHIFT+ENTER and not just Enter! If you do it wont work. You'll notice after you have entered it that it is now enclosed by braces - {} basically, this allows for loops. Unfurtuately you can't just type them.
It is designed to work with DTs sheet fo should be placed in K3. After that just drag it down.

=IF((MAX((B3:J3<>"")*COLUMN(B3:J3)))-COLUMN(B3:J3)+1 > 1,INDIRECT(ADDRESS(MAX((B3:J3<>"")
*ROW(B$2:J$2)),COLUMN(B3:J3)+(MAX((B3:J3<>"")*COLUMN(B3:J3)) )-COLUMN(B3:J3),4)),"")

Apologies if I am just repeating your answer DB

Hth

Cheers
JollyNomad is offline