IF VLOOKUP Nested function

G

Guest

I have a formula that returns a lookup value
=VLOOKUP(A10,VarietyLookUpTable!$A$2:$C$56,2,FALSE)
but when I try to make it so that there is no value in the cell if the
reference cell is blank
=IF(A12,VLOOKUP(A12,VarietyLookUpTable!$A$2:$C$56,2,FALSE),"")
It only works if the cell is blank, if there is a value in the cell which is
formatted as text I get the #VALUE! instead of the usual result
 
G

Guest

Use this syntax:

=IF(ISERROR(VLOOKUP([your criteria])),"",VLOOKUP([your criteria]))

"IF the VLOOKUP returns an error, THEN blank, ELSE do the VLOOKUP"

Dave
 
B

Bernard Liengme

The formula =IF(A1,1,0) returns 0 when A1 is blank because a blank is
treated as ) and zero is treated as FALSE. It returns 1 if A1 has a numeric
value because an number is treated as TRUE
But it returns #VALUE! if A1 has text because the first argument is not a
Boolean value.
Try IF(ISBLANK(A12), "", VLOOKUP.........)
But recall that if A12 has a formula that returns a null string ("") it will
not pass the ISBLANK test; the cell must be truly empty.
best wishes
 
G

Guest

Excel says there are too many arguments
=IF(ISERROR,(VLOOKUP(A12,VarietyLookUpTable!$A$2:$C$56,2,FALSE)),"",VLOOKUP(A12,VarietyLookUpTable!$A$2:$C$56,2,FALSE))

Dave F said:
Use this syntax:

=IF(ISERROR(VLOOKUP([your criteria])),"",VLOOKUP([your criteria]))

"IF the VLOOKUP returns an error, THEN blank, ELSE do the VLOOKUP"

Dave
--
Brevity is the soul of wit.


Paul LeBlanc said:
I have a formula that returns a lookup value
=VLOOKUP(A10,VarietyLookUpTable!$A$2:$C$56,2,FALSE)
but when I try to make it so that there is no value in the cell if the
reference cell is blank
=IF(A12,VLOOKUP(A12,VarietyLookUpTable!$A$2:$C$56,2,FALSE),"")
It only works if the cell is blank, if there is a value in the cell which is
formatted as text I get the #VALUE! instead of the usual result
 
G

Guest

There are too many arguments because you have a comma between ISERROR and
VLOOKUP. Try this:

=IF(ISERROR(VLOOKUP(A12,VarietyLookUpTable!$A$2:$C$56,2,FALSE)),"",VLOOKUP(A12,VarietyLookUpTable!$A$2:$C$56,2,FALSE))

Dave
--
Brevity is the soul of wit.


Paul LeBlanc said:
Excel says there are too many arguments
=IF(ISERROR,(VLOOKUP(A12,VarietyLookUpTable!$A$2:$C$56,2,FALSE)),"",VLOOKUP(A12,VarietyLookUpTable!$A$2:$C$56,2,FALSE))

Dave F said:
Use this syntax:

=IF(ISERROR(VLOOKUP([your criteria])),"",VLOOKUP([your criteria]))

"IF the VLOOKUP returns an error, THEN blank, ELSE do the VLOOKUP"

Dave
--
Brevity is the soul of wit.


Paul LeBlanc said:
I have a formula that returns a lookup value
=VLOOKUP(A10,VarietyLookUpTable!$A$2:$C$56,2,FALSE)
but when I try to make it so that there is no value in the cell if the
reference cell is blank
=IF(A12,VLOOKUP(A12,VarietyLookUpTable!$A$2:$C$56,2,FALSE),"")
It only works if the cell is blank, if there is a value in the cell which is
formatted as text I get the #VALUE! instead of the usual result
 
G

Guest

Thanks, I worked on getting all the parenthesis right but missed that sneaky
little comma

Dave F said:
There are too many arguments because you have a comma between ISERROR and
VLOOKUP. Try this:

=IF(ISERROR(VLOOKUP(A12,VarietyLookUpTable!$A$2:$C$56,2,FALSE)),"",VLOOKUP(A12,VarietyLookUpTable!$A$2:$C$56,2,FALSE))

Dave
--
Brevity is the soul of wit.


Paul LeBlanc said:
Excel says there are too many arguments
=IF(ISERROR,(VLOOKUP(A12,VarietyLookUpTable!$A$2:$C$56,2,FALSE)),"",VLOOKUP(A12,VarietyLookUpTable!$A$2:$C$56,2,FALSE))

Dave F said:
Use this syntax:

=IF(ISERROR(VLOOKUP([your criteria])),"",VLOOKUP([your criteria]))

"IF the VLOOKUP returns an error, THEN blank, ELSE do the VLOOKUP"

Dave
--
Brevity is the soul of wit.


:

I have a formula that returns a lookup value
=VLOOKUP(A10,VarietyLookUpTable!$A$2:$C$56,2,FALSE)
but when I try to make it so that there is no value in the cell if the
reference cell is blank
=IF(A12,VLOOKUP(A12,VarietyLookUpTable!$A$2:$C$56,2,FALSE),"")
It only works if the cell is blank, if there is a value in the cell which is
formatted as text I get the #VALUE! instead of the usual result
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top