Return character X when a item is found in Vlookup and blank if there is no data in the cell.

HoboJoenME

New Member
Joined
Mar 11, 2021
Messages
3
Office Version
  1. 2013
Platform
  1. Windows
Good morning,

So I have a spreadsheet where I want to look up a name and have it return as "Have" if it is present in the data sheet and "Don't have" if it isn't there on another sheet. I used the formula =IF(VLOOKUP(R6,'2 Star Bots'!$A$3:$A$162,1,FALSE)=FALSE,"Don't Have","Have") to see if this worked but when it sees that the name isn't there, it just says N/A, it does come back with "Have". R6 is the cell where the name is, '2 Star Bots'!$A$3:$A$162 is the range where all the names are located. Even better if I could have it just mark X that it is present in the data sheet and blank if it isn't but I'll take what I can get. Any suggestions?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Haven't tried it but think it should do the trick
=IF(ISERROR(VLOOKUP(R6,'2 Star Bots'!$A$3:$A$162,1,FALSE),"Don't Have","Have")
 
Upvote 0
Haven't tried it but think it should do the trick
=IF(ISERROR(VLOOKUP(R6,'2 Star Bots'!$A$3:$A$162,1,FALSE),"Don't Have","Have")
It says I've entered too many arguments for this function.
 
Upvote 0
How about
Excel Formula:
=IF(ISNA(VLOOKUP(R6,'2 Star Bots'!$A$3:$A$162,1,FALSE)),"Don't Have","Have")
 
Upvote 0
How about:

=IF(ISNUMBER(MATCH(R6,'2 Star Bots'!$A$3:$A$162,0)),"X","")
 
Upvote 0
Haven't tried it but think it should do the trick
=IF(ISERROR(VLOOKUP(R6,'2 Star Bots'!$A$3:$A$162,1,FALSE),"Don't Have","Have")
****! =IF(ISERROR(VLOOKUP(R6,'2 Star Bots'!$A$3:$A$162,1,FALSE)),"Don't Have","Have")
 
Upvote 0
A couple more ideas...
Book1
ARST
2Items
3z
4y
5xQueries
6cyhavehave
7aahavehave
8bchavehave
9ddon't havedon't have
Sheet1
Cell Formulas
RangeFormula
S6:S9S6=IF(SUMPRODUCT(--($A$3:$A$8=R6)),"have","don't have")
T6:T9T6=IF(ISNUMBER(MATCH(R6,$A$3:$A$8,0)),"have","don't have")
A couple more ideas...
Book1
ARST
2Items
3z
4y
5xQueries
6cyhavehave
7aahavehave
8bchavehave
9ddon't havedon't have
Sheet1
Cell Formulas
RangeFormula
S6:S9S6=IF(SUMPRODUCT(--($A$3:$A$8=R6)),"have","don't have")
T6:T9T6=IF(ISNUMBER(MATCH(R6,$A$3:$A$8,0)),"have","don't have")
Yes, that did the trick! Thank you very much!
 
Upvote 0
We're happy to help. Welcome to the Board!
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,625
Members
449,093
Latest member
catterz66

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