Handle cell collision in the spreadsheet modal