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
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!