LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Armando
 
Posts: n/a
Default Using VLOOKUP with abitlity to choose from multiple defined names.

I have created multiple defined names or tables in Excel (e.g. Table1,
Table2, etc.)
Each table contains the ingredients and measurements for each recipe.

Using vlookup I have defined the lookup value as the Recipe# and based on
that would like to link the defined table range for the corresponding
Recipe#. For example, if I specify "1" as recipe#1 the vlookup should refer
to the defined name "Table1" and return the ingredient for the default column.

Example (two worksheets contain):
Recipe#1
Table1
A B C
1 can tomato
1 lb beef

Recipe#2
Table2
A B C
2 lbs chicken breasts
1 med onion

The third worksheet (or main wks) contains the grocery list
Lookup Recipe# = 1 (cell A1)
On a separate cell (C2) I put in a formula to concatenate "Table" and "1"
resulting in "Table1" to be used as an array in my vlookup formula:
vlookup(A1,C2,1) which should "1" in column A, row 1; vlookup(A1,C2,2)=can;
vlookup(A1,C2,1)=tomato and so forth, resulting as follows:
A B C
1 can tomato
1 lb beef
Obviously lookup formulas do not accept cell references as defined
names/arrays and it would return "#VALUE!" and this setup does not work for
me.
Would appreciate a solution.

 
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
Rename Defined Names Sige Excel Worksheet Functions 3 January 13th 06 05:44 PM
Vlookup with multiple criteria nick Excel Worksheet Functions 8 October 10th 05 03:46 PM
How to choose multiple itmes from a Pivot Table Page drop down men Michael Excel Discussion (Misc queries) 2 September 12th 05 07:18 PM
Vlookup across multiple tabs Hirsch Excel Worksheet Functions 2 July 20th 05 07:42 PM
Multiple Vlookup? changeable Excel Worksheet Functions 0 November 9th 04 11:52 AM


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