OpenOffice: Delete rows based on cell value
- Select a cell in Column M.
- Select all cells in the spreadsheet with Ctrl-A.
- Open the Data->Filter->Standard Filter menu.
- Set the first row of the filter so that Field Name is "Column M", Condition is "Not Equals" and Value is "on".
- Click OK to apply the filter to the spreadsheet.
- Select all rows in the spreadsheet with Ctrl-A. To unselect any column header cells, hold Ctrl and click the appropriate row.
- Right-click on any of the row numbers and select Delete Rows.
- Select one of the column header cells, or any non-blank cell.
- Use the Data->Filter->Remove Filter menu item to restore the remaining rows.
My quick and dirty solution would be to create another column with numbers 1..n. Then sort on column M. Select and delete the rows that are not "on". Then restore the original order by sorting on that new column with numbers 1..n.