Well, I don't deal in stock market, so not really
But if the solution works, Great!

btw, I'm assuming its the sumproduct solution that did the trick?

Have a good day