Thank you so much, Steven, that works just great and is exactly what I needed! (Yes, I am working with continuous intervals, so ISMEMBER wouldn't have worked.) Although quite simple - I just always get confused when dealing with function handles.