• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

I need help for vlookup

ThrottleWorks

Excel Ninja
Sir,


I need help for vlookup, I have a table, column A has names & column B has locations.

The problem is I want to populate latest location for the name, say for example,


Sachin is populated three times in the column A & location is Mumbai Pune Delhi.

I want a formula which will give me the latest location for the Sachin which is Delhi.

I cannot sort the formula & cannot use macro in the file.


Can anyone please help me in this.
 
Hi sachinbizboy,


Besides Luke's formula this will also work, assuming your data in column A & B:


Code:
=OFFSET(INDIRECT("A"&MATCH("Sachin",A:A,0)),COUNTIF(A:A,"Sachin")-1,1)


Edit: Sorry Luke & sachinbizboy, it will NOT work for non-contiguous ranges of "Sachin", For Contiguous it will work. sorry for interruption!


Regards!

Faseeh
 
Back
Top