Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / September 2007

Tip: Looking for answers? Try searching our database.

deleting rows from one sheet based on 2nd sheet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
magold2005@hotmail.com - 06 Sep 2007 07:14 GMT
I need help - please:

I have 2 Excel sheets:

1 – Contains all contact details (aaprx 900 rows)
2- Contains email addresses which have bounced back over the past 3 months
(approx 80 rows)

Sheet 1 - first_name, last_name, email, company, job_title, street_no, etc,
etc, etc.,
Sheet 2 – email_address

How can I write a macro or function to delete the rows in sheet 1 that
contain the bounced email addresses listed in sheet 2

All help appreciated.
Max - 06 Sep 2007 07:38 GMT
Here's a quick fix you could apply using formulas ..

Source data is assumed in Sheet1, cols A to H (say),
data from row2 down, with email addresses in col C.

Bounced email addresses are assumed listed in Sheet2, in A1 down

In Sheet1,
Using an empty col to the right, say col X

Put in X2:
=ISNUMBER(MATCH(C2,Sheet2!A:A,0))
Copy down to the last row of source data, X900? Then select col X, click
Data>Filter>Autofilter. Select: TRUE from the autofilter droplist in X1. This
filters out the rows to be deleted. Select all the filtered rows (select all
the blue colored row headers), then right-click > Delete Row. That's it.
Remove autofilter, and you would have your residual list, trimmed of all the
bounced email in Sheet2.
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

> I need help - please:
>
[quoted text clipped - 12 lines]
>
> All help appreciated.  

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.