Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Refering to multiple tables

I have 5 tables in a workbook. The user selects a table from a drop-down box.
I then want a list to appear that refers to a column from the table he
selected. How do I tell a cell to refer to table row X where the table name
itself is given in a cell?
--
Oxfordshire, UK
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 772
Default Refering to multiple tables

Without more details, this won't totally answer your question, but it should
give you enough. I have a cell with a Sheet name in it, the data always
changes so i never know which sheet to look on. A6 contains the sheetname in
this example, the indirect function tells it to use what is in the cell. Hope
this helps


=VLOOKUP($A6,INDIRECT("'"&$A6&"'!$A$2:$D$25"),2,0)
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Broadband Al" wrote:

I have 5 tables in a workbook. The user selects a table from a drop-down box.
I then want a list to appear that refers to a column from the table he
selected. How do I tell a cell to refer to table row X where the table name
itself is given in a cell?
--
Oxfordshire, UK

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Refering to multiple tables

Halelujah! All these years programming Excel and I had never come across
"indirect". That's exactly what I needed. Thanks a lot!
--
Oxfordshire, UK


"John Bundy" wrote:

Without more details, this won't totally answer your question, but it should
give you enough. I have a cell with a Sheet name in it, the data always
changes so i never know which sheet to look on. A6 contains the sheetname in
this example, the indirect function tells it to use what is in the cell. Hope
this helps


=VLOOKUP($A6,INDIRECT("'"&$A6&"'!$A$2:$D$25"),2,0)
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Broadband Al" wrote:

I have 5 tables in a workbook. The user selects a table from a drop-down box.
I then want a list to appear that refers to a column from the table he
selected. How do I tell a cell to refer to table row X where the table name
itself is given in a cell?
--
Oxfordshire, UK

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
refering to other workbooks cjbarron5 Excel Discussion (Misc queries) 2 June 2nd 08 08:17 PM
Refering a cell Arun Kumar Saha Excel Worksheet Functions 2 June 18th 07 12:48 PM
Refering to Cells madh83 Excel Worksheet Functions 3 July 19th 06 11:39 PM
refering to previous sheet [email protected] Excel Discussion (Misc queries) 3 January 25th 06 02:55 PM
Refering cells between worksheets In Need Excel Worksheet Functions 2 November 23rd 05 07:22 PM


All times are GMT +1. The time now is 05:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"