Avatar of ArisaAnsar
Flag for United States of America asked on

Excel Formula

I have a spreadsheet.   On Sheet 2, is a list of email address (column A) and a specific product name (column C).  Against Sheet 1, I have to look to see if that email address (column A) and product code (column B) is also listed.

I cannot use a vlookup because that email address may be listed multiple times but different product codes on Sheet 1.  Do you have a suggestion on how I can do this?

Any help would be greatly appreciated.
Microsoft Excel

Avatar of undefined
Last Comment

8/22/2022 - Mon

You should be able to use INDEX and MATCH hopefully.
Naresh Patel

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Rob Henson

In sheet2 concatenate the e-mail with product number with simple formula:


You can include a character in between if you so wish so that you can see the split, eg =A1&"-"&B1

Then on sheet1 use the following:

=IFERROR(MATCH($A1&$B1,Sheet2!$C:$C,0),"No Match")

This will return the row number where matched or "No match" when not matched.

Rob H

Thanks.  This worked perfectly for me.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.