Vlookup to find cell reference

Caly

Board Regular
Joined
Jul 19, 2015
Messages
159
Office Version
  1. 365
  2. 2013
  3. 2011
  4. 2010
  5. 2007
Platform
  1. Windows
Hi I need to see if a cell matches another cell to bring in data associated with it. I’m trying to see if column a row 1 says something to see if it is in that range of data and if yes return the associated data but if not then say no data. How can I write the formula to show that? I’m trying this but it shows #n/a if there is no match.

Column A. Column B
T-shirt. Red
Shoes. Blue

Next tab has the summary to input and I’m using the formula to enter in column B:

=if(vlookup(A2,data range from other tab $A$1:$B$2,2,0)<>A2,”No match”,
vlookup(A2,data range from other tab $A$1:$B$2,2,0)


Column A. Column B (formula)
Name. Result
T-shirt. Red
Purse. No match
 
Last edited:

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
For what you want you can use the fact that if it doesn't find it, it will return #N/A and wrap it in an IFERROR or IFNA.
Excel Formula:
=IFERROR(vlookup(A2,data range from other tab $A$1:$B$2,2,0),"No match")
 
Upvote 0
May be:
Code:
=ifferror(vlookup(A2,data range from other tab $A$1:$B$2,2,0),"no match")
 
Upvote 0
With Excel 365 you could use the FILTER function.
Book2
AB
1T-shirtRed
2ShoesBlue
3
4
5
6Name
7T-shirtRed
8PurseNo Match
Sheet1
Cell Formulas
RangeFormula
B7:B8B7=FILTER($B$1:$B$2,A7=$A$1:$A$2,"No Match")
 
Upvote 0

Forum statistics

Threads
1,214,870
Messages
6,122,019
Members
449,060
Latest member
LinusJE

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