I'm starting to study VBA but even searching for the functions needed for this I could not mount the VBA code. I searched for the functions to simulate INDEX and MATCH in VBA, but I could not mount the code correctly.
I have a table to fill where in each cell is the following formula, for example in cell C11:
=IF(INDEX('Sheet1'!$G:$G;MATCH($B11&C$10;'Sheet1'!$B:$B&'Sheet1'!$A:$A;0))<>"";"sm";
IF(INDEX('Sheet1'!$E:$E;MATCH($B11&C$10;'Sheet1'!$B:$B&'Sheet1'!$A:$A;0))<>"";"ok";0))
I would like to transform this formula into a VBA code.
Thanks in advance for the help!