#1   Report Post  
Alan
 
Posts: n/a
Default Table References

I have 3 Tables, i.e. T1, T2 and T3 defined as cell ranges with the same
number of rows/columns, different cell values. I want the user to select a
table, then select a row value and column value. I use the row and column
values to create indexes into the table and retrieve a cell value.

I use a cell Data Validation with a list value of T1, T2 and T3 for the user
to select a table (and select the row and column values).

How do I convert the Data Validation string value of T1, T2 or T3 to the
appropriate table reference? Once I have the table reference, I can use the
row/column values to index the table.

Please submit any better solutions you may have.

thanks.

  #2   Report Post  
Tom Ogilvy
 
Posts: n/a
Default

Indirect(A1)

where A1 holds T1, T2 or T3

--
Regards,
Tom Ogilvy

"Alan" wrote in message
...
I have 3 Tables, i.e. T1, T2 and T3 defined as cell ranges with the same
number of rows/columns, different cell values. I want the user to select

a
table, then select a row value and column value. I use the row and column
values to create indexes into the table and retrieve a cell value.

I use a cell Data Validation with a list value of T1, T2 and T3 for the

user
to select a table (and select the row and column values).

How do I convert the Data Validation string value of T1, T2 or T3 to the
appropriate table reference? Once I have the table reference, I can use

the
row/column values to index the table.

Please submit any better solutions you may have.

thanks.



  #3   Report Post  
Alan
 
Posts: n/a
Default

thanks.

"Tom Ogilvy" wrote:

Indirect(A1)

where A1 holds T1, T2 or T3

--
Regards,
Tom Ogilvy

  #4   Report Post  
Tom Ogilvy
 
Posts: n/a
Default

That assumed that you had names defined (insert=Name=Define) to identify
your tables. It was assumed that those names were T1, T2 and T3, but Excel
wouldn't let you use those names because they could be confused with cell
references. You could name your tables something like TableT1, TableT2,
TableT3. Then if you use indirect and the cell will hold T1, T2 or T3 in A1
use

=Indirect("Table" & A1)

--
Regards,
Tom Ogilvy

"Alan" wrote in message
...
thanks.

"Tom Ogilvy" wrote:

Indirect(A1)

where A1 holds T1, T2 or T3

--
Regards,
Tom Ogilvy



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
Removing errors from a Pivot table Mighty Magpie Excel Discussion (Misc queries) 2 February 3rd 05 03:15 PM
table dow Excel Discussion (Misc queries) 0 January 12th 05 02:25 PM
table dow Excel Worksheet Functions 0 January 11th 05 05:17 PM
Running Data Table using an input that triggers DDE linked data [email protected] Excel Discussion (Misc queries) 1 December 16th 04 11:56 AM
Data Table - Does it work with DDE links and stock tickers? Post Tenebras Lux Excel Discussion (Misc queries) 0 December 1st 04 05:15 PM


All times are GMT +1. The time now is 10:01 PM.

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"