+ Reply to Thread
Results 1 to 2 of 2

Autofill file name into formula when dragging formula down.

  1. #1
    Registered User
    Join Date
    07-07-2010
    Location
    atlanta ga
    MS-Off Ver
    Excel 2007
    Posts
    3

    Autofill file name into formula when dragging formula down.

    Ive finally had time to sit down and start to learn excel and write a couple of workbooks i have needed forevever. Ive learned a lot by reading thru threads and let me say thanks, u really have cut my learning curve,
    Im am stuck though. I cant figure out how to get autofill to advance to the next folder #. Ive posted the way i need it to work below. No matter what options i choose on autofill it doesnt work right.

    ='C:\Users\Andy\Desktop\Office # 1\[0001.xlsm]Information'!$T$14
    ='C:\Users\Andy\Desktop\Office # 1\[0002.xlsm]Information'!$T$14
    ='C:\Users\Andy\Desktop\Office # 1\[0003.xlsm]Information'!$T$14
    ='C:\Users\Andy\Desktop\Office # 1\[0004.xlsm]Information'!$T$14

    Another option i couldnt figure out last nite is as follows. The folder name(number) that needs to advance is located in cell a of the same row. Can I get it to use the value in the cell in the path name.

    i appreciate any help.
    Andy.
    Last edited by NBVC; 07-07-2010 at 02:17 PM. Reason: Against forum rules

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Autofill file name into formula when dragging formula down.

    If you intend to have those workbooks closed you will need to use and addin called Morefunc

    and then apply the INDIRECT.EXT function like so:


    =INDIRECT.EXT("'C:\Users\Andy\Desktop\Office # 1\["&A1&".xlsm]Information'!$T$14")

    where A1 contains text string 0001 and A2 contains 0002 and so on.

    If A1 contains the number 1 and you want to convert to 0001 then:

    =INDIRECT.EXT("'C:\Users\Andy\Desktop\Office # 1\["&TEXT(A1,"0000")&".xlsm]Information'!$T$14")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1