Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Variable in VLOOKUP and referencing a cell another file in excel

I have a small account file running over a couple of years. I want to use a
variable in the reference to the previous years figures:

ie. ='C:\Treasurer\Data\SCLROC - 2005-06 - Accounts - 1.xls'!D70

I want to use a variable for the year (2005-06) so I can input it once and
all refernces will change each year.

Can anyone help me please.

I also have my sport members on file and I need to refernce teh file using
VLOOKUP.

I need to change the month and year value, as in,
VLOOKUP(A3,'Availability 11.05'!$A$1:$U$120,8,FALSE)

Where 'Availability 11.05' is a workbook in the same file.

I would like to be able to put 11.05 (or the full workbook name) in a cell
and all the formulas use this in their reference. I have over 80 members and
chaning each one (even with copy and past) is time consuming.

Thanks for all your help.

DaveT
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 459
Default Variable in VLOOKUP and referencing a cell another file in excel

Dave T at home wrote:
[cut]

Hi Dave,

I also have my sport members on file and I need to refernce teh file
using VLOOKUP.

I need to change the month and year value, as in,
VLOOKUP(A3,'Availability 11.05'!$A$1:$U$120,8,FALSE)

Where 'Availability 11.05' is a workbook in the same file.

I would like to be able to put 11.05 (or the full workbook name) in a
cell and all the formulas use this in their reference. I have over
80 members and chaning each one (even with copy and past) is time
consuming.


If (if) 'Availability 11.05' it's a *worksheet* in the same *workbook* or
file in which you have the VLOOKUP, you can use the INDIRECT function:

=VLOOKUP(A3,INDIRECT("'Availability "&Z1&"'!$A$1:$U$120"),8,FALSE)

Where Z1 is the cell in which you have 11.05



--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


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 vlookup when referencing text pblenis Excel Discussion (Misc queries) 3 June 26th 06 10:12 PM
#VALUE! displayed when referencing a formula cell bazza825 Excel Discussion (Misc queries) 9 April 29th 06 06:38 PM
VLOOKUP referencing another workbook kleivakat Excel Discussion (Misc queries) 2 March 9th 06 05:35 PM
Referencing Time in Excel jjhmbh Excel Discussion (Misc queries) 4 December 19th 05 07:34 PM
vlookup function in excel referencing an access table AJN Excel Worksheet Functions 1 November 7th 04 07:09 PM


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