+ Reply to Thread
Results 1 to 5 of 5

How to put similar data in several files into a master file without opening source files

  1. #1
    Registered User
    Join Date
    12-02-2014
    Location
    Romania
    MS-Off Ver
    2010 English
    Posts
    6

    How to put similar data in several files into a master file without opening source files

    Dear developpers,
    I am @user level on Excel. But I wish to improve my knowledge. Anyway here is my problem that I couldn't solve:
    In a common folder I have around 100 excel files, files' names may vary but inside them data formats are identical. My aim is to take specific datas from these files (ex. from 'bilgiler 2' sheet where datas in F8 & F10) and to join them in single synthesis file (MIMAR.xlsx) automatically:
    -To write first 7 letters of file names (as 1204/17,1206/17,1207/17..) in A column in face to corresponding datas (ex. starting in row A48).
    - To write data on F8 in starting from row (ex. H48)
    - To write data on F10 in starting from row (ex. I48)

    These 100 input files increasing every day, thus I should be able to update my master file each time I run the macro.

    Can you help ?

    Attached I also put exemple files to help for your analize.
    Best regards!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How to put similar data in several files into a master file without opening source fil

    Selam.

    Try this Macro.

    It needs to be installed into Mimar.xlsm

    It will create a new sheet each time it is run, but only once a day.
    Delete the sheet with the present date if you want to rum it again.

    My Apologies.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 12-03-2014 at 02:15 PM.

  3. #3
    Registered User
    Join Date
    12-02-2014
    Location
    Romania
    MS-Off Ver
    2010 English
    Posts
    6

    Re: How to put similar data in several files into a master file without opening source fil

    Merhaba mehmetcik,
    Thanks for your quick reply !
    However i couldn't manage it
    I created macro1 in Mimar.xlsm and copied the macro you gave. As I runned, first error was: 'Compile error: expected End Sub'. That was a simple one so I added End Sub at the end of macro. Then runned again and error was: 'Compile Error: For without next'.
    Maybe some lines are missing in your post..?

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: How to put similar data in several files into a master file without opening source fil

    Hi muhendisOE,
    try this
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-02-2014
    Location
    Romania
    MS-Off Ver
    2010 English
    Posts
    6

    Re: How to put similar data in several files into a master file without opening source fil

    Hi nilem,
    It is really great work thank you very much!!
    Unfortunately as I ran on original files I just discovered that some of old files do not have exactly the same format, I mean datas to take are not in the same cell as others. Therefore I would need an additional code to findout correct cell having this information. what I observed is that in all files:
    sheet name is same (ex. bilgiler 2), but cell is different available in 5 different places possible, I attached 2 options ex exemple.
    So something in priority order like:
    If a value between 0.3-2.0 is in F275&F277 take them, else check G275&G277, else check H275&H277, else check F160&F162, else check G160&G162.
    if you make just first 3 conditions i think I can add the rest.
    Attached Files Attached Files

+ 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. Help with data import from files to master file
    By RoyLittle0 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-04-2013, 03:46 PM
  2. Consolidate Data from Multiple Files (Different File Names) into a Master File
    By dspraveen_23 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-08-2012, 12:59 PM
  3. Opening 4 excel files, copying set table data and pasting into "master file".
    By Belloni in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-29-2012, 09:50 AM
  4. Pasting data from a master file to two other files
    By Bob@Sun in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-17-2009, 02:50 PM
  5. Transfering files from lots of files to one single Exel master file.
    By yjacob in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-01-2009, 11:37 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