ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how to delete some rows without data which comes in between rows with data (https://www.excelbanter.com/excel-discussion-misc-queries/445636-how-delete-some-rows-without-data-comes-between-rows-data.html)

sumesh56

how to delete some rows without data which comes in between rows with data
 
i have a worksheet in which there are data in some rows say in every fifth or sixth rows. the in between rows are blank. now i want to delete those blank rows. how can i accomplish this task in a single step?

Spencer101

Quote:

Originally Posted by sumesh56 (Post 1600320)
i have a worksheet in which there are data in some rows say in every fifth or sixth rows. the in between rows are blank. now i want to delete those blank rows. how can i accomplish this task in a single step?

I'm sure there are more elegant ways, but for a quick and dirt method...

In a blank column to the right of your data put in a =COUNTA() formula.

If for example your data was in colums A to E, and headers in row 1, go to cell F2 and enter =COUNTA(A2:E2). Copy that formula down to the last populated row of data, apply an autofilter to row A and restrict column F to zero.

These will be your blank rows. You can then highlight and delete these rows only.

Not the best way I'm sure, but quick and easy.

S.

Don Guillett[_2_]

how to delete some rows without data which comes in between rowswith data
 
On Sunday, April 1, 2012 2:58:28 AM UTC-5, sumesh56 wrote:
i have a worksheet in which there are data in some rows say in every
fifth or sixth rows. the in between rows are blank. now i want to delete
those blank rows. how can i accomplish this task in a single step?




--
sumesh56


Select the columnf5special cellsblankseditdelete

Gord Dibben[_2_]

how to delete some rows without data which comes in between rows with data
 
Select a column then F5SpecialBlanksOK

EditDeleteEntire Rows


Gord

On Sun, 1 Apr 2012 07:58:28 +0000, sumesh56
wrote:


i have a worksheet in which there are data in some rows say in every
fifth or sixth rows. the in between rows are blank. now i want to delete
those blank rows. how can i accomplish this task in a single step?


sumesh56

Quote:

Originally Posted by Gord Dibben[_2_] (Post 1600330)
Select a column then F5SpecialBlanksOK

EditDeleteEntire Rows


Gord

On Sun, 1 Apr 2012 07:58:28 +0000, sumesh56
wrote:


i have a worksheet in which there are data in some rows say in every
fifth or sixth rows. the in between rows are blank. now i want to delete
those blank rows. how can i accomplish this task in a single step?

thanks all for the suggestions


All times are GMT +1. The time now is 08:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com