This is fantastic, I spent over an hour looking for this formula! Great logic, thanks!