Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default filtering rows depending on onother sheet

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.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default filtering rows depending on onother sheet

Please don't multi-post.
Below is a response to your identical posting in microsoft.public.excel
---
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
DataFilterAutofilter. 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
---
" 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.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default filtering rows depending on onother sheet

Thank you Max,

After I copy and pasted, all cells returned FALSE - no tru values at all.
Any suggestions?

Mark



"Max" wrote:

Please don't multi-post.
Below is a response to your identical posting in microsoft.public.excel
---
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
DataFilterAutofilter. 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
---
" 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.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default filtering rows depending on onother sheet

It should have worked if the email addresses match.

Try this heavier duty formula ..

In Sheet1,

Put instead in X2:
=IF(C2="","",IF(SUMPRODUCT(--ISNUMBER(SEARCH(C2,Sheet2!$A$1:$A$80)))0,"x",""))
Copy down. Then autofilter for "x" in col X, delete these rows.

If the above still doesn't do it, post some samples of the email addresses
in Sheet1's col C and the bounced ones in Sheet2's col A.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
" wrote:
Thank you Max,

After I copy and pasted, all cells returned FALSE - no tru values at all.
Any suggestions?

Mark


Reply
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
adding rows depending on cell value [email protected] Excel Worksheet Functions 1 February 18th 07 04:18 PM
hiding rows depending on the date Jan Buckley Excel Discussion (Misc queries) 4 December 22nd 06 11:13 AM
Merge Rows depending on value of the first column sp123 Excel Worksheet Functions 1 April 20th 06 03:43 AM
Extracting rows depending on string Deki Excel Worksheet Functions 1 March 15th 06 11:03 PM
How to delete a set of rows depending on Value msbutton27 Excel Discussion (Misc queries) 1 January 15th 06 04:57 PM


All times are GMT +1. The time now is 07:52 AM.

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

About Us

"It's about Microsoft Excel"