LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
 
Posts: n/a
Default Deleting specific records

Hi All

I have joined two sets of records into two columns. The first column
gives the name of the record and the second column will either be blank
or have the text "HSTD". I am trying to eliminate a number of these
records - hopefully about 5000 of them. The problem is that some of the
records that have a blank cell in the second column should really have
the "HSTD" text. The only way of working out which ones come under this
category is to find out whether the number of records for a given name
with "HSTD" text equal the number of records that with a corresponing
blank cell. An extract of the data is below for those who may be a
little confused.

Aalsmear HSTD
Aashiana HSTD
Abaden HSTD
Abbey Park HSTD
Abbotsford HSTD
Abbotsford HSTD
Abbotsford HSTD
Abbotsroyd Farm HSTD
Abbottsfort HSTD
Aberavon HSTD
Aberystwyth HSTD
Abington HSTD
Aboyne HSTD
Aboyne
Aboyne
Abran HSTD
Acacia Downs HSTD
Acacia Downs HSTD
Acacia Downs
Acacia Downs
Acacia Farm HSTD
Accolade Lodge HSTD
Achmore HSTD
Achray HSTD
Acland Downs HSTD
Acreage HSTD
Acton HSTD
Acton Downs HSTD
Acton Meadows HSTD
Ada HSTD
Ada
Adair
Adair
Adams Flat
Addavale HSTD


For the example above the name Acacia Downs would be eliminated as it
has two records that have "HSTD" and two equivalent records that have a
blank cell. However the records with Aboyne would not be culled as it
has only one record with "HSTD" and two records with blank cells.
Records like Adair would not be touched as there are no records with
"HSTD". Can you see where we're coming from? I will eventually
eliminate all records that have "HSTD" but am using them to thresh out
the other records. I have already eliminated about 3000 records which
had one record each with the formula (placed in column C) after
appropriate sorting - =IF(AND(B1="HSTD", B2="", B3<"", A1=A2),"A","").
Then I would delete records tagged with "A". Just can't seem to come up
with something for more than two records each without thinking that it
needs VB.

Any help would be appreciated.

Regards,
Mike

 
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
select records with a specific value AMK Excel Worksheet Functions 3 June 22nd 05 11:53 AM
Deleting specific records from a column [email protected] Excel Discussion (Misc queries) 2 June 16th 05 04:02 AM
deleting duplicate records in a mail merge Mimi Excel Discussion (Misc queries) 1 April 7th 05 05:55 PM
Number of records by Month that meet a specific requirement Keith Brown Excel Worksheet Functions 1 February 5th 05 05:42 PM
How to delete duplicate records when I merge two lists (deleting . rinks Excel Worksheet Functions 10 December 11th 04 01:03 AM


All times are GMT +1. The time now is 05:23 PM.

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"