Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
vlookup function that returns blank if error
=IF(ISNA(vlookup_formula),"",vlookup_formula)
-- --- HTH Bob (change the xxxx to gmail if mailing direct) "Richard" wrote in message ... The normal vlookup function returns a NA if the table_array doesn't contain the lookup_value. Can you help me write a new function that returns a blank or "" instead? -- Richard |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
vlookup function that returns blank if error
I wouldn't do that, I would put the Vlookup formula in a helper cell, and
then test that helper cell for #N/A -- --- HTH Bob (change the xxxx to gmail if mailing direct) "Richard" wrote in message ... Right. I have been frequently using your if statement in my worksheets. However, it is a long statement and I often have to retype/proof to get it correct. I was looking for a function that I could define in a macro. Combining the application.worksheetfunction format with ISNA and Vlookup commands in a macro was giving me problems. -- Richard "Bob Phillips" wrote: =IF(ISNA(vlookup_formula),"",vlookup_formula) -- --- HTH Bob (change the xxxx to gmail if mailing direct) "Richard" wrote in message ... The normal vlookup function returns a NA if the table_array doesn't contain the lookup_value. Can you help me write a new function that returns a blank or "" instead? -- Richard |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
VLOOKUP returns a 0 and I want a blank | Excel Worksheet Functions | |||
VLOOKUP returns 0 (zero) when lookup cell is blank | Excel Discussion (Misc queries) | |||
VLOOKUP returns 0 (zero) when lookup cell is blank | Excel Discussion (Misc queries) | |||
If Vlookup returns error enter 0 | Excel Worksheet Functions | |||
Vlookup finds a blank, but returns a zero - HELP! | Excel Discussion (Misc queries) |