Lookup cell value in array, VLOOKUP results #N/A

Nanaia

Active Member
Joined
Jan 11, 2018
Messages
271
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I'm searching a column of numbers for a value that is the result of a TEXTJOIN formula. The result of the TEXTJOIN is a number (e.g. 1234). The column of numbers are simply data input numbers. When I search the column for the result of the TEXTJOIN I keep getting #N/A. I know there's a way to use VLOOKUP or INDEX but I can't get any to work.

The value in F2 is a TEXTJOIN result of 1111. I'm searching column H:H for it and want it to say YES if found, NO if not found. The formula used is [ VLOOKUP(F2,H:H,1,0)] and it only gives the result #N/A.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
64,110
Office Version
  1. 365
Platform
  1. Windows
If the values in col H are numbers & not text, try
Excel Formula:
VLOOKUP(F2+0,H:H,1,0)
 
Solution

Nanaia

Active Member
Joined
Jan 11, 2018
Messages
271
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I found that suggestion right as you were responding. Thank you! It works.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
64,110
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,305
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

TEXTJOIN returns text, so for your VLOOKUP or INDEX/MATCH to work you would either need to be looking for a string or convert the result of the TEXTJOIN to a number.
 

Nanaia

Active Member
Joined
Jan 11, 2018
Messages
271
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
So if the letter N is added to the end of the TEXTJOIN result, how would you change the formula since it's no longer looking for just numbers? VLOOKUP gives a #VALUE! error. IF was with a YES, NO result was added to the VLOOKUP. [=IF(VLOOKUP(Q2,S:S,1,FALSE),"YES","NO")]
 
Last edited:

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
64,110
Office Version
  1. 365
Platform
  1. Windows
Ideally col S should contain either numbers, or text & not a mix of both.
 

Forum statistics

Threads
1,144,619
Messages
5,725,331
Members
422,617
Latest member
rahul27ragit

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
Top