Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Doug Laidlaw
 
Posts: n/a
Default Need dynamic table_array formula that looks in different sheets

Let's say I have one tab with just my formulas and then 3 tabs of data which
we'll call RED, BLUE, & GREEN. In cell A1 on my formula page I created a
dropdown box using the List (Data\Validation).

How do I make a formula, vlookup in this case, in cell B5 to that looks as
A5 and refers to the sheetname in my dropdown box in cell A1 rather than the
sheetname itself? In other words I want to be able to choose RED, BLUE, or
GREEN in my dropdown box, and have my vlookup look in that selected tab.
Currently I have the formula as
=VLOOKUP(A5,RED!$A$1:$D$10,4,FALSE). I want the RED portion to correspond
to my dropdown box. In actuality I only want part of my table array to
change accordingly to my dropdown box. -Doug

  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=VLOOKUP(A5,INDIRECT("'"&A1&"'!$A$1:$D$10"),4,0)


Regards,

Peo Sjoblom

"Doug Laidlaw" wrote:

Let's say I have one tab with just my formulas and then 3 tabs of data which
we'll call RED, BLUE, & GREEN. In cell A1 on my formula page I created a
dropdown box using the List (Data\Validation).

How do I make a formula, vlookup in this case, in cell B5 to that looks as
A5 and refers to the sheetname in my dropdown box in cell A1 rather than the
sheetname itself? In other words I want to be able to choose RED, BLUE, or
GREEN in my dropdown box, and have my vlookup look in that selected tab.
Currently I have the formula as
=VLOOKUP(A5,RED!$A$1:$D$10,4,FALSE). I want the RED portion to correspond
to my dropdown box. In actuality I only want part of my table array to
change accordingly to my dropdown box. -Doug

  #3   Report Post  
Doug Laidlaw
 
Posts: n/a
Default

Thank you very much Peo!!! I had been trying to figure out the INDIRECT
function based on other postings, and your example was perfect for me to
apply into my spreadsheet. Also, many thanks to Frank Kabel who has also
posted help to INDIRECT questions.

"Peo Sjoblom" wrote:

=VLOOKUP(A5,INDIRECT("'"&A1&"'!$A$1:$D$10"),4,0)


Regards,

Peo Sjoblom

"Doug Laidlaw" wrote:

Let's say I have one tab with just my formulas and then 3 tabs of data which
we'll call RED, BLUE, & GREEN. In cell A1 on my formula page I created a
dropdown box using the List (Data\Validation).

How do I make a formula, vlookup in this case, in cell B5 to that looks as
A5 and refers to the sheetname in my dropdown box in cell A1 rather than the
sheetname itself? In other words I want to be able to choose RED, BLUE, or
GREEN in my dropdown box, and have my vlookup look in that selected tab.
Currently I have the formula as
=VLOOKUP(A5,RED!$A$1:$D$10,4,FALSE). I want the RED portion to correspond
to my dropdown box. In actuality I only want part of my table array to
change accordingly to my dropdown box. -Doug

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
Creating a formula that references other sheets WisconsinMike Excel Worksheet Functions 1 December 29th 04 05:50 PM
Excel should let me refer to the same formula on multiple sheets In need of help Excel Worksheet Functions 1 December 16th 04 08:21 PM
dynamic year to date formula snax500 Excel Worksheet Functions 5 December 13th 04 11:03 PM
Dynamic Year-To-Date Formula snax500 Excel Worksheet Functions 3 December 10th 04 08:56 PM
Excel2K: Is it possible to use dynamic named ranges in custom data validation formula? Arvi Laanemets Excel Discussion (Misc queries) 0 December 2nd 04 11:29 AM


All times are GMT +1. The time now is 10:48 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"