Generate two continuous cells

I want to be thrown away when there are two equal districts (same as the previous one) the two cells together (order1 and order2 go to the address such “" in the district such "”), but I throw differently on two lines of the different output