You can use the methods shown later in this tutorial (using the Sort method or the Find All Method) Delete Rows Based on a Numeric Condition Once done, copy it back in place of the original data. One way to get around this is to create a copy of the data in another worksheet and delete the rows in the copied data. Note that when you delete a row, anything that you may have in other cells in these rows will be lost. Once you have the text based on which you want to filter, hit the Enter key. In case you have a lot of categories/regions, you can type the name in the field right above the box (that has these region names), and Excel will show you only those records that match entered text (as shown below). In the above example, I had only four distinct regions and I could manually select and deselect it from the Filter list (in steps 5 above). Control + – (hold the control key and press the minus key) to delete the selected cells/rows.Control + Shift + L to apply or remove the filter.Some useful shortcuts to know to speed up the process: Once you have the records, you simply delete these. The above steps first filter the data based on a cell value (or can be other condition such as after/before a date or greater/less than a number). This will remove the filter and you will see all the records except the deleted ones. Click the Data tab and click on the Filter icon.
At this point, you will see no records in the dataset.
Suppose you have a data set as shown below and you want to delete all the rows where the region is Mid-west (in Column B). Let’s see two examples where you can filter the rows and delete them. Once you have the filtered data, you can delete all these rows (while the remaining rows remain intact).Įxcel filter is quite versatile and you can filter based on many criteria (such as text, numbers, dates, and colors) One of the fastest ways to delete rows that contain a specific value or fulfill a given condition is to filter these.
Delete Rows that contain a specific text.Filter Rows based on Value/Condition and Then Delete it.Escaped tokens printf("'", A1:A2)ĭefine these two functions by entering them in the name manager (see LAMBDA function MSDN docs for detailed instructions, though this link will die I'm sure."Bullet proof" version of the one provided by allowing for: