Combining If, And, Isnumber and 2 vlookups

ryland00

Board Regular
Joined
Jun 13, 2014
Messages
76
Hello,

I am trying to figure out how to do this and I am sure it's probably an easy fix but I have two formulas...

=IF(AND(ISNUMBER($I2),VLOOKUP($P:$P,Key!AD:AE,2,0)="Yes"),"Yes","No")

=VLOOKUP($P2&$I2,Key!Z:AA,2,0)

The first formula is saying that if the value in i2 is a number AND when the vlookup returns with a value of "Yes", then say "Yes", else "No"

The second formula is just a standard vlookup checking two values combined against a key where I have a set of values to check against.

I am just trying to combine the two so that instead of "No" in the first formula, I could put the vlookup there... Like using an IFERROR... But I just can't seem to figure out how to make it work. The values that don't meet the first two criteria just result in an NA.

Any help is greatly appreciated!

Ryan
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Unfortunately, this did not work. :(

Appreciate your help!

Well,

I changed the formula to the following and it now returns "TRUE" for all of the lines, so I guess I "figured it out". Hopefully, although I wasn't very descriptive, this will help some lost soul in the future!

=IFERROR(AND(ISNUMBER($I3),VLOOKUP($P3,Key!AD:AE,2,0)="Yes"),VLOOKUP($P3&$I3,Key!Z:AA,2,0)="yes")

Ryan
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,346
Members
452,638
Latest member
Oluwabukunmi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top