Get Table from Cell

bassplr19

New Member
Joined
Sep 11, 2023
Messages
35
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I have a table that is looking up data from a different table. One of the input variables is the header, I have 29 columns that all have the same formula (across 250 different tables). I'd like to write a lambda function, so I can drag the formula across the whole table. Is there a way I can tell that cell A13 is in table LookupA3 and cell A24 is in LookupA4, for example? Even better, I'd like it to tell me what it's header is!
I'd like to NOT manually enter the head as D$2, then drag...again 250 tables
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Ever selected the cells you want to update and then pressed Ctrl+Enter? It fills the formula across the entire selection of cells even if they are not adjacent.
 
Upvote 0
Sorry, you have to select the cells and enter the formula then press ctrl+enter to update them all. Beyond that I am not sure what you are trying to achieve as there is no sample data to understand it.
 
Upvote 0
Ok, that might help a little bit. But my question is, if I'm in Cell B7 and B7 is in column xyz of Table LookupA1, how can I use cell B7 to use itself to tell me it's header data, i.e., xyz? LookupA1[[#Headers],[xyz]]

Otherwise, using the CTRL-Enter trick, I still need to type in my lambda function datalookup(B$7 (header info),$A8 (first column),$A$15 (outside table range variable)) and these cells change for EACH table.
 
Upvote 0
Ok, that might help a little bit. But my question is, if I'm in Cell B7 and B7 is in column xyz of Table LookupA1, how can I use cell B7 to use itself to tell me it's header data, i.e., xyz? LookupA1[[#Headers],[xyz]]
I think that's best achieved with VBA, I'm not great wwith formulas as they are very limited in capability. With VBA you can specify that it returns the value of specific cells relative to the active cell very easily. It may be worth your while trying to learn a little VBA in the process so you get a feel for its power and usefiulness in not only Excel mu all MS Office applications.
 
Upvote 0

Forum statistics

Threads
1,223,871
Messages
6,175,092
Members
452,612
Latest member
MESTeacher

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