find last match in column using built in functions in excel vba -


I have Excel workbook with many examples of the same client id, so display more than once in a customer list I want to find the last (closest) example of the client ID, so I can see the same line for additional information. The first example shows VLOOKUP, I need the last one.

So, how did I create the last example of a given client id in the function? I do not want to write a macro to do this.

Assume that you want to find the last example of the ID "id_1" Values ​​related to the range B2: B8 , then use:

  = Lookup (2, and 2) in the category  A2: A8  1 / (A2: A8 = "ID_1"), B2: B8)   

 Enter image details here


If you want to return the last intention of the id " id_1 " Use A2: A8 in category, use:

  = MATCH (2,1 With / (A2: A8 = "ID_1"))   +   +  ENTER )  

If you use "id_1" ,

  = LOOKUP (2,1 / (A2: A8 = "Id_1"), the  line number  "), line (A2: A8))    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -