×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Increment File Name

Increment File Name

Increment File Name

(OP)
I want am writing some excel formulas that reference other files.  Is there a way to increment the file name so I do not have to rewrite the formula for every case.  The example i am working on deals with files named WEEK1, and every week a new file will be created WEEK2, WEEK3 etc.

Any thoughts?

RE: Increment File Name

Take a look at the INDIRECT function. So if your first week formula is something like =WEEK1!$A$1 you can change that to =INDIRECT("WEEK"&D1&"!$A$1") where the value in cell D1 (on the same worksheet as the formula) is the week number. If you change the value in D1, the week number reference will change. Modify as needed winky smile

Cheers,
Joerd

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.

RE: Increment File Name

Hi TCPheonix:

I am not sure if this is what you are looking for ... anyway if your file is named according to current week number, then you can get the current week  using the formula ...

=WEEKNUM(TODAY())

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
ANAND Enterprises LLC
http://www.energyefficientbuild.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources