One kind of table editing method and apparatus

The present invention discloses a method and apparatus for editing the table, it is applied to the electronic device having a touch display unit, the electronic device mounted with a spreadsheet application having attributes; the electronic device when executing the application, the application the spreadsheet display interface unit in the touch display; when executing the application, the method comprising: means for detecting a user's input operation, the two cells is determined based on the operation by the touch input display ; determining when said input operation is operated separately, and the two cells of two adjacent cells of the spreadsheet, the two adjacent cells between which the row or column, corresponding to insertion of at least one row or at least one new cell; determining whether the input operation is close to the operation, and the two cell is in the same row or column in the spreadsheet, the row in which the cell or two between the rows, deletion of at least one row or at least one cell.