Very impressive! It took me a second to understand what was going on (RowNumber) and then even longer to adapt it to my situation. Once I got it sorted, it works great and is significantly faster.
I really like this method over my original process; more precise and not having to fuss with...