INDEX, MATCH function in VBA
Solved
belba.yahya
Posted messages
117
Status
Member
-
via55 Posted messages 14388 Registration date Status Member Last intervention -
via55 Posted messages 14388 Registration date Status Member Last intervention -
Hello
I would like to convert the INDEX,MATCH function into VBA if possible
I have my workbook attached,
I want to find this formula in VBA
knowing that I have 2 sheets, the first one is the source and the second one, where I want to put the code to get the result
thank you
https://www.cjoint.com/c/IJxqBw305fn
I would like to convert the INDEX,MATCH function into VBA if possible
I have my workbook attached,
I want to find this formula in VBA
knowing that I have 2 sheets, the first one is the source and the second one, where I want to put the code to get the result
thank you
https://www.cjoint.com/c/IJxqBw305fn
4 answers
Hello
1) It is not INDEX MATCH that should be used here since there is only one piece of data, the code, and not two
2) In VBA for the name it will be:
For the amount it's the same, just replace the 2 with 3
Best regards
Via
--
"Imagination is more important than knowledge." A. Einstein
1) It is not INDEX MATCH that should be used here since there is only one piece of data, the code, and not two
2) In VBA for the name it will be:
result= Application.WorksheetFunction.VLookup(code to search for,search range,2,0)
For the amount it's the same, just replace the 2 with 3
Best regards
Via
--
"Imagination is more important than knowledge." A. Einstein
thank you for answering me, is it possible to see my file to know exactly what I want, however I don't know how to use this code, as I'm not a programmer.