+ Reply to Thread
Results 1 to 13 of 13

Extracting Data from Closed workbook

  1. #1
    Registered User
    Join Date
    07-19-2016
    Location
    Colombo
    MS-Off Ver
    2016
    Posts
    10

    Extracting Data from Closed workbook

    Dear All,

    I have master workbook and lot of data workbooks. I want to copy cell values from data workbooks to my master workbook. In master workbook I have 4 columns for file path, file name, sheet name and cell name and I want value in next column

    Untitled.png

    Please someone kindly help me to write formula for this. Thanks in advance

    Ueranda
    Last edited by ueranda; 07-20-2016 at 12:04 AM.

  2. #2
    Registered User
    Join Date
    07-19-2016
    Location
    Colombo
    MS-Off Ver
    2016
    Posts
    10

    Re: Extracting Data from Closed workbook

    please help

  3. #3
    Registered User
    Join Date
    07-19-2016
    Location
    Colombo
    MS-Off Ver
    2016
    Posts
    10

    Re: Extracting Data from Closed workbook

    help..............

  4. #4
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,692

    Re: Extracting Data from Closed workbook

    With the lack of relevant information, this will have to do.
    The workbook with this code in it needs to be in the folder that has all the data files also.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-19-2016
    Location
    Colombo
    MS-Off Ver
    2016
    Posts
    10

    Re: Extracting Data from Closed workbook

    Quote Originally Posted by jolivanes View Post
    With the lack of relevant information, this will have to do.
    The workbook with this code in it needs to be in the folder that has all the data files also.
    Please Login or Register  to view this content.

    Dear Sir, Tank you very much for your kind reply to help me. My Actual requirement is like this. I Have a Data folder which contain data for few years. there is sub folder for each year (like 2011, 2012, 2013) and each year folder there are sub folders for months (like January, February, March,..) and in every month folder there are workbooks for each day (like 1.xml, 2.xml, 3.xml,...) In each workbooks there are three data columns for each hour. I have master workbook which contain day in the column A and hour in column B. I need to fill Columns C,D,E of the master worksheet using relevant data.
    So I want to write formula to do this automatically without opening the data workbooks, I have attached sample data workbooks and master workbook for your kind reference herewith
    http://www.mediafire.com/download/w2...hlms1/Test.rar


    Again I thank you very much Sir for your kind help.

  6. #6
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Extracting Data from Closed workbook

    You could use this code:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  7. #7
    Registered User
    Join Date
    07-19-2016
    Location
    Colombo
    MS-Off Ver
    2016
    Posts
    10

    Re: Extracting Data from Closed workbook

    Quote Originally Posted by antoka05 View Post
    You could use this code:
    Please Login or Register  to view this content.
    Regards,
    Antonio
    Dear Sir,

    Thank you very much for your kind help. the code give error in the middle and it has also replaced the values date and hour columns of the my master workbook. I want to only extract three data columns from data workbooks according to the date and hour in the columns A and B in the master workbook. any way again I thank you Sir for helping me

    ueranda

  8. #8
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Extracting Data from Closed workbook

    Try this code that should do what you need and please excuse me for the other code that was not working fine.
    Please correct the folders named Auguest with August else the code doesn't work fine.
    Please Login or Register  to view this content.
    Regards,
    Antonio

  9. #9
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,692

    Re: Extracting Data from Closed workbook

    @ueranda
    Please don't quote. Refer to a Post # if you have to.

  10. #10
    Registered User
    Join Date
    07-19-2016
    Location
    Colombo
    MS-Off Ver
    2016
    Posts
    10

    Re: Extracting Data from Closed workbook

    Dear Sir, I ran your code, but nothing happened. Any way than you sir for your help. Dear Sir, Is it possible to develop custom function
    with four inputs (path name, file name, sheet name, cell name ) to get relevant data value according to the date and hour. I attached
    sample master sheet herewith. In that column Column C contain path name, column D contain file name, column E contain Sheet name, columns F,G,H
    contain Cells name. So it is possible to write function (getdata) with columns C,D,E,F as input to get value for column I

    http://www.mediafire.com/download/0r...xi/Master.xlsx
    again Thank you Sir for your kind help

    ueranda

  11. #11
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,692

    Re: Extracting Data from Closed workbook

    Who do you mean by Dear Sir? antoka05 or jolivanes?
    Even if you mean antoka05, I assume that he/she also wants to know what the relevance of the date and hour is if you have a range (B2:D15) for all the sheets/workbooks

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Extracting Data from Closed workbook

    ueranda

    Try (No error checking)
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    07-19-2016
    Location
    Colombo
    MS-Off Ver
    2016
    Posts
    10

    Re: Extracting Data from Closed workbook

    For post #11

    Sir, I mean antoka05 by Dear sir. Anyway, Sir my original master sheet contain lot of other columns for various calculations. All those calculations are based on the date and hour. I need to extract some data for those calculations from relevant .xlm sheets.

+ 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. [SOLVED] Extracting values from latest closed workbook into current workbook?
    By biznez in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-23-2015, 09:34 PM
  2. extracting data from closed workbook
    By sark in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 11-20-2014, 01:18 AM
  3. Replies: 0
    Last Post: 03-27-2014, 12:38 PM
  4. [SOLVED] Copying data from a closed workbook into an open workbook ignoring excel filter?
    By reach78 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-17-2013, 12:31 AM
  5. Extracting data - vlookups with closed Sheets
    By Libster78 in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 03-16-2010, 12:02 PM
  6. Extracting Data - Open vs Closed
    By VBA Noob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2006, 04:09 PM
  7. [SOLVED] Extracting data from a closed workbook
    By Barb Reinhardt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2006, 10:50 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