Multiple values to be Vlookedup according to a list

Pofugu

New Member
Joined
Oct 21, 2014
Messages
2
Hello everybody, and thanks in advance...

I am currently trying to check, according to a list, up to 5 values (dispatched into 5 differents rows, concatenated from other values), and, using a "if" condition, having a "YES" if one of the values is present into my list, or "NO" if it's not.

When the value is first in the row, no problem, of course, but when it's second or more, my formula does not understand and stays into the "#N/A" (not even "NO") of the first row...

[EDIT]: Ah well, it seems that I forgot the "NO"... Can't figure where to insert it...

So, basically:

Code:
=IF(
AV3=(VLOOKUP(AV3;'Critical doc items'!B:B;1;FALSE));"YES";
IF(AW3=(VLOOKUP(AW3;'Critical doc items'!B:B;1;FALSE));"YES";
IF(AX3=(VLOOKUP(AX3;'Critical doc items'!B:B;1;FALSE));"YES";
IF(AY3=(VLOOKUP(AY3;'Critical doc items'!B:B;1;FALSE));"YES";
IF(AZ3=(VLOOKUP(AZ3;'Critical doc items'!B:B;1;FALSE));"YES";)))))



AV/AW/AX/AY/AZ are the 5 values

The critical doc Item is my list (1column, 34 rows)

Hope it's clear enough...

Many thanks in advance...
 
Last edited:

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Welcome to MrExcel.

Can't you use COUNTIF instead of VLOOKUP, eg COUNTIF('Critical doc items'!B:B;AV3)?

Hi Andrew, and thanks for your input.

Did not think about that one... This would do something like:

Code:
=IF(
AV3=(COUNTIF('Critical doc items'!B:B;AV3));"YES";"NO")

That ? It won't work even with the value contained in my list, only "NO" is displayed.

*currently trying*

[EDIT] I also have to include my four other rows (AW / AX / AY AZ) in the process...
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,268
Messages
6,123,966
Members
449,137
Latest member
yeti1016

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