Returning 6 columns of data from a second table from one key lookup.

Brboland

New Member
Joined
Nov 19, 2021
Messages
12
Office Version
  1. 365
Platform
  1. Windows
I have two tables. One is my data table where I want to retrieve certain columns based on my first table where I will enter one field to lookup. This will be a table of roughly 300 rows. The table where I want to pull the data from is roughly 9K rows. What would be the best formula to use in this case? I have one workbook with two worksheets/tables.
 
As you are putting that into a table, you cannot use spill ranges, so you will need to use xlookup in each column to retrieve the data you want.
Are you happy to convert the table with the formula into a normal range?

Als0 the project Id column has nothing that resembles your lookup value of 20211
Thank you for the response. The data of "20211" is an example where the lookup range I should have displayed should have started with 20211. Each time I try using INDEX, MATCH, and CHOOSE I get the SPILL error. I appreciate your suggestions.
 
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
That still does not answer my question regarding the table that will contain the formula.
 
Upvote 0
In that case you use something like
Excel Formula:
=XLOOKUP(A2,Tbl_Data[Project ID],CHOOSECOLS(Tbl_Data[[Name]:[Cust Level 1]],1,4,12))
 
Upvote 0

Forum statistics

Threads
1,215,093
Messages
6,123,068
Members
449,091
Latest member
remmuS24

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