I am trying to convert an R1C1 vba formula into an "A1" type of code.
ActiveCell.Formula2R1C1 = "=INDEX(C3,MATCH(RC[-1]&R2C6,C1&C5,0))"
in spreadsheet it is: =INDEX($C:$C,MATCH(H2&$F$2,$A:$A&$E:$E,0))
I tried the following but I am not getting the correct result, please guide.
a = Application.WorksheetFunction.Index(Range("C:C"), _
Application.WorksheetFunction.Match(Range("H2").Value, Range("A:A"), 0) + _
Application.WorksheetFunction.Match(Range("F2").Value, Range("E:E"), 0), 0)
Thank you.
Evaluate
...$A:$A&$E:$E
doesn't translate well to VBA. – BigBen