If the same name, tha same dates range "1" should be only once, another cell empty.
So, cells P4, P20; O9, O13, O17 should be empty.