Forum Discussion
ExcelApprentice96
Oct 22, 2026Copper Contributor
formulas
I'm trying to use the XLOOKUP formula and when trying I can use the 1 cell reference but can't use the whole column without excel popping up an error message about there being a problem with my formu...
NathanReed
Oct 25, 2026Iron Contributor
XLOOKUP does accept whole-column references. If you’re looking up the value in D2 against column A and returning the corresponding value from column B, use:
=XLOOKUP(D2,A:A,B:B,"Not found")
Keep D2 as the single value you want to find. A and B are the columns Excel searches and returns from, and those ranges must have matching row counts.
If Excel rejects the formula immediately, your regional settings may require semicolons:
=XLOOKUP(D2;A:A;B:B;"Not found")
If it still fails, paste your exact formula and the full error message. That will help distinguish a reference problem from a formula syntax issue.