#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Increment a filename

Hi

I have a spreadsheet which links to information in another spreadsheet.

example ='c:\production\reports\jan\[jan 010107.xls]production'!$a$1

The column is filled using the same formula but different spreadsheet
filename. Each cell is a different date filename.

example ='c:\production\reports\jan\[jan 020107.xls]production'!$a$1
example ='c:\production\reports\jan\[jan 030107.xls]production'!$a$1
etc.... until the end of the month

Is there a way i can use the autofill and increment the filename instead of
manually changing the date for each day? I have to do this for every month.
At the moment i autofill the formula and go back and change the date.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Increment a filename

If the other file is not open then you won't be able to use INDIRECT.

A slightly quicker way of doing it than what you are doing at the
moment is to highlight the cells with the formulae in and do Find &
Replace (CTRL-H):

Find what: jan 020107
Replace with: jan 030107

Then click Replace All.

Adjust the dates as appropriate.

Hope this helps.

Pete

On May 18, 10:10 am, alistew
wrote:
Hi

I have a spreadsheet which links to information in another spreadsheet.

example ='c:\production\reports\jan\[jan 010107.xls]production'!$a$1

The column is filled using the same formula but different spreadsheet
filename. Each cell is a different date filename.

example ='c:\production\reports\jan\[jan 020107.xls]production'!$a$1
example ='c:\production\reports\jan\[jan 030107.xls]production'!$a$1
etc.... until the end of the month

Is there a way i can use the autofill and increment the filename instead of
manually changing the date for each day? I have to do this for every month.
At the moment i autofill the formula and go back and change the date.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Increment a filename

Something like:

=INDIRECT("'C:\[Book" & ROW() & ".xls]Sheet1'!$C$20") in row 1 will pickup
Book1
in row 2 will pickup Book2, etc. This is a method to increment either a
filename or directory name as you copy down the column.
--
Gary''s Student - gsnu200722
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Increment a filename

thats perfect.

thanks so much

"Gary''s Student" wrote:

Something like:

=INDIRECT("'C:\[Book" & ROW() & ".xls]Sheet1'!$C$20") in row 1 will pickup
Book1
in row 2 will pickup Book2, etc. This is a method to increment either a
filename or directory name as you copy down the column.
--
Gary''s Student - gsnu200722

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Increment a filename

I found this very interesting, as I did not think it possible. I copy and
edit links daily to change the file name. I was not able to figure out how
to make this formula work. I would really appreciate your assistance.
My example is:
='\\Algfilesrv\users\Accounts Receivable\SHARE\09-10 FY\MISC\[AR Backlog
Report - JULY 10, 2009.xls]AR Backlog Report'!$D$45

The only thing that changes is the date
='\\Algfilesrv\users\Accounts Receivable\SHARE\09-10 FY\MISC\[AR Backlog
Report - JULY 11, 2009.xls]AR Backlog Report'!$D$45.

I also have one that the tab name changes
=JUL10!C$86
=JUL11!C$86
Please advise.


"Gary''s Student" wrote:

Something like:

=INDIRECT("'C:\[Book" & ROW() & ".xls]Sheet1'!$C$20") in row 1 will pickup
Book1
in row 2 will pickup Book2, etc. This is a method to increment either a
filename or directory name as you copy down the column.
--
Gary''s Student - gsnu200722

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
Cell("filename") doesn't update to new filename when do save as. Louis Excel Worksheet Functions 2 March 22nd 07 07:27 PM
Increment Text Chris Waller Excel Discussion (Misc queries) 2 December 1st 06 11:54 AM
set filename to <filename-date on open bob engler Excel Worksheet Functions 2 July 13th 06 05:11 AM
increment a value by 1 Workshops New Users to Excel 3 March 4th 06 11:06 PM
need to increment value Tom Excel Discussion (Misc queries) 5 June 24th 05 12:54 PM


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