If and Vlookup

  • Thread starter Thread starter Lynneth
  • Start date Start date
L

Lynneth

Is it possible to use the If function and Vlookup together?

eg

if(vlookup(a7,may,3),((F14*F9)-(F13*F10))*(1-F$6)

I am trying to lookup a value in a table but if it is not there, I want
it to put in the formula

Thank you
Lynne
 
Lynneth said:
Is it possible to use the If function and Vlookup together?

eg

if(vlookup(a7,may,3),((F14*F9)-(F13*F10))*(1-F$6)

I am trying to lookup a value in a table but if it is not there, I want
it to put in the formula

Thank you
Lynne

Yes you can!! Make your formula look like this:

=IF(ISNA(VLOOKUP(a7,may,3)),((F14*F9)-(F13*F10))*(1-F$6),VLOOKUP(VLOOKUP(a7,may,3))

HTH

Bruce
 
Thank you so much

I have tried for hours and hours to get this to work. It seemed such
simple logical formula, but it didn't quite work out that way.

Bless your heart

Lynn
 

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