I tried your idea and this doesn't appear to work. I think I understand what you're saying, but it doesn't calculate on my data.

Thanks for the attempt.