If and Vlookup

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
 
S

swatsp0p

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
 
L

Lynneth

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
 
Top