#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
will
 
Posts: n/a
Default vlookup

Hi,

Is it possible to set the table-array in vlookup to a name referenced by
another cell?
In other words, I would like to be able to have the formula pick from a
different table dependant on a user input, where that user input is the name
of 1 of 2 possible array names.

Thus, I have a sales report where I am comparing actual to budget for each
customer. Half way through the year we will redo the budget and call it
forecast1. I want to set up one monthly report so that it reports on either
budget or forecast1 depending on whether I have "budget" or "forecast1"
entered in cell A1, say. The formula is therefore =vlookup(a9,a1,3) where a9
will be a customer's name and 3 will be the month number. However, when I try
this it doesn't seem to work. If I replace a1 with "Budget" or "Forecast1" it
will work.

Any help greatfully received!

Will
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Philip J Smith
 
Posts: n/a
Default vlookup

Use

=vlookup(a9,indirect(a1),3)

This assumes that "Budget" and "Forecast1" are named ranges.

Regards
Phil

"will" wrote:

Hi,

Is it possible to set the table-array in vlookup to a name referenced by
another cell?
In other words, I would like to be able to have the formula pick from a
different table dependant on a user input, where that user input is the name
of 1 of 2 possible array names.

Thus, I have a sales report where I am comparing actual to budget for each
customer. Half way through the year we will redo the budget and call it
forecast1. I want to set up one monthly report so that it reports on either
budget or forecast1 depending on whether I have "budget" or "forecast1"
entered in cell A1, say. The formula is therefore =vlookup(a9,a1,3) where a9
will be a customer's name and 3 will be the month number. However, when I try
this it doesn't seem to work. If I replace a1 with "Budget" or "Forecast1" it
will work.

Any help greatfully received!

Will

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
Using single cell reference as table array argument in Vlookup CornNiblet Excel Worksheet Functions 3 September 22nd 05 09:15 AM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 08:53 AM.

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

About Us

"It's about Microsoft Excel"