Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
if-then-else in VLOOKUP function
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
if-then-else in VLOOKUP function
You can do lots of things:
http://www.mrexcel.com/forum/showthread.php?t=51 http://www.techonthenet.com/excel/formulas/vlookup.php http://office.microsoft.com/en-us/ex...093351033.aspx Best for last: http://contextures.com/xlFunctions02.html#IF HTH, Ryan--- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to combine Combo Box function with Vlookup function | Excel Worksheet Functions | |||
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP | Excel Discussion (Misc queries) | |||
HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION | Excel Worksheet Functions | |||
how do I write a vlookup function within an iserror function so t. | Excel Worksheet Functions | |||
I want to use Vlookup function and AND function in a single formu. | Excel Worksheet Functions |