Compare 2 sheets and identify data

Hi,

I have a little issue in Excel and hope someone has a pointer for me.

Basically, I have a customer database that has names, emails, etc. secondly I have a second excel that only has emails in of customers that opted out. What I try to do is to either compare the 2 and identify the cells that are in the customer list where the email cell matches the email in the "op out" file.

I would appreciate any assistance on this.

Best wishes,
Thomas
ThomasPartnerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rob HensonFinance AnalystCommented:
Sounds like the case for a simple VLOOKUP formula.

Assumptions:
Full file, email in column E
Opt Out file, email in sheet1, column A

Formula in full file, starting in row 2:
=IF(ISERROR(VLOOKUP(E2,[Opt out.xlsx]Sheet1!$A:$A,1,FALSE)),"","Opt Out")

This says look for an exact match of the email in E2 in column A of sheet1, if an error (ie not found) result is "" (blank) otherwise put "Opt Out".

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ThomasPartnerAuthor Commented:
Hi Rob,
Thank you for the assistance, it worked fine.
Rob HensonFinance AnalystCommented:
Confirmed by aithor in subsequent comment
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.