Help with transferring X Lookup into table

cmstoren

New Member
Joined
Oct 31, 2024
Messages
11
Office Version
  1. 365
Platform
  1. MacOS
Hey - I've been using X-lookup to look for a particular cell value (student code) in a column on a second sheet, and if found, to return the data from 8 columns in the second sheet. The formula is =XLOOKUP(Sheet2!A20,Lookup_Data_Sem1!A:A,Lookup_Data_Sem1!F:T,0) and it works just fine. However, when I try and do exactly the same formula but in a table - it keeps giving me a #SPILL error. Can anyone please tell me what I'm doing wrong? Thanks in advance :)
 
You can't use a formula to return an array in a table ie returning multiple rows and / or columns. This is referred to as Spilling and a table can't handle it. Your return values are "Lookup_Data_Sem1!F:T" so you are returning multiple columns.

Change your formula to something like this and copy it to the right for the next 14 columns. The table should make it populate all rows.
Excel Formula:
=XLOOKUP([@ID],Lookup_Data_Sem1!$A:$A,Lookup_Data_Sem1!F:F,0)
 
Upvote 0
Solution

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