ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If and Vlookup (https://www.excelbanter.com/excel-worksheet-functions/39566-if-vlookup.html)

Lynneth

If and Vlookup
 

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
------------------------------------------------------------------------
Lynneth's Profile: http://www.excelforum.com/member.php...o&userid=26102
View this thread: http://www.excelforum.com/showthread...hreadid=394316


swatsp0p


Lynneth Wrote:
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


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=394316


Lynneth


Thank you so much

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

Bless your heart

Lynne


--
Lynneth
------------------------------------------------------------------------
Lynneth's Profile: http://www.excelforum.com/member.php...o&userid=26102
View this thread: http://www.excelforum.com/showthread...hreadid=394316



All times are GMT +1. The time now is 04:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com