ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   lookup function, in which the table's name is including in another (https://www.excelbanter.com/excel-discussion-misc-queries/162239-lookup-function-tables-name-including-another.html)

Giannis

lookup function, in which the table's name is including in another
 
I have 2 tables with names AA & BB.
In cell K1 i write the table's name (Aa or BB)
In cell L8 i could use a lookup function like (lookup_value;AA;row_index_num)
but instead of this i want to use something like
(lookup_value;K1;row_index_num)
How can i do this?

Sorry for my english.
Thank you

T. Valko

lookup function, in which the table's name is including in another
 
As long as the tables aren't dynamic ranges try it like this:

INDIRECT(K1)

--
Biff
Microsoft Excel MVP


"Giannis" wrote in message
...
I have 2 tables with names AA & BB.
In cell K1 i write the table's name (Aa or BB)
In cell L8 i could use a lookup function like
(lookup_value;AA;row_index_num)
but instead of this i want to use something like
(lookup_value;K1;row_index_num)
How can i do this?

Sorry for my english.
Thank you




Niek Otten

lookup function, in which the table's name is including in another
 
Look in HELP for the INDIRECT() function

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Giannis" wrote in message ...
|I have 2 tables with names AA & BB.
| In cell K1 i write the table's name (Aa or BB)
| In cell L8 i could use a lookup function like (lookup_value;AA;row_index_num)
| but instead of this i want to use something like
| (lookup_value;K1;row_index_num)
| How can i do this?
|
| Sorry for my english.
| Thank you



Giannis

lookup function, in which the table's name is including in ano
 
Thank you very much

Giannis

Ο χρήστης "Niek Otten" *γγραψε:

Look in HELP for the INDIRECT() function

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Giannis" wrote in message ...
|I have 2 tables with names AA & BB.
| In cell K1 i write the table's name (Aa or BB)
| In cell L8 i could use a lookup function like (lookup_value;AA;row_index_num)
| but instead of this i want to use something like
| (lookup_value;K1;row_index_num)
| How can i do this?
|
| Sorry for my english.
| Thank you





All times are GMT +1. The time now is 11:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com