Formula not working

rootsrules

New Member
Joined
Feb 4, 2010
Messages
19
Hi everyone!

I am trying to use this formula:
=if(VLOOKUP(A2,'2021 Final Registered'!$A$2:$B$1000,2,false)=A2,"Yes","No")
But the result is #N/A.
I am trying to check if a certain cell that contains a name is on the list from another tab.
If so, then the result comes out Yes (which is working fine).
However, when the result did not find the name, then it gives me #N/A instead of No.
Is there a solution for this?
Also, I am using Google Sheets instead of Excel... (sigh)

Thank you!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
You want IF(ISERROR(VLOOKUP()....
I input:
=if(ISERROR(VLOOKUP(A2,'2021 Final Registered'!$A$2:$B$1000,2,false)=A2,"Yes","No"))
And an error message came out:
Wrong number of arguments to IF. Expected between 2 and 3 arguments, but got 1 argument.
 
Upvote 0
Put your iferror in so: =iferror(if(VLOOKUP(A2,'2021 Final Registered'!$A$2:$B$1000,2,false)=A2,"Yes","");"No")
 
Upvote 0
Hi,

I'm thinking, why are you using VLOOKUP

If Both A & B Column in '2021 Final Registered' sheet needs to match A2 on the same row, use:

Excel Formula:
=IF(COUNTIFS('2021 Final Registered'!$A$2:$A$1000,A2,'2021 Final Registered'!$B$2:$B$1000,A2),"Yes","No")

If Only B Column in '2021 Final Registered' sheet needs to match A2, use:

Excel Formula:
=IF(COUNTIF('2021 Final Registered'!$B$2:$B$1000,A2),"Yes","No")
 
Upvote 0

Forum statistics

Threads
1,214,795
Messages
6,121,624
Members
449,041
Latest member
Postman24

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