+ Reply to Thread
Results 1 to 6 of 6

Importing data and automatic updating

  1. #1
    Registered User
    Join Date
    01-20-2018
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    10

    Importing data and automatic updating

    Hi,



    I am intermediate user of excel with no coding background. Not sure if I need to use power query or not for this. If not, any VBA code to accomplish the same would be great.



    I want to automate the consolidation of data and processing it for 10 production lines.



    Each production line has its own folder on the drive.



    Within each line's folder, there is a monthly folder example - January, February, March, April etc.



    Within each Monthly folder there is a day folder - May 1, May 2 , May 3, etc.



    Within each day there are 3 excel files - Shift 1, Shift 2 and Shift 3.




    There is a master file located elsewhere on the drive which processes data that is manually transferred to the master file - which is a pain and super time consuming.



    The master file contains 2 worksheets for each production line. I would like to copy and paste specific range of cells (H9:R24) from the shift production line files into specific worksheets within the master file specifically made for those production lines.



    The column before the cell ranges where I would like to paste the data (in the master file) contains dates and hence I am hoping that the code/query will help me paste via matching the date from within the shift excel file.



    Each shift excel file is exactly the same in terms of naming of columns, formatting, formulas etc.



    Once pasted into the specific worksheet within the master file, cells in another worksheet (within the master file) use these numbers to process these via formulas and more numbers are generated such as waste % etc. which will be automatically plotted on different graphs.



    I would like to super automate this process with a click of the button in the master file to access the data within those files, copy and paste into specific cells in specific worksheets within the master file and process data according to specified formula (already within the cell) to ultimately give processed numbers and graphs for each line for the previous day.



    This needs to be repeated for 30 files - 3 files each for each day for 10 lines - every single day first thing in the morning.



    Not sure if I need to use power query or not for this. If not, any VBA code to accomplish the same would be great.



    Requesting you kindest help.



    Thank you !


    Waste Data Project Image.PNG
    Last edited by hopeful_positive; 04-18-2018 at 12:27 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Importing data and automatic updating

    Hi and welcome to the forum,

    We have a great answer for you.... Excel 2016 has a newer tool called Get & Transform that does almost exactly what you request. The older tool was called Power Query but the new stuff is in name only. Learn more about Power Query (Get & Transform in 2016) and you can nail this problem.

    http://excelunplugged.com/2015/02/10...n-power-query/
    https://www.myonlinetraininghub.com/...-from-a-folder

    Power Query is much easier to learn and use than VBA but it will take you a few days to read and learn before it becomes clear how much it can do for you.

    I hope this answer helps you solve your problem.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    01-20-2018
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    10

    Re: Importing data and automatic updating

    Thanks MarvinP.

    Due to the task being sensitive to time, I am unable to learn it quickly but I do have aptitude and technical ability - non coding.

    I have imported data from a file using power query but how do I tell the query editor to copy and paste a certain range of data into another worksheet which will then process the data further.

    What I am seeking help for - The master file copies data from other files and then once pasted, the numbers are processed to generate more numbers and also graphs.

    The master file has 2 worksheets for each production line (10 lines, 3 shifts for each line).

    Please help.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Importing data and automatic updating

    Hi hopeful,

    When you bring the data into Power Query you can remove columns or rows of data, leaving what you want. Then you close PQ and the remaining data ends up in the normal Excel sheet. You then do formulas and graphs from the data in normal Excel. You need to look at Power Query as just another tool with functions to limit/filter or sort or transpose the data before it gets into Excel. If you add more files into the folder, PQ can refresh using these new files. PQ is much easier to use and understand than VBA.

  5. #5
    Registered User
    Join Date
    01-20-2018
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    10

    Re: Importing data and automatic updating

    Please refer the the original post
    Last edited by hopeful_positive; 04-18-2018 at 12:27 PM.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Importing data and automatic updating

    Hi,

    This problem is a matter of you learning enough about Excel to accomplish your need(s). Start by doing what you need to a single file or folder. Then enhance the process to expand it to the next level.

    I still lean towards using Power Query as all your data looks the same for all the sheets you are pulling in. Can you tell what date the file is from its name? If not you can change the Source of a Power Query to move from a single file to different files.

    There are lots of YouTube videos showing many different ways that PQ can help you. See one at:
    https://www.bing.com/videos/search?q...9F43&FORM=VIRE
    Note there are over 500,000 rows of data being imported in a few seconds.

    You might also look at:
    https://www.excelguru.ca/blog/2014/1...h-power-query/

+ 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 automatic chart updating/auto updating today function
    By Tux2424 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-26-2012, 04:45 PM
  2. [SOLVED] Need help Disabling Automatic Updating of Data Links
    By DPKologie in forum Excel General
    Replies: 3
    Last Post: 06-13-2012, 08:27 PM
  3. Replies: 5
    Last Post: 02-06-2012, 09:45 AM
  4. Excel 2007 : Automatic updating of daily data
    By DTOP in forum Excel General
    Replies: 0
    Last Post: 06-20-2011, 10:59 AM
  5. Replies: 0
    Last Post: 10-29-2009, 11:54 AM
  6. Replies: 0
    Last Post: 06-06-2008, 09:53 PM
  7. Importing / updating most recent datafile
    By Commander in forum Excel General
    Replies: 5
    Last Post: 06-02-2007, 07:30 AM
  8. Automatic updating with most recent data
    By RobPot in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-21-2005, 08:39 PM

Tags for this Thread

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