ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to delete lines programmatically if a condition is met? (https://www.excelbanter.com/excel-discussion-misc-queries/133726-how-delete-lines-programmatically-if-condition-met.html)

nt_artagnian[_2_]

How to delete lines programmatically if a condition is met?
 
I have a large dataset in Microsoft Excel 2003 with almost 3000 lines and
I want to delete the rows of it, which have nulls in one or more of their
columns.
e.g.
A B C D
1 2 3 4
1 4 5
2 3 4
Result : The 2nd and 3rd rows will be deleted or someway discarded.
How can I do this?

Gord Dibben

How to delete lines programmatically if a condition is met?
 
Select all four columns and F5SpecialBlanksOK.

EditDeleteEntire row.


Gord Dibben MS Excel MVP

On Wed, 7 Mar 2007 07:57:07 -0800, nt_artagnian
wrote:

I have a large dataset in Microsoft Excel 2003 with almost 3000 lines and
I want to delete the rows of it, which have nulls in one or more of their
columns.
e.g.
A B C D
1 2 3 4
1 4 5
2 3 4
Result : The 2nd and 3rd rows will be deleted or someway discarded.
How can I do this?




All times are GMT +1. The time now is 12:57 PM.

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