LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Spreadsheet reference in formula?

I am trying to update the name of a spreadsheet used in a formula
through a cell reference or some tool that replaces the old name with
a new name. Hopefully someone can help me out with this problem.

I am using the following two spreadsheets:
Payroll - Lists name, current salary, benefits, etc
Budget - Uses data from Payroll spreadsheet and formulas in the budget
spreadsheet to forecast future expenses.

Here are the actual spreadsheet names for one month:

Payroll_01-01-08.xls
budget_01-01-08.xls

Right now my formula in the budget_01_01_08.xls spreadsheet looks like
the following:
=VLOOKUP($E2,'T:\Budgets\[Payroll.xls]Current Compensation'!$A$2:$K
$150,7,FALSE)

Each month when I get a new payroll spreadsheet I change the payroll
spreadsheet name from payroll_02_01_08.xls to payroll.xls so that it
will work with the formula each time.

What I would like to do though is have the spreadsheet name referenced
by a cell I calculate in the budget spreadsheet. for example:
=VLOOKUP($E2,'T:\Budgets\[$A$1]Current Compensation'!$A$2:$K
$150,7,FALSE)
Where $A$1 = payroll_01_01_08.xls or whatever the current date
spreadsheet is

or have an easy mechanism by which to replace the old payroll
spreadsheet name with the new payroll spreadsheet name each month. For
example change:
=VLOOKUP($E2,'T:\Budgets\[Payroll_01_01_08.xls]Current Compensation'!$A
$2:$K$150,7,FALSE) to:
=VLOOKUP($E2,'T:\Budgets\[Payroll_02_01_08.xls]Current Compensation'!$A
$2:$K$150,7,FALSE)

I have read about using the indirect.ext function and played around
with it but I ran into a problem with passwords on my files. Basically
for each line I had of the formula calculation it would ask for the
password on the spreadsheet it was referencing. Since I am doing this
formula for 100 people it became very tedious to enter the password
over and over.

Does anyone have any ideas on how I can do the above and not have the
problem of replacing the name of the spreadsheet in each line manually
or having to enter the password for the spreadsheet referenced for
each line the formula is in?

If there are any different ideas on how to do this from the way I am
trying to do it please let me know.

Thanks in advance for any help provided.

John
 
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
Reference to a different spreadsheet Steve Excel Worksheet Functions 4 August 28th 07 09:14 PM
Reference another spreadsheet on a share drive Robert C. New Users to Excel 1 May 23rd 07 09:46 PM
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
absolute cell reference A spreadsheet cell reference that does no help Excel Discussion (Misc queries) 1 January 18th 06 06:56 PM
how do I reference a spreadsheet in a cell Lee_Wrede Excel Worksheet Functions 2 February 25th 05 02:11 AM


All times are GMT +1. The time now is 04:51 AM.

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"