Why it works
- What it does
- Give XLOOKUP a result range several columns wide and it returns the whole matching row, spilled across. One formula fills the order card. Search whole columns so new orders are found, and trim the value you look for when it is pasted from an email.
- The shape of the formula
- =XLOOKUP(TRIM(what), lookup column, first column:last column)
- How to remember it
- A wider result range gives a wider answer.
- The usual mistake
- A pasted order number with a space at the end. The lookup says #N/A for an order that is there.
Keep practicing
Updated