Formula to return value of Y if criteria is met. No value returned is criteria isn't met.

RodneyW

Active Member
Joined
Sep 24, 2010
Messages
439
Office Version
  1. 2013
Platform
  1. Windows
I'm trying to work with this formula:

=IF(ISNA(VLOOKUP($B6,News!$E:$F,2,FALSE)),"N","Y")

Here's what I'm expecting... When it finds the value in $B6 in the News sheet in column E it will look in the second column (F) If there is no value there, it will return no value, meaning the cell where the formula is will be empty. On the other hand, if it finds a value in F it will return a value of "Y".

Here's what's happening. Regardless of whether there is a value in F I'm getting a "Y" in every cell as I drag the formula down.

Any ideas?

Thanks in advance
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
VLOOKUP will return #N/A if B6 doesn't match anything in column E. That doesn't sound like the criterion you're looking for.

Instead, try:

Code:
=IF(VLOOKUP($B6,News!$E:$F,2,FALSE)="","N","Y")
 
Upvote 0
Solution
VLOOKUP will return #N/A if B6 doesn't match anything in column E. That doesn't sound like the criterion you're looking for.

Instead, try:

Code:
=IF(VLOOKUP($B6,News!$E:$F,2,FALSE)="","N","Y")
And like magic, problem solved. Thank you
 
Upvote 0

Forum statistics

Threads
1,215,824
Messages
6,127,104
Members
449,358
Latest member
Snowinx

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