combining IF statement with Vlookup

I would like a formula to do the following;

Formula to feature in cell G2

IF cell E2 contains either of these three values, Pending, Awaiting supplier confirmation, SBA sent | Awaiting return, then return an email address found in the range K2:L35.

The email address must correspond to the name found in cell A2. If no value is present in A2 then return a blank.

If cell E2 contains any value other than the three stated above then also return a blank

This formula will be copied down for each row

Thanks Mike
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


pls try

=IF(OR(E2="Pending",E2="Awaiting supplier confirmation",E2="SBA sent | Awaiting return"),VLOOKUP(A2,$K$2:$L$35,2),"")

Open in new window

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
in cell G2, try formula:

=IF( OR(E2="Pending",E2="Awaiting supplier confirmation",E2="SBA sent | Awaiting return"), VLOOKUP(A2,K:L,2,FALSE), "")

Open in new window

and drag this formula down accordingly.
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Try this.....

In G2
=IFERROR(IF(OR(ISNUMBER(SEARCH({"Pending","Awaiting supplier confirmation","SBA sent | Awaiting return"},E2))),VLOOKUP(A2,$K$2:$L$35,2,0),""),"")

Open in new window

and copy down.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mikes6058Author Commented:
Both do the job perfectly

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome Mike! Glad to help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.