Can you explain your problem further?

The sheet seems to do what you are asking for.

What am I missing?