Find the partial match number from data in Excel

In this article, we will learn to Find the partial match number from data in Excel.

Scenario:

In simple words, while working with numbers  data. We need to extract the index of the partial match number in the table using the formula in Excel.

How to solve the problem?

For this article we will be needing to use the MATCH function. Now we will make a formula out of the mentioned function. Here we will give a list of numbers and partial number value. We need to find the nearest or approximate match using the below mentioned generic formula

Generic formula:

{ = MATCH ( "*"&value&"*" , TEXT (range,"0"),0) }

Or

{ = MATCH ( "*"&value&"*" , range&"",0) }

range: list of numbers only numbers

* : wildcard used to match any number of character from the text.

value : partial number value

Note : Ctrl + Shift + Enter instead of just Enter to get the curly braces. Do not put curly braces in manually. This is an array formula which requires this process.

Example:

All of these might be confusing to understand. So, let's test this formula via running it on the example shown below.

Here we have a list of values and we need to find the index of the approx match found in the array.

Now we will use the below formula to get the matched value index in the array.

Formula:

{ = MATCH ( "*"&F6&"*" , TEXT (C4:C16,"0"),0) }

Or

{ = MATCH ( "*"&F6&"*" , C4:C16&"",0) }

Explanation:

  • "*"&F6&"*" lookup value is made in such a way that any number of characters preceding or following it will be matched using * (asterisk) wildcard.
  • TEXT (C4:C16,"0") or C4:C16&"" converts the lookup array to text values to match the value like its text.
  • 0 to find exact match for the value
  • As this is an array formula, Ctrl + Shift + Enter instead of just Enter.
  • MATCH function finds the exact match of lookup value in lookup array and returns its index if found or else it returns #NA! Error.

Here the array and value argument to the function is given as cell_reference. Press Ctrl + Shift + Enter instead of just Enter to get the result.

As you can see in the above snapshot the index number of the matched value is 12.

Here are all the observational notes regarding using the formula.

Notes:

  1. The formula only works with numbers and text values both.
  2. Ctrl + Shift + Enter instead of just Enter to get the curly braces. Do not put curly braces in manually. This is an array formula which requires this process.
  3. Operators like equals to ( = ), less than equal to ( <= ), greater than ( > ) or not equals to ( <> ) can be performed within function applied with numbers only.

Hope this article about how to Find the partial match number from data in Excel is explanatory. Find more articles on COUNTIF functions here. If you liked our blogs, share it with your fristarts on Facebook. And also you can follow us on Twitter and Facebook. We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write to us at info@exceltip.com.

Related Articles

Partial text match with VLOOKUP function : match the given partial value in the table and return values as per it in excel.

Lookup nth match in table using INDEX & MATCH function : find the 2nd, 3rd or 4th match in number array and return values as per it in excel.

Lookup closest match using INDEX & MATCH function : get approximate match using the INDEX and MATCH function in Excel.

Lookup in 2d table using INDEX & MATCH function : INDEX and MATCH function combo extracts values from table in excel. 

How to use wildcards in excel : Count cells matching phrases using the wildcards in excel

Popular Articles

50 Excel Shortcut to Increase Your Productivity : Get faster at your task. These 50 shortcuts will make you work even faster on Excel.

How to use the VLOOKUP Function in Excel : This is one of the most used and popular functions of excel that is used to lookup value from different ranges and sheets.

How to use the COUNTIF function in Excel : Count values with conditions using this amazing function. You don't need to filter your data to count specific values. Countif function is essential to prepare your dashboard.

How to Use SUMIF Function in Excel : This is another dashboard essential function. This helps you sum up values on specific conditions.

Leave a Reply

Your email address will not be published. Required fields are marked *

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Youtube