Fotis1991 your way works but I'm still curious why my way isn't.

I've attached a spreadsheet with an example this time...example.xlsx