PC Review


Reply
Thread Tools Rate Thread

deleting rows from one sheet based on 2nd sheet

 
 
=?Utf-8?B?bWFnb2xkMjAwNUBob3RtYWlsLmNvbQ==?=
Guest
Posts: n/a
 
      6th Sep 2007
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.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWF4?=
Guest
Posts: n/a
 
      6th Sep 2007
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.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"(E-Mail Removed)" wrote:
> 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.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy rows from one Data sheet to another sheet based on cell conte John McKeon Microsoft Excel Misc 2 15th May 2010 06:49 AM
Hide rows of one sheet based on values in another sheet? Andrew Raastad Microsoft Excel Programming 3 15th Aug 2009 04:43 PM
Search for rows in one sheet and copy into another sheet based on customer id chitiksha@gmail.com Microsoft Excel Worksheet Functions 1 22nd Oct 2007 03:09 AM
Help: auto-copy entire rows from 1 sheet (based on cell criteria) to another sheet. bertbarndoor Microsoft Excel Programming 4 5th Oct 2007 04:00 PM
Re: Deleting blank rows at the end of the sheet! Debra Dalgleish Microsoft Excel Misc 0 3rd Oct 2003 10:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:28 PM.