ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Deleting rows between (https://www.excelbanter.com/excel-programming/345159-deleting-rows-between.html)

Mark

Deleting rows between
 
I am using Excel 97, I have a text file which I am trying to clean up.

I need to keep all the rows that commence with 'Ser No', then there are a
number of rows between the next row that I need to keep namely 'Result Code'
that need deleting.

Can some one please provide me with some code which will do this?
--
Mark

Bill Foster

Deleting rows between
 
Do you really need code?
Sort the data based on that column, then delete the unecessary rows.

If necessary, add a new column with a simple index to sort the data back to
the same order after the rows are deleted.

"Mark" wrote:

I am using Excel 97, I have a text file which I am trying to clean up.

I need to keep all the rows that commence with 'Ser No', then there are a
number of rows between the next row that I need to keep namely 'Result Code'
that need deleting.

Can some one please provide me with some code which will do this?
--
Mark



All times are GMT +1. The time now is 12:03 AM.

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