I am trying to convert the following INDEX(),MATCH() function into VBA:
=INDEX($C$2:$N$21;MATCH($A24&CHAR(1)&C$23;$A$2:$A$21&CHAR(1)&$B$2:$B$21;0); MATCH($B24;$C$1:$N$1;0))
And I found the following set up on StackOverflow:
Dim INDEX_ARRAY As Range
Dim INDEX_COLUMN As Range
Dim INDEX_ROW As Range
With Worksheets("Master Scores")
Set INDEX_ARRAY = .Range(.Cells.Find(iCell.Value).EntireColumn))
Set INDEX_COLUMN = .Range("A1:A500"))
End With
With Worksheets("EXPORT")
Set INDEX_ROW = .Range(.Cells(iCell.Row,1))
End WIth
iCell.Formula = Application.Index(INDEX_ARRAY, INDEX_ROW, INDEX_COLUMN)
However, I dont know how to convert the MATCH($A24&CHAR(1)&C$23;$A$2:$A$21&CHAR(1)&$B$2:$B$21;0)
part into the VBA.
I really appreciate your input!
Thanks in advance,
Hieronymus5
excel.WorksheetFunction
and then the function you need.excel.WorksheetFunction.Match
– simpLE MAn