The attached seems to work , although I think it could be made simpler.
It uses array formulas to be committed with Ctrl+Shift+Enter
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
|