IF troubles

  • Thread starter Thread starter JG
  • Start date Start date
J

JG

This is my IF function I'm trying to get to work.

=IF(L11=0,0,"=VLOOKUP(L11,Sheet1!$CA$1724:$CC$1735,2,FALSE)")

This works if L11 = 0 but if it does not = 0 it fails. If I use this
VLOOKUP without outside of the IF function it also work. Is there
something wrong with my syntax?

Thanks for the help JG
 
Oops, AND quotes. The "False" item doesn't need quotes if it is a function.
 
I thought that myself and even tried it again after the suggestion.
When L11 is a zero it works and when it is a name (john) I get the
formula in the cell.
 
This works

=IF(L3=0,0,VLOOKUP(L3,Sheet1!$CA$1724:$CC$1735,2,FALSE))

Thanks JG
 
JG said:
This works

=IF(L3=0,0,VLOOKUP(L3,Sheet1!$CA$1724:$CC$1735,2,FALSE))

Thanks JG

Maybe L11's format was Text, causing the formula to be shown rather
than its result.
Try reformatting L11 to General.

Ken Johnson
 

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

Back
Top