How to use the Excel VLOOKUP Function for a Partial Match in a Table Array – 3 Examples

Example 1 – Using Wildcards in the VLOOKUP Function to Look up a Partially Matched Text

Steps:

  • Prepare the dataset: assign cells to insert the lookup value (here, H4) and cells to see the output (here, H6:H9).

sampl dataset : VLOOKUP Partial Match in Table Array in Excel

  • Enter the formula in H6:
=VLOOKUP("*"&H4&"*",B5:E12,1,FALSE)

Formula Breakdown:

Syntax of VLOOKUP Function: =VLOOKUP(lookup_value,table_array,col_index_num,[range_lookup])

  • Lookup_value = “*”&H4&”*”: the look_up value is H4 and the asterisk(*) is used before and after the cell reference.
  • Table_array = B5:E12:  is the table array in which the Vlookup function will work.
  • Col_index_num=1: extracts the value of 1st column of the row in which the partial match is found.
  • Range_lookup = False: False is used for a Partial Match.

This is the output.

Applying VLOOKUP function with Partial Match in Table Array

  • To see the ID, Joining Date, and Sales value, change the column index number to 2, 3, and 4 in the formula.

  • Enter “wil” in the search box.

This is the output.

VLOOKUP Partial Match with WildCards in Table Array

Read More: How to Use VLOOKUP to Find Partial Text from a Single Cell


Example 2 – Using the VLOOKUP Function for a Partial Match (the First 3 Characters)

Steps:

  • Enter the formula in H6:
=VLOOKUP(LEFT($H$4,3)&"*",$B4:$E$12,1,FALSE)
the LEFT function extracts the leftmost 3 characters in H4 and the VLOOKUP function searches for the leftmost 3 characters in the first column of the selected table.

Applying VLOOKUP Partial Match for Only First 3 Characters

  • Change the column index number in the VLOOKUP function to 2, 3, and 4 to see the ID, Date, and Sales values.

VLOOKUP Partial Match result for matching only the First 3 Characters

Read More: How to Vlookup Partial Match for First 5 Characters in Excel


Example 3 – Look Up a Partial Match for Multiple Values

Steps:

  • Create search boxes to enter partial names and IDs. Here, H4 and H5.

Dataset of VLOOKUp Partial Match for Multiple Values

  • Insert a helper column to enter the combined text of the the columns “Full Name” and “ID”.
  • Enter the formula in B5:
=C5&D5

Combining column values

  • Drag down the Fill Handle to paste the formula into the other cells or press Ctrl+C and Ctrl+V to copy and paste.

Dragging Fill handle

  • Enter the formula in I7:
=VLOOKUP(I4&"*"&I5&"*",B5:F12,2,0)

Formula Breakdown:

The formula searches for the row values that partially match the values in I5 and I6 and returns the output in the helper column.

Applying VLOOKUp Partial Match formula for Multiple Values

  • Change the column index numbers to see ID, Joining Date, and Sales.

output value of VLOOKUp Partial Match for Multiple Values

Two names in the “Full Name” column match the search item “Jam”: “James” and “Jamson”. Only “James” is returned as “6” matches James only.


The Excel VLOOKUP Function Does Not Work for Partial Matches in Table Array – Solutions

1. Wrong Placement of Wildcard Characters

Place the Asterisk (*) / wildcard characters between inverted commas. Use an ampersand(&) between the asterisk and the cell reference:

VLOOKUP(“*”&lookup_value&”*”,table_array, column_index_num, [range_lookup])

2. False Column Number Reference in Formula

Recheck the column index number and the table array. The look_up value must be in the first column of the selected data range.

3. Mismatch Between Search and Source Data

You can’t search for an item with extra or different characters from the target value. Observe the image below.

 

4. Extra Space Inside the VLOOKUP Formula

Remove spacing between symbols and cell numbers.


Download Practice Workbook

Download the practice workbook.


Related Article


<< Go Back to VLOOKUP Partial Match | Excel VLOOKUP Function | Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Osman Goni Ridwan
Osman Goni Ridwan

OSMAN GONI RIDWAN is a marine engineer who loves exploring Excel and VBA programming. Programming, to him, is a time-saving tool for efficiently managing data, files, and internet tasks. He is proficient in Rhino3D, Maxsurf, C++, MS Office, AutoCAD, Excel, and VBA and goes beyond the basics. Armed with a B.Sc in Naval Architecture & Marine Engineering from BUET, OSMAN has transitioned into the role of a content developer. Specializing in creating technical content exclusively centered around Excel... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo