PDA

View Full Version : Solved: Index Match using named ranges



JarryS88
10-19-2010, 07:28 PM
Hi,

i have a vba code where i want to take the result of a match and get the result of that row number in an array (index).


it is written as follows
x = Application.Index(SSI, 1, Application.Match(RngAC, MatchKey, 0))

SSI being the named range in which i want to get the value
RngAC being the named range (single cell, changes with loop) that i want to find
and
MatchKey being the range in which i want to find RngAC.

my result is giving #value. when i know it should come up with a result

have i typed the code wrong?

any help is appreciated

JarryS88
10-19-2010, 07:48 PM
Oh, i should also mention that MatchKey and SSI are on a seperate workbook. thats why im working with names so it doesnt need the workbook specified.

please correct me if i'm wrong.

JarryS88
10-19-2010, 08:34 PM
dont worry, i realised that i had the match in column instead of row.

all good now

JarryS88
10-20-2010, 08:31 PM
back again.

new issue. sorry

ok so ive used a formula feed into vba of an index match however i want the index to be offset(-1,0) yet as its a formula and not a value i dont know how.