if-then-else in VLOOKUP function
=if(isna(VLOOKUP(E348,Sheet1!A:B,2,FALSE)),e348,
VLOOKUP(E348,Sheet1!A:B,2,FALSE))
In xl2007, there's an =iferror() function.
I think the syntax would be:
=iferror(VLOOKUP(E348,Sheet1!A:B,2,FALSE),e348)
Himansu wrote:
Hello everyone,
Does anyone how to add an "if-then-else" in a vlookup? Here's an example:
=VLOOKUP(E348,Sheet1!A:B,2,FALSE)
---
* Basically I want the formula above to return the value in E348 if the
result is #N/A in the vlookup function above.
Any help with this query will be greatly appreciated.
--
Thanks,
Himansu
--
Dave Peterson
|