Hi Mark,
You are very kind and friendly. Thank you so much that you haven't felt you disturbed my personal message and helped me.
At beginning of this thread I thought that the solution should be as it is possible with your formula.
Excuse me, I gave the examples but only after I saw the solution of Barry I knew that it is the right solution.
It's my fault for your effort.
This is an ingeniously formula which have created.
I think that I will use this formula for a specific occasion.
Thank you very much