+ Reply to Thread
Results 1 to 3 of 3

Automatically fill in links name

  1. #1
    Registered User
    Join Date
    03-05-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    2

    Automatically fill in links name

    Hello,

    I have an Excel file which extracts data from other excel files (the other excel files are named 1.xls, 2.xls, 3.xls, etc.). So the formula in the cell is for example: ='C:\[1.xls]Sheet1'!A1
    Is there a way to let Excel fill in the next excel file address for the next cell? So that i would get this:

    ='C:\[1.xls]Sheet1'!A1
    ='C:\[2.xls]Sheet1'!A1
    ='C:\[3.xls]Sheet1'!A1
    ='C:\[4.xls]Sheet1'!A1
    etc..

    Because i have about 500 excel files, and otherwise i have to change the file number manually...

  2. #2
    Registered User
    Join Date
    09-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Automatically fill in links name

    if you have the first 4 written out, what happens if you select them all and click and drag down? Excel should auto fill the numbers in order.

    If not, in column A type "=C:\[", in column B type "1" and in column C type ".xls]Sheet1'!A1". In column D type the formula "=concatenate(A1,B1,C1).

    Select those cells and drag down to cell 500 and coumn D should contain the data you want. To "flatten" it select the column, press CTRL C then CTRL V and paste as values.
    Last edited by jceg316; 03-05-2014 at 07:24 AM.

  3. #3
    Registered User
    Join Date
    03-05-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Automatically fill in links name

    If i select all 4 cells and drag it down I get:
    ='C:\[1.xls]Sheet1'!A1
    ='C:\[2.xls]Sheet1'!A1
    ='C:\[3.xls]Sheet1'!A1
    ='C:\[4.xls]Sheet1'!A1
    ='C:\[1.xls]Sheet1'!A1
    ='C:\[2.xls]Sheet1'!A1
    ='C:\[3.xls]Sheet1'!A1
    ='C:\[4.xls]Sheet1'!A1
    and so on

    And your second solution, excel already gives an error when type in column A "=C:\[" because thats not a valid formula.
    Last edited by siwitje; 03-05-2014 at 07:41 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Links do not automatically update
    By TinaHudson in forum Excel General
    Replies: 2
    Last Post: 09-16-2013, 09:12 AM
  2. Links not updating automatically
    By amar05 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-01-2013, 07:43 PM
  3. Formula to Automatically Fill Blank With Next fill cell's data?
    By VMoney in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-22-2013, 05:11 PM
  4. [SOLVED] Can we update links automatically somehow after making a copy of a sheet with links?
    By StargateFanFromWork in forum Excel General
    Replies: 4
    Last Post: 12-08-2005, 05:40 PM
  5. [SOLVED] automatically Updating links
    By Brian in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-11-2005, 11:06 PM

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