cristopulo
New Member
- Joined
- Aug 12, 2015
- Messages
- 14
Hello,
I have an Index/ Match code that basically cross references values in a table to give a numerical output and need help translating it into VBA.
Here is the original code:
=INDEX(T2:AH14;MATCH(B7;S2:S14;0);MATCH(B15;T1:AH1;-1))
Range of Outputs is T2:AH14
Table Header/ Column is T1:AH1 & S2:S14
Cell References are to match with B7 & B15
and -1 specifies the greater value if not exact
This is what Ive got on VBA but im afraid its totally off.
Range("E8"). test=Application.WorksheetFunction.INDEX(Range("T2:AH14"),Application.WorksheetFunction.MATCH("B7",Range("S2:S14"),0),Application.WorksheetFunction.MATCH("B15",Range("T1:AH1"),-1,1)
Thanks in Advance
-Chris
I have an Index/ Match code that basically cross references values in a table to give a numerical output and need help translating it into VBA.
Here is the original code:
=INDEX(T2:AH14;MATCH(B7;S2:S14;0);MATCH(B15;T1:AH1;-1))
Range of Outputs is T2:AH14
Table Header/ Column is T1:AH1 & S2:S14
Cell References are to match with B7 & B15
and -1 specifies the greater value if not exact
This is what Ive got on VBA but im afraid its totally off.
Range("E8"). test=Application.WorksheetFunction.INDEX(Range("T2:AH14"),Application.WorksheetFunction.MATCH("B7",Range("S2:S14"),0),Application.WorksheetFunction.MATCH("B15",Range("T1:AH1"),-1,1)
Thanks in Advance
-Chris