View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Teethless mama Teethless mama is offline
external usenet poster
 
Posts: 3,718
Default remove records when fields match in 2 worksheets??

When you get FALSE it means you don't have a duplicated that email in Sheet 2
Copy your AP2 all the way down you will see some of the result are TRUE if
you think you might have some duplicated

" wrote:

Thanks for your quick reply.
When I type in the formula in AP2:
=COUNTIF(Sheet2!$D$2:$D$502,Sheet1!$R$2)0

it is replaced with FALSE and idea why?

FYI,
Sheet 2 D2 thru D502 contains all the emails (records) I want removed
from Sheet 1. In Sheet 1 column R contains all the emails.

Hope all the makes sense.

Thanks again,

Case

On May 8, 7:07 pm, Teethless mama
wrote:
Sheet 1:
Create a helper column (in column B)
In B2: =COUNTIF(Sheet2!$A$2:$A$100,Sheet1!A2)0

Data Filter Auto Filter filter all the TRUE Highlight rows numbers
on the far left Edit Delete Rows

" wrote:
Hi All,


I'm hoping this is and easy one.


I have 2 worksheets (sheet1 and sheet2)and want to create a 3rd (sheet
3) based on some filtering using the sheet 1 and sheet2. I want to
remove all the records in sheet 1 where the email field matches and
email field somewhere in sheet2. If I can just remove them in sheet 1
then I don't need to create sheet3 at all. Can anyone advise how to do
this?
TIA,


Case