You could try using the MATCH function
Hi,
I was thinking along the following lines- of course you'll probably get more targeted answers if you can post specific examples.
Say sheet1 col A,B,C are name, address, telephone number given to you by the police, and sheet2 is your company's information in the same layout. Also assume row 1 is occupied by your column titles.
Keep in mind that the formats need to be exactly the same, that is if they give you a list with parentheses around the area codes, then your list must be the same, likewise sometimes first names vary, or some lists have middle initial and some don't. Even something as innocuous as an extra space in one list can mess this up, so be careful!
In sheet1 D2 type the formula
=match(A2,sheet2!A:A)
this will test for "name" matches
and copy over to F2 and down as far as needed to test for "address" and "telephone number" matches.
If the result is #N/A, then there is no match, if there is a number (it's the row number of the matching value) then there is a match.
You could modify the formula to make the output more readable with
=not(isna(match(A2,sheet2!A:A))) to report "true" for matches and "false" for no matches
HTH
Re: You could try using the MATCH function
> If the result is #N/A, then there is no match, if there is a number (it's the row number of the matching value) then there is a match.
Eric --
=ISNUMBER(match(A2,sheet2!A:A))
would be more efficient for that goal.
Aladin
Thanks for simplifying that!
Somehow I got it into my head that I needed to detect the #N/A and wanted to avoid using the ISERROR function, all the while missing the just as effective and considerably less convoluted ISNUMBER. I turned left instead of right and never looked back. They must have switched me to decaff!
Thanks for pointing that out!
Re: Thankyou both very much