IF VLOOKUP

K

Karen Smith

I've got a formula (below) that isn't working, I'm sure its something I did
wrong, but I'm not sure what. If C8=yes the formula should do a vlookup if
C8=no, it should do nothing. Can someone help me fix my formula?

=IF(ISERROR(c8="yes",(VLOOKUP(A8&"-"&F8&"-"&G8,'Writing
Charges'!$D$3:$E$60,2,0)*I8),"",(VLOOKUP(A8&"-"&F8&"-"&G8,'Writing
Charges'!$D$3:$E$60,2,0)*I8)))
 
P

Peo Sjoblom

=IF(C8<>"yes","",IF(ISNA(VLOOKUP(A8&"-"&F8&"-"&G8,'Writing
Charges'!$D$3:$E$60,2,0)),"",VLOOKUP(A8&"-"&F8&"-"&G8,'Writing
Charges'!$D$3:$E$60,2,0)*I8))


--


Regards,


Peo Sjoblom
 
M

Marcelo

Why not use:

=IF(c8<>"yes","",(VLOOKUP(A8&"-"&F8&"-"&G8,'Writing
Charges'!$D$3:$E$60,2,0)*I8))

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Karen Smith" escreveu:
 
K

Karen Smith

Thanks, that worked. Unfortunately I had to change some criteria, which now
requires a change in the formula. still the same look up, but if c8=Internal
then vlookup D3..E60, if c8=external then vlookup G3..H60, if c8=none then do
nothing. How would I change the formula below to make it work?
 

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

Similar Threads

VLOOKUP 3
#VALUE problem 4
Figuring 24 Hours Per Day 5
Use a wildcard within edit/replace 4
#N/A to blank 7
IF FUNCTION, ADD MULTIPLE NUMBERS 2
A different kind of VLookup 8
Vlookup and multiple data 5

Top