XLOOKUP in Table: formula problem

Ferdib

New Member
Joined
Jan 7, 2020
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Hello everyone,

Situation:
On Sheet 1 I have a table called "Table1" - with Column A listing product Serial Numbers.
On Sheet 2 I have Column A with Product Serial Numbers.
On Sheet 2 I have Column B where I want to pull data from Table1 (Column B) with an XLOOKUP.

My working formula looks like this:
Excel Formula:
=XLOOKUP(A2;Table1[Serial Numbers];Table1[Address];"Unknown Address")

However, when typing the formula I click the header cell of Table 1:
=XLOOKUP(A2; *click Table1 Column A header* results in:
Excel Formula:
=XLOOKUP(A2;Table1[[#Headers];[Serial Numbers]]
...which does not result in a correct XLOOKUP.

Avoiding the table header and clicking A2 results in:
Excel Formula:
=XLOOKUP(G3;Sheet1!A2
And clicking the whole column:
Excel Formula:
=XLOOKUP(G3;Sheet1!A:A

Question: am I doing something wrong?

Thanks in advance!
Ferdi
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Question: am I doing something wrong?
If you want Excel to include the table 1 columns as you have shown in the first formula then you have to either ..
- type them as you have shown in that formula, or
- while building the formula, select all the cells in the table column starting from the cell below the header down to the bottom of the table.
 
Upvote 0
Solution
If you want Excel to include the table 1 columns as you have shown in the first formula then you have to either ..
- type them as you have shown in that formula, or
- while building the formula, select all the cells in the table column starting from the cell below the header down to the bottom of the table.
Thanks Peter!
The 2nd tip was what I was looking for!
It just seems logic to me to select the header cell only, as it is referring to the table already... might just be me haha
Thanks again!
 
Upvote 0
You're welcome. Glad to help. :)

It just seems logic to me to select the header cell only, as it is referring to the table already...
Yes, but if you only click one cell how would Excel know that you wanted to use the column below, and not at the individual heading cell or in fact all of the heading cells?
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,453
Members
448,967
Latest member
grijken

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top