Proper Syntax for IF and VLOOKUP
I am trying to create a formula that will run VLOOKUP if a cell is blank
This doesn't error but it leaves the formula field blank
=IF((USERR3 <> ""), (IF((VLOOKUP(SDR3, {SFDCUsers Range 1}, 2, false)) = 0, "No", "")))
Best Answer
-
=IF(USERR3 <> "", IF(VLOOKUP(SDR3, {SFDCUsers Range 1}, 2, false) = 0, "No", ""))
Give that a try. What exactly is the VLOOKUP pulling?
Answers
-
=IF(USERR3 <> "", IF(VLOOKUP(SDR3, {SFDCUsers Range 1}, 2, false) = 0, "No", ""))
Give that a try. What exactly is the VLOOKUP pulling?
-
That worked Paul... My nemesis the dreaded parenthesis
It is hitting a Salesforce user sheet to let me know if the user is active or not
-
Happy to help! 👍️
Please don't forget to mark the most appropriate response as the "Accepted Answer" so that others know a solution has been found.
-
HI Paul,
I created a sheet which needs to vlookup to another sheet, but there are duplicate listing. I have created a column "Module" , which creates the unique rows. But how will I get to verify using the Module.
=IF(Module@row = "Option", VLOOKUP([Part Number]@row, {Bill of Materials - eBOM - 1 Range 22}, 1, false), 0)
Thanks!
-
@APalani Are you able to provide some screenshots for reference?
-
Hi Paul,
When there is no m during comparison, it is throwing #NO Match, but i want 0 in that place.
Is it possible to change?
-
You would need to wrap it in an IFERROR like so...
=IFERROR(IF(Module@row = "Option", VLOOKUP([Part Number]@row, {Bill of Materials - eBOM - 1 Range 22}, 1, false), 0), 0)
-
HI Paul,
I am trying to verify the PN across the module with another sheet. I tried this formula, it keeps throwing error. Both Module and PN are in other sheet as well.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!