cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Mixing 'on Error' and 'otherwise'?

JBlackhole
16-Pearl

Mixing 'on Error' and 'otherwise'?

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


ACCEPTED SOLUTION

Accepted Solutions

3 REPLIES 3

To J B from all

must-be-in.png

Thanks Valery. I have just spotted that and was going to post an updated wsheet. You beat me to it

You welcome!

(1) - it is a vector not scalar!

I use in same cases the Trace Error command and the Return operator.

Announcements

Top Tags