cristopulo
New Member
- Joined
- Aug 12, 2015
- Messages
- 14
Hello,
I am using an Index/Match formula and at the last function when I don't want to match the exact value (0 - because it rarely would) or take the lesser value (1 - because it is not as accurate) the formula usually outputs an #N/A! error when I have the input as -1 as to take the greater value to the right.
The formula is inputted in VBA (i have tried it as a regular excel formula as well):
Range("E9").Formula = "=INDEX('Data References'!$S$2:$AG$14,MATCH(B7,'Data References'!$R$2:$R$14,0),MATCH(B13,'Data References'!$S$1:$AG$1,-1))"
Basically the very last bolded # is the one I am having trouble dealing with.
Any ideas to what the problem?
Thanks in Advance!
-Chris
I am using an Index/Match formula and at the last function when I don't want to match the exact value (0 - because it rarely would) or take the lesser value (1 - because it is not as accurate) the formula usually outputs an #N/A! error when I have the input as -1 as to take the greater value to the right.
The formula is inputted in VBA (i have tried it as a regular excel formula as well):
Range("E9").Formula = "=INDEX('Data References'!$S$2:$AG$14,MATCH(B7,'Data References'!$R$2:$R$14,0),MATCH(B13,'Data References'!$S$1:$AG$1,-1))"
Basically the very last bolded # is the one I am having trouble dealing with.
Any ideas to what the problem?
Thanks in Advance!
-Chris