Nested VLOOKUP in IF statement

J

jason.jaesung

=IF(H5=$C$2,"=VLOOKUP(H4,$B$5:$C$11,2,FALSE)",0)

Hi all,

Above is my simple nested vlookup statement.
The problem is, it may be too simple.
Basically I'd like for this vlookup statement to run when the
condition is met.

When the condition is true, the result is "=VLOOKUP(H4,$B$5:$C
$11,2,FALSE)"
printed in the cell as a value instead of returning the formula
result.

I've tried the following without success...

=IF(H5=$C$2,"VLOOKUP(H4,$B$5:$C$11,2,FALSE)",0) <--- without the =
=IF(H5=$C$2,=VLOOKUP(H4,$B$5:$C$11,2,FALSE),0) <--- without the
"quotes"

Is there something I'm doing wrong?

Cheers
 

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