Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to conditionally sum numeric data in an Excel table using SUMIFS
  • Conditional Formatting Color Scales Examples in Excel
  • How to calculate correlation coefficient Correlation in Excel
  • How to Use Solver Tool in Excel
  • How to create running total in an Excel Table

References

  • Two-way lookup with VLOOKUP in Excel
  • How to get address of named range in Excel
  • Lookup entire row in Excel
  • How to use Excel ROWS Function
  • How to use Excel COLUMN Function

Data Validations

  • Excel Data validation must begin with
  • Excel Data validation only dates between
  • Excel Data validation date in specific year
  • Excel Data validation with conditional list
  • Excel Data validation date in next 30 days

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:   Get first match cell contains 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”.

Post navigation

Previous Post:

Weighted average in Excel

Next Post:

Win loss points calculation 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

Logical Functions

  • TRUE function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel TRUE Function
  • OR function Examples in Excel
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • Excel If, Nested If, And/Or Criteria Examples

Date Time

  • Display Days in month in Excel
  • Convert text timestamp into time in Excel
  • Get work hours between dates custom schedule in Excel
  • Display Days until expiration date in Excel
  • Calculate number of hours between two times in Excel

Grouping

  • How to randomly assign data to groups in Excel
  • Calculate conditional mode with criteria in Excel
  • Map inputs to arbitrary values in Excel
  • Group times into unequal buckets in Excel
  • Running count group by n size in Excel

General

  • List worksheet index numbers in Excel
  • How to calculate profit margin percentage in Excel
  • How to calculate total from percentage in Excel
  • How to create dynamic worksheet reference in Excel
  • How to Delete Cells, Row and Rows in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning