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
443
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

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
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,216,082
Messages
6,128,717
Members
449,465
Latest member
TAKLAM

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