![]() If you need to delete blank rows quite often, then you'll want to seriously consider using a macro to do the hard work. (For instance, you might filter for blanks in column A.) You can then sort the remaining columns so you have entire blank rows in one place and then delete those rows. (In this case, 16 is the number of columns in the range A:P, inclusive.) After the formula is in place you can sort by column Q, then simply delete all the rows that have the word "DELETE" in that column.Īnother variation on the sorting approach is to simply use the filtering capabilities of Excel to filter your list to contain only blanks in one of the data columns. In the case of the COUNTBLANK formula, you'll want to change the equated value (16) to however many columns you are having the COUNTBLANK function consider. In the case of the COUNTA formula, you simply need to sort on the basis of column Q and delete anything with a 0 in that column. It doesn't matter which one you use they will both give you information you can work with. In column Q, enter either one of these formulas: Let's say that your data is in column A through P. If there are lots of columns in your data and you don't mind adding a helper column, you can get rid of blank rows in a variation on the sorting method. ![]() If you include each column in your sort specification, then you'll end up with the blank rows all right next to each other and you can easily delete them. If your data doesn't consist of very many rows (say, only ten columns or fewer), you might consider just sorting the data. If there are some empty cells interspersed among data you really want to keep, don't use this method, as it will delete those rows, as well. In other words, this approach is best if the only blanks in your data are in rows that you actually want to delete. There is a huge caveat in taking this approach: It will delete any rows in which any cell is blank. Excel selects on those cells in your starting range (step 1) that are blank. Excel displays the Go To Special dialog box. ![]() ![]() Select all the data you are working with.One quick way you can check where blanks are is to just select blanks in your data. The following sections examine all the various ideas for getting rid of those troublesome rows. There are a number of ways to accomplish this task. He's looking for a simple macro that will delete all the rows that are totally blank. Kris has a worksheet where there are a large number of blank rows in the data. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |