Examples for the xlookup formula
Copy these examples into a spreadsheet and adjust the ranges for your own data.
XLOOKUP syntax pattern
=XLOOKUP(search_key, search_range, output_range, [fallback], [match_mode], [search_mode])Use this XLOOKUP pattern as the starting point for your spreadsheet formula.
XLOOKUP in a worksheet
=XLOOKUP(search_key, search_range, output_range, [fallback], [match_mode], [search_mode])Searches for a value in a linear range and returns a row or column from another range.
When to use XLOOKUP
Use XLOOKUP when you need to search for a value in a linear range and returns a row or column from another range.
- Find matching values in tables and ranges.
- Connect IDs, names, and categories across spreadsheet data.
How XLOOKUP works in Quadratic
In Quadratic, XLOOKUP follows the syntax XLOOKUP(search_key, search_range, output_range, [fallback], [match_mode], [search_mode]). The function works inside Quadratic formulas and can be combined with spreadsheet ranges, tables, and other formulas.
Common XLOOKUP mistakes
Most XLOOKUP issues come from mismatched argument types, ranges that do not cover the intended data, or optional parameters being omitted when the default behavior is not what you expected.
- Check each required parameter before copying the formula across a sheet.
- Confirm that ranges line up with the rows or columns you intend to analyze.
- Use Quadratic AI to explain or debug the formula when the result looks wrong.