# Vlookup - Partial Match

1. ## Vlookup - Partial Match

Hello,

Im trying to do vlookup between 2 columns, i.e. If Column C Info (Partial Match) Is Not On Column A, then Display Result In Column F (where it wasn't a partial match), Else Leave Blank

If there is a partial match, display nothing.

The formula I tried, in column I is obviously not giving desired result.
=IF(ISNA(VLOOKUP(C2,\$A\$2:\$A\$5,1,TRUE)),"-",(VLOOKUP(C2,\$A\$2:\$A\$5,1,TRUE)))

2. Try:

=IF(ISNA(VLOOKUP("*"&C2&"*",\$A\$2:\$A\$5,1,0)),"-",VLOOKUP("*"&C2&"*",\$A\$2:\$A\$5,1,0))

or

=IF(ISNA(MATCH("*"&C2&"*",\$A\$2:\$A\$5,0)),"-",MATCH("*"&C2&"*",\$A\$2:\$A\$5,0))

however, would like it to return all values in column c, which are not in column a, where column c and and column A have a partial match.

see column f on spreadsheet, for actual desired result.

sorry if i wasnt clear first time.

4. my bad thought i figured it out but not quite yet...so close..dang

5. Something like:

=IF(ISNUMBER(MATCH(C2,LEFT(\$A\$2:\$A\$5,LEN(C2)),0)),"-",C2)

confirmed with CTRL+SHIFT+ENTER not just ENTER and then copied down...

6. Hi NBV5,

I uploaded new spreadsheet (please see attachment), comparing tab b to tab a, with results in tab c, cell a1, but am getting all "-"'s, using

=IF(ISNA(VLOOKUP("*"&B!A1&"*",A!\$A\$2:\$A\$5,1,0)),"-",VLOOKUP("*"&B!A1&"*",\$A\$2:\$A\$5,1,0))

the actual desired result is listed on tab c, which is displaying where the partial match was not found.

7. ...............anyone?

8. Hi try this formula

``Please Login or Register  to view this content.``
* Dont put curly braces...
* Dont presss enter , instead press ctrl+shift+enter.. curly brace automatically appear... if curly brace does not appear after pressing ctrl+shift+enter then forumla will not work

9. Hi Shijesh,

Yes it works for the most part. Thanks. I am a bit confused perhaps you can clarify...

ok that was sample sheet i posted which in tab a had 5 rows. In actual i have about 299 rows and in tab b, i have 320 rows

but it retuns a "-" for all values, when I change it back to A!\$A\$2:\$A\$5, it returns results but naturally it wouldnt be doing a vlookup on. I noticed when I just change a value in formula, it removes the {} braces.

anyhow, put formula with = sign first, then pressed Ctrl+Shift+Enter, and it put curly braces in.

Question - I've never seen this functionaly of curly braces before. What do they do, - where can I find out more about them, why doesnt formula work without them

I understand most of your formula, upto ={IF(ISNA(VLOOKUP(B!A2,

But dont understand, LEFT(A!\$A\$2:\$A\$5, LEN(B!A2))

I know left function has char, text

could you perhaps explain your formula in plain english,ie.

ie. lookup cell a2 in this array, but if its true its not there (IF(ISNA(, then put ,B!A2 otherwise put -, hence ,"-" something like that if you wouldnt mind.

Again thanks to both of you for putting your valuable time to helping me out. Sincerely appreciate it.

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1