+ Reply to Thread
Results 1 to 3 of 3

Extract Values from external Files

  1. #1
    Forum Contributor
    Join Date
    08-10-2007
    Posts
    106

    Extract Values from external Files

    Hi all,

    how can i extract values from different external files from specific cell..

    i have attached a sample

    I want to copy down from D4 to D8 or E4 to E8

    The File names are exactly in column B.. say 100000.xls, 100001.xls
    The extracted files are all same in every sheet called in B


    I know without VBA i cannot automatise... i will have copy down the formulas even if i get N/A Error
    It doesnt matter.. aslong i open the files manually once. its better than copy and replace the formula with filenames

    Any idea how to copy down the formula according what i need ?
    Attached Files Attached Files
    Last edited by Sultix; 01-12-2012 at 02:40 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    VBA is the way to do this efficiently. Make your list from B4 down, then click the button to add the reference formulas in.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    08-10-2007
    Posts
    106

    Re: Extract Values from external Files

    Hi Jbeau,,

    after figuring out what went wrong, why the file got corrupted etc.. my stupidness... i forgot to edit sheet file name and xls instead xlsx



    i finally fixed it .. your code works for my purpose just perfectly.. i need to try to add possibilities where the reference formulas didnt get add

    yes most files are 6 digit.. but there are also files with same duplicate names.. which is called then for example 100000 - A.xls, for second duplicate 100000 - B.xls
    on my sheet there is also a helper column .. which has only alphabets..

    like this

    100000 A = Filename 100000.xls
    100001 A = Filename 100001 - A.xls
    100001 B = Filename 100001 - B.xls

    although those duplikates are not much, but it would be supergreat if that can be also added and fixed..

    neverthless thank you for your code.. it saved alot of my time.. the rest i can edit manually ;-))



    add possibilities like

+ 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