Get Content $1.00 / 1,000 calls

String vLookup

What this tool does

This tool helps you find a matching item from a provided list based on a specific piece of text you provide. It is designed for users who need to clean up data or verify that a value exists within a known set of options. It solves the problem of manually searching through lists to find the correct match.

When to use it

  • Checking if a user-entered city name matches a valid city in your reference list.
  • Verifying if a product code exists in your master product catalog.
  • Finding the correct category label for a loose text input.
  • Validating if an input text corresponds to a known valid option.

What to expect

You will receive the matching text from your list if a match is found. If no match is found, you will receive an empty result. The system looks for an exact or partial match depending on the input.

Limitations

  • The tool performs a simple text comparison and may not handle complex variations or typos automatically.
  • It does not support advanced fuzzy matching logic beyond basic inclusion.
  • The order of items in your list may affect which match is returned if multiple items could match.

When it fails

  • If the provided text is empty, no match can be found.
  • If the list of texts is empty, no match can be found.
  • If the input text does not appear in the list, the result will be empty.

Good to know

  • The comparison is case-insensitive, meaning 'Apple' and 'apple' are treated as the same.
  • If multiple items in your list could match, the first one found is returned.

Input data

Parameter Required Example Description
text Yes s4mple The text value you want to find. It is required. Example: 'apple'.
texts Yes sample,samples A list of candidate texts separated by commas to search through. It is required. Example: 'pineapple,apple juice,apple'.

Output data

Field Description
result The matching text found from the list. If a match is found, it returns the exact text from the list (e.g., 'apple'). If no match is found, it returns an empty value.