LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Deleteing Rows starting with value (text)


Using an external UNIX program that quieries a database, I export all
the data found based on my query and export the report as a text file.
THe text file can be up to 1 MB of raw text.

Selecting all text and pasting the data into collum 1 using PASTE
SPECIAL --(TEXT)

All Data is in Collum A

Each record returned has between 40-50 values each on a seperate row,
only 10 of which I need.

I am looking for a way to find the rows that begin with the unwanted
field, and then delete the entire row.

Otherwise ignore the row.

IE:
AUDFI : (data path loc here)
BILLNUM : 060606
CUTNUM : (0000)
SD : 120012
ED : 121259
CC : 123456789 MATERIAL LISTS AND ITEMS
COMMENT : Multiple lines of text here
with continuing free form data, numbers, operators,

then the next data file would repeat:

ADUFI : (data path loc here)
...
...
...
etc.,

In the above example, I want to delete the rows AUDFI, & CUTNUM and
move the below items up to take the empty rows place. The BILL NUM,
SD,ED, and COMMENT are filed that are always kept (as well as others).
Each record has roughly the same data, each tailored to an event or
object.

The number of rows of data dumped into excel can easily exceed 50000,
about 200 - 1500 records in the report.

After wards, the data is dumped to a text file for easier analysis.

I hope you can help me.

In BASIC my line might look like
5 START
10 if A:$="AUDFI :" then delete row, move below contents up.
20 if A:$="CUTNUM :" then delete row, move below contents up.
30 END

(I think there needs to be a loop since the vaules AUDFI and CUTNUM (as
well as other unwanted fields can occurr 200 - 1500 times each.)


--
chesspupil
------------------------------------------------------------------------
chesspupil's Profile: http://www.excelforum.com/member.php...o&userid=34645
View this thread: http://www.excelforum.com/showthread...hreadid=544089

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to avoid deleteing certain rows? E.J. van Wijngaarden[_2_] Excel Programming 0 June 16th 05 05:23 PM
Deleteing some Rows Deepwater Excel Discussion (Misc queries) 1 April 1st 05 06:23 PM
Deleteing Rows Michael Vaughan Excel Programming 2 September 20th 04 09:53 PM
Deleteing Duplicate Rows??? James Excel Programming 13 June 4th 04 03:24 PM
Deleteing Rows Amber[_2_] Excel Programming 3 February 4th 04 06:34 PM


All times are GMT +1. The time now is 08:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"