Thank you for responding.
Since I didn’t have a sample file from you, I created one myself based on the formula you provided to test it.
I’d like to confirm something:
Did you copy the full formula =XLOOKUP(F10,(employees[#Headers]),employees)&"" directly into the “Source” field of the Data Validation list?
If this is correct, that’s likely the issue. Excel doesn’t allow complex formulas like XLOOKUP to be used directly in the Data Validation source.
For that reason, you can still use XLOOKUP(F10, ...), but instead of using employees[#Headers], try manually selecting the headers. For example, in my case, I used:
- F10 contains the header name you want to look up (e.g., "Department")
- {"Name","Department","Location"} is a manually typed array of headers
- A2:C5 is the range of your employee data
I tried successfully, and this approach avoids using structured table references and works better in formulas outside of Data Validation.
Additionally, you can try this alternative method:
Instead of placing the XLOOKUP formula directly into the Data Validation source, you can:
- You can use a regular XLOOKUP formula in a helper column to extract the values you want to appear in the dropdown list.
For example:
This will return the entire column that matches the header in F10.
- Then, you can use that output range as the source for your Data Validation list.
I’ve tested this myself and it seems like this is the most effective way to avoid the limitations of using complex formulas directly in the Data Validation source.
So, during your testing, if you run into any issues, feel free to reply here; I’ll do my best to support you within my scope.
If you’d like to reach out to our higher technical support team, I can help guide you through that process.
To do so, could you please confirm whether your account is a personal, school, or work account?
Once I have that information, I’ll help guide you to teach out to the appropriate support channel.
If you find this information helpful, please consider marking it as an answer. Once marked, it will automatically pin to top. As other users will also search information in this community, your valuable marked answer will definitely also help other users who have similar queries easily to find the correct channel and useful information more quickly.
Please feel free to let me know if there’s anything I can help with.
Looking forward to hearing from you!