I'm trying to get content of mapping table based on 2 criteria.
Find below the formula I would like to convert
=INDEX(MappingTables!Y2:Y19;MATCH(1;(MappingTables!V2:V100=AE2)*(MappingTables!W2:W100=Y2);0))
Find below the current VBA code I'm using (where RANGE are constants) :
res = Application.Index(mappingTables.Range(RANGE1), Application.Match(1, (mappingTables.Range(RANGE2) = criteria1) * (mappingTables.Range(RANGE3) = criteria2), 0))
However, I'm getting below error
Unidentified error detected. Process terminated.
Can you please help me to understand where is the issue ?
Thank you,
Regards,
Application.Evaluationinstead ?