Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'm trying to do a Vlookup where if it can't find the information in the
specified array, it returns a predetermined value...is there a way to do this? Thanks! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Yes, when VLookup() doesn't find a match, it returns #N/A error and you can
test for that: =IF(ISNA(yourVlookupFormula),predeterminedValue,yo urVlookupFormula) a real one might look like =IF(ISNA(VLOOKUP(A1,Sheet2!B9:X109,3,False)),-55,VLOOKUP(A1,Sheet2!B9:X109,3,False)) You could even return text as: =IF(ISNA(VLOOKUP(A1,Sheet2!B9:X109,3,False)),"No Match Found",VLOOKUP(A1,Sheet2!B9:X109,3,False)) "lightbulb" wrote: I'm trying to do a Vlookup where if it can't find the information in the specified array, it returns a predetermined value...is there a way to do this? Thanks! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=if(isna(vlookup(...), "Predetermined Value", vlookup())
-- HTH... Jim Thomlinson "lightbulb" wrote: I'm trying to do a Vlookup where if it can't find the information in the specified array, it returns a predetermined value...is there a way to do this? Thanks! |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
hi,
2 ways =IF(COUNTIF(A1:A20,F1)0,VLOOKUP(F1,A1:B20,2,FALSE ),"My Pre defined value") or =IF(ISNA(VLOOKUP(F1,A1:B20,2,FALSE)),"My pre defined value",VLOOKUP(F1,A1:B20,2,FALSE)) Mike "lightbulb" wrote: I'm trying to do a Vlookup where if it can't find the information in the specified array, it returns a predetermined value...is there a way to do this? Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
two condition for vlookup? | Excel Worksheet Functions | |||
2 condition vlookup | Excel Discussion (Misc queries) | |||
VLOOKUP used only when IF condition is met | Excel Worksheet Functions | |||
Multi-condition vlookup | Excel Worksheet Functions | |||
vlookup in two condition | Excel Discussion (Misc queries) |