IF and vlookup to display non found entries

Paul Naylor

Board Regular
Joined
Sep 2, 2016
Messages
98
Office Version
  1. 365
  2. 2003 or older
Platform
  1. Windows
  2. Mobile
  3. Web
HI Hoping someone can help?

Using the following formula to identify if an item doesn't appear on a subsequent sheet:

=IF(T2="Y", VLOOKUP($C2,Sun!$C:$D,1,False))

Rather than displaying error #N/A if T2="Y" and not found on Sun! Sheet' want to display "N" if T2 ="Y" & found on Sun! Sheet, "Y" if T2="Y" & non found on Sun! Sheet or "N/A" , if T2="N"
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
How about
Excel Formula:
=IF(T2<>"Y","N/A",IF(ISNUMBER(MATCH($C2,sun!C1:C1000,0)),"N","Y"))
 
Upvote 0
That's great , works a treat !, just needed to amend formula to encompass full column $C:$C, couldn't have done it without you
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,984
Messages
6,122,601
Members
449,089
Latest member
Motoracer88

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