Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • How to get last column number in range in Excel
  • How to get address of first cell in range in Excel
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • How to use Excel INDIRECT Function
  • How to get last row in mixed data with blanks in Excel

Data Analysis Examples

  • Data Series in Excel
  • Excel Line Chart
  • How to count table rows in Excel
  • How to Create Gantt Chart in Excel
  • Calculate Conditional Percentile ‘IF’ in table in Excel

Data Validation Examples

  • Excel Data validation number multiple 100
  • Excel Data validation whole percentage only
  • Excel Data validation date in next 30 days
  • Excel Data validation require unique number
  • Excel Data validation must contain specific text

First match in range with wildcard in Excel

by

This tutorial shows how to calculate First match in range with wildcard in Excel using the example below;

Formula

=INDEX(range,MATCH(val&"*",range,0))

Explanation

To get the value of the first match in a range using a wildcard, you can use an INDEX and MATCH formula, configured for exact match.

Worked Example:   How to get first row number in range in Excel

In the example shown, the formula in F5 is:

=INDEX(B5:D5,MATCH(E5&"*",B5:D5,0))

How this formula works

Working from the inside out, MATCH is used to locate the position of the first match in the range B5:D5. The lookup_value is based on the value in B5 joined with an asterisk (*) as a wildcard, and match_type is set to zero to force an exact match:

MATCH(E5&"*",B5:D5,0)

E5 contains the string “calc” so, after concatenation, the MATCH function looks like this:

MATCH("calc*",B5:D5,0)

and returns 3 inside index as “row_num”:

=INDEX(B5:D5,3)

Although the range B5:D5 is horizontal and contains just one row, INDEX correctly retrieves the 3rd item in the range: “calc 1500”.

Worked Example:   Sum range with INDEX in Excel
Worked Example:   Left Lookup in Excel

Post navigation

Previous Post:

Exact match lookup with INDEX and MATCH in Excel

Next Post:

Get cell content at given row and column in Excel

Leave a Reply Cancel reply

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

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • How to extract word containing specific text in Excel
  • How to extract last two words from text string in Excel
  • SEARCH, SEARCHB functions: Description, Usage, Syntax, Examples and Explanation
  • Change Case: Uppercase, Lowercase, Propercase in Excel
  • How to display conditional message with REPT function in Excel
  • MINUTE function: Description, Usage, Syntax, Examples and Explanation
  • Get day name from date in Excel
  • NETWORKDAYS.INTL function: Description, Usage, Syntax, Examples and Explanation
  • Get project midpoint in Excel
  • Display Date is same month in Excel
  • How to calculate simple interest in Excel
  • TBILLEQ function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate compound interest in Excel
  • ACCRINT function: Description, Usage, Syntax, Examples and Explanation
  • Calculate loan interest in given year in Excel
Acronyms, Abbreviations, Initialism & What They Stand For
© 2022 xlsoffice . All Right Reserved. | Teal Smiles