Sorry David, I am not getting it. The XINDEX function in the ws returns a result, so what exactly are you trying to add?