#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Variable file names

I have a formula that references another excel workbook. The name of this
workbook will be different depending on the date. Yesterday, I summed
numbers from C:/Testing/Errors - 021609; today I will sum numbers from a
different workbook named C:/Testing/Erros - 021709. In my worksheet, I have
to manually change the reference to reflect the current date. Is there a way
to make that name variable based on today's date? Any help would be
appreciated.

Paul Peterson
Velox Consulting, LLC
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Variable file names

Use a formula to get the string you use in your formula in a cell... say A1
then use this in B1
=INDIRECT(A1)

Once you get that working then you can replace A1 in the above with the
formula (without the = ofcourse)...

Your string formula should look something like
="'[C:/Testing/Erros - " & text(today(),"mmddyy") & "]Sheetname!'A1:A100"

"Paul Peterson - Velox Consulting, LLC" wrote:

I have a formula that references another excel workbook. The name of this
workbook will be different depending on the date. Yesterday, I summed
numbers from C:/Testing/Errors - 021609; today I will sum numbers from a
different workbook named C:/Testing/Erros - 021709. In my worksheet, I have
to manually change the reference to reflect the current date. Is there a way
to make that name variable based on today's date? Any help would be
appreciated.

Paul Peterson
Velox Consulting, LLC

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Variable file names

Outstanding - thanks.

"Sheeloo" wrote:

Use a formula to get the string you use in your formula in a cell... say A1
then use this in B1
=INDIRECT(A1)

Once you get that working then you can replace A1 in the above with the
formula (without the = ofcourse)...

Your string formula should look something like
="'[C:/Testing/Erros - " & text(today(),"mmddyy") & "]Sheetname!'A1:A100"

"Paul Peterson - Velox Consulting, LLC" wrote:

I have a formula that references another excel workbook. The name of this
workbook will be different depending on the date. Yesterday, I summed
numbers from C:/Testing/Errors - 021609; today I will sum numbers from a
different workbook named C:/Testing/Erros - 021709. In my worksheet, I have
to manually change the reference to reflect the current date. Is there a way
to make that name variable based on today's date? Any help would be
appreciated.

Paul Peterson
Velox Consulting, LLC

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Variable file names

Hi,

One comment - INDIRECT only works if the referenced file is open.


--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Paul Peterson - Velox Consulting, LLC" wrote:

Outstanding - thanks.

"Sheeloo" wrote:

Use a formula to get the string you use in your formula in a cell... say A1
then use this in B1
=INDIRECT(A1)

Once you get that working then you can replace A1 in the above with the
formula (without the = ofcourse)...

Your string formula should look something like
="'[C:/Testing/Erros - " & text(today(),"mmddyy") & "]Sheetname!'A1:A100"

"Paul Peterson - Velox Consulting, LLC" wrote:

I have a formula that references another excel workbook. The name of this
workbook will be different depending on the date. Yesterday, I summed
numbers from C:/Testing/Errors - 021609; today I will sum numbers from a
different workbook named C:/Testing/Erros - 021709. In my worksheet, I have
to manually change the reference to reflect the current date. Is there a way
to make that name variable based on today's date? Any help would be
appreciated.

Paul Peterson
Velox Consulting, LLC

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Variable file names

The function you'd want to use that's built into excel is =indirect(). But that
function returns an error if the sending workbook is closed.

If that's a problem, then Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/
or
http://xcell05.free.fr/morefunc/english/index.htm

That includes =indirect.ext() that may help you.

Paul Peterson - Velox Consulting, LLC wrote:

I have a formula that references another excel workbook. The name of this
workbook will be different depending on the date. Yesterday, I summed
numbers from C:/Testing/Errors - 021609; today I will sum numbers from a
different workbook named C:/Testing/Erros - 021709. In my worksheet, I have
to manually change the reference to reflect the current date. Is there a way
to make that name variable based on today's date? Any help would be
appreciated.

Paul Peterson
Velox Consulting, LLC


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Variable file names

Hey Dave,
I pulled down the funcustomize.dll file from
http://xcell05.free.fr/english/index.html but I am having trouble
understanding how to hook it into my Excel 2003. I unzipped the file and
copied the contents to my C:\Documents and Settings\user\Application
Data\Microsoft\AddIns directory. In Excel I selected ToolsAdd-ins and
selected the Funcustomize option. However, when I go to insert a function I
don't see any of the funcustomize functions. Is there something else I need
to do to see these?

Thanks for your help.

"Dave Peterson" wrote:

The function you'd want to use that's built into excel is =indirect(). But that
function returns an error if the sending workbook is closed.

If that's a problem, then Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/
or
http://xcell05.free.fr/morefunc/english/index.htm

That includes =indirect.ext() that may help you.

Paul Peterson - Velox Consulting, LLC wrote:

I have a formula that references another excel workbook. The name of this
workbook will be different depending on the date. Yesterday, I summed
numbers from C:/Testing/Errors - 021609; today I will sum numbers from a
different workbook named C:/Testing/Erros - 021709. In my worksheet, I have
to manually change the reference to reflect the current date. Is there a way
to make that name variable based on today's date? Any help would be
appreciated.

Paul Peterson
Velox Consulting, LLC


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Variable file names

