That's pretty much what I gave you in the second sample, except using a CTE instead of the raw table.Glad you figured it out though!
Your results were a bit different, but I didnt have enough knowledge to edit it to do exactly what I needed it to do. Thanks though! Really appreciate all the suggestions