I am trying to write straightforward code, using web searches to pattern my line.
Cells("H2").Value = WorksheetFunction.Index(Range("P2:P284"), WorksheetFunction.Match(Cells("E2").Value, Range("O2:O284"), 0))
where H2 is the target answer here cell, P2:P284 will have the answer somewhere in that range, E2 is the cell to be matched, and O2:O284 is the range to match E2 to.
I get Run-time Error "5": Invalid procedure or call
Thanks for helping!
Cells("H2").Value = WorksheetFunction.Index(Range("P2:P284"), WorksheetFunction.Match(Cells("E2").Value, Range("O2:O284"), 0))
where H2 is the target answer here cell, P2:P284 will have the answer somewhere in that range, E2 is the cell to be matched, and O2:O284 is the range to match E2 to.
I get Run-time Error "5": Invalid procedure or call
Thanks for helping!