And if you start typing:
=indirect.ext(
and hit ctrl-shift-A, do you get any help?


tjfwestcoast wrote:

Hey Dave,
I pulled down the funcustomize.dll file from
http://xcell05.free.fr/english/index.html but I am having trouble
understanding how to hook it into my Excel 2003. I unzipped the file and
copied the contents to my C:\Documents and Settings\user\Application
Data\Microsoft\AddIns directory. In Excel I selected ToolsAdd-ins and
selected the Funcustomize option. However, when I go to insert a function I
don't see any of the funcustomize functions. Is there something else I need
to do to see these?

Thanks for your help.

"Dave Peterson" wrote:

The function you'd want to use that's built into excel is =indirect(). But that
function returns an error if the sending workbook is closed.

If that's a problem, then Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/
or
http://xcell05.free.fr/morefunc/english/index.htm

That includes =indirect.ext() that may help you.

Paul Peterson - Velox Consulting, LLC wrote:

I have a formula that references another excel workbook. The name of this
workbook will be different depending on the date. Yesterday, I summed
numbers from C:/Testing/Errors - 021609; today I will sum numbers from a
different workbook named C:/Testing/Erros - 021709. In my worksheet, I have
to manually change the reference to reflect the current date. Is there a way
to make that name variable based on today's date? Any help would be
appreciated.

Paul Peterson
Velox Consulting, LLC


--

Dave Peterson


--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Variable file names

I pulled down the funcustomize.dll file

I think you grabbed the wrong file. You want the MOREFUNC.XLL file.

--
Biff
Microsoft Excel MVP


"Dave Peterson" wrote in message
...
And if you start typing:
=indirect.ext(
and hit ctrl-shift-A, do you get any help?


tjfwestcoast wrote:

Hey Dave,
I pulled down the funcustomize.dll file from
http://xcell05.free.fr/english/index.html but I am having trouble
understanding how to hook it into my Excel 2003. I unzipped the file and
copied the contents to my C:\Documents and Settings\user\Application
Data\Microsoft\AddIns directory. In Excel I selected ToolsAdd-ins and
selected the Funcustomize option. However, when I go to insert a
function I
don't see any of the funcustomize functions. Is there something else I
need
to do to see these?

Thanks for your help.

"Dave Peterson" wrote:

The function you'd want to use that's built into excel is =indirect().
But that
function returns an error if the sending workbook is closed.

If that's a problem, then Laurent Longre has an addin (morefunc.xll)
at:
http://xcell05.free.fr/
or
http://xcell05.free.fr/morefunc/english/index.htm

That includes =indirect.ext() that may help you.

Paul Peterson - Velox Consulting, LLC wrote:

I have a formula that references another excel workbook. The name of
this
workbook will be different depending on the date. Yesterday, I
summed
numbers from C:/Testing/Errors - 021609; today I will sum numbers
from a
different workbook named C:/Testing/Erros - 021709. In my worksheet,
I have
to manually change the reference to reflect the current date. Is
there a way
to make that name variable based on today's date? Any help would be
appreciated.

Paul Peterson
Velox Consulting, LLC

--

Dave Peterson


--

Dave Peterson



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Variable file names

I didn't.

But thanks for the correct response Biff.

"T. Valko" wrote:

I pulled down the funcustomize.dll file


I think you grabbed the wrong file. You want the MOREFUNC.XLL file.

--
Biff
Microsoft Excel MVP

"Dave Peterson" wrote in message
...
And if you start typing:
=indirect.ext(
and hit ctrl-shift-A, do you get any help?


tjfwestcoast wrote:

Hey Dave,
I pulled down the funcustomize.dll file from
http://xcell05.free.fr/english/index.html but I am having trouble
understanding how to hook it into my Excel 2003. I unzipped the file and
copied the contents to my C:\Documents and Settings\user\Application
Data\Microsoft\AddIns directory. In Excel I selected ToolsAdd-ins and
selected the Funcustomize option. However, when I go to insert a
function I
don't see any of the funcustomize functions. Is there something else I
need
to do to see these?

Thanks for your help.

"Dave Peterson" wrote:

The function you'd want to use that's built into excel is =indirect().
But that
function returns an error if the sending workbook is closed.

If that's a problem, then Laurent Longre has an addin (morefunc.xll)
at:
http://xcell05.free.fr/
or
http://xcell05.free.fr/morefunc/english/index.htm

That includes =indirect.ext() that may help you.

Paul Peterson - Velox Consulting, LLC wrote:

I have a formula that references another excel workbook. The name of
this
workbook will be different depending on the date. Yesterday, I
summed
numbers from C:/Testing/Errors - 021609; today I will sum numbers
from a
different workbook named C:/Testing/Erros - 021709. In my worksheet,
I have
to manually change the reference to reflect the current date. Is
there a way
to make that name variable based on today's date? Any help would be
appreciated.

Paul Peterson
Velox Consulting, LLC

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson
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
reference other worksheets via variable names Huggy Excel Worksheet Functions 4 June 26th 08 05:52 AM
Variable Worksheet Names Karen53 Excel Worksheet Functions 4 August 28th 07 01:12 PM
creating a variable for file names BEAST Excel Discussion (Misc queries) 2 May 12th 07 09:39 PM
variable file names Brettjg Excel Discussion (Misc queries) 2 March 2nd 07 10:56 AM
Variable Names in Formulas Paulo Excel Discussion (Misc queries) 2 March 29th 06 01:16 PM


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