IF OR statements Assistance

Hi, I have two sheets that I am working from; the source and destination. On one sheet I have 2 different emails to work from and the source sheet only has 1 email to compare it to. Obviously, only 1 email from the source sheet has to match the only 1 email from the destination sheet. I.E. I am trying to create a formula where the 1 email from the source sheet is compared to either 1 of the 2 emails on the destination sheet but so far nothing is working.
This is the current formula I have: =IF(OR(VLOOKUP([Email 1]@row, {Source Sheet Email}, 1, false) <> "", VLOOKUP([Email 2]@row, {Source Sheet Email}, 1, false) <> ""), "Email Used", "No Email Used")
Except it seems when I use this formula it only checks for the first if statement and if it is false it just returns no match and doesn't execute the 2nd nested if statement.
Let me know if that makes sense.
Answers
-
Hi Eden - Use index(match) formulas instead of Vlookup. Problem w Vlookup is when a column is moved the results gets jacked up.
this will give you a start:
=IFERROR(INDEX({New Sheet Range 1}, MATCH([Column11]@row, {New Sheet Range 1}, 0)), IFERROR(INDEX({New Sheet Range 2}, MATCH([Column11]@row, {New Sheet Range 2}, 0)), "bad email"))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.9K Get Help
- 429 Global Discussions
- 147 Industry Talk
- 487 Announcements
- 5.2K Ideas & Feature Requests
- 86 Brandfolder
- 151 Just for fun
- 74 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!