To all
Is it possible to "mix" on Error and otherwise? I am trying to find a value in a vector using a match function,
If the value is not found do an linear interpolation
Else
get the rank of the value (in vector 1)
return a value at that rank in another vector
Attached test function which works if all the vectors are the same length but not with different length. It looks like the On error does; not quite work are it seems that the rank is always zero