+ Reply to Thread
Results 1 to 4 of 4

data from many files

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    Jersey
    MS-Off Ver
    Excel 2010
    Posts
    59

    data from many files

    Dear all

    I hope you can help on this one.
    I am trying to load data from several hundred files.
    I am aware of consolidation and formula to set it up but is there a way I can take a list of filesnames eg
    fileone
    filetwo
    thirdfile

    and enter these into a formula to extract a given column without setting up each file manually?

    Ta

    Kevin
    desired outcome.xlsx
    fileone.xlsx
    filetwo.xlsx
    thirdfile.xlsx

  2. #2
    Registered User
    Join Date
    07-12-2013
    Location
    Jersey
    MS-Off Ver
    Excel 2010
    Posts
    59

    Re: data from many files

    Just to clarify a little further

    rather than this code entered into A1
    =[fileone.xlsx]Sheet1!$A$1

    I would like to enter this
    =[B1]Sheet1!$A$1
    where B1 would hold the file name fileone.xlsx

    Obviously this doesn't work
    Is there a way with formulas that it can be done?

    Regards Kevin

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: data from many files

    I couldn't get what you want to work but this might be an alternative using Named Ranges to get the files.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    07-12-2013
    Location
    Jersey
    MS-Off Ver
    Excel 2010
    Posts
    59

    Re: data from many files

    hi all

    I have researched this and found out how to do it with indirect function but it is impratical to have all files open.

    I have decided to use VB code and I have had some success.

    The problem
    I have many files with vertical lists of numbers all in the same column F.
    I would like to merge all these files so that each list appears in its own column with a file name at the top.
    eg
    file 1
    3
    4
    5
    6

    file 2
    9
    8
    7
    6

    desired outcome
    file 1 file 2
    3 9
    4 8
    5 7
    6 6

    thanks in advance

+ 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. Replies: 1
    Last Post: 11-19-2013, 05:51 AM
  2. Replies: 0
    Last Post: 03-13-2013, 09:08 PM
  3. Replies: 0
    Last Post: 11-27-2012, 01:43 PM
  4. [SOLVED] Data consolidation from Multiple CSV files and then Split data into number of files
    By neeraj_logani in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-18-2012, 03:59 AM
  5. Opening data files within zip files automatically
    By HandL in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-09-2008, 10:48 AM

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