+ Reply to Thread
Results 1 to 5 of 5

Excel Power Query - Only New Files Using 'From Folder'

  1. #1
    Registered User
    Join Date
    04-29-2017
    Location
    London
    MS-Off Ver
    2016 Professional
    Posts
    50

    Excel Power Query - Only New Files Using 'From Folder'

    Dear All


    I have a situation where each week 100 csv files are being uploaded automatically to a specific folder. Each csv file is very small, containing 7 rows x 12 columns of data.

    I need to bring these files in to Excel so that the data contained in the csv files may be checked and any amendments made to the Excel data only.

    I was going to use the 'From Folder' functionality as part of Power Query to import the data in the csv files in to one table in Excel.

    Is it possible to utilise the 'From Folder' functionality to only import the data in files that have been added since the previous Refresh and append this new data to the existing table? The reason for this is to preserve any amended made to the previous weeks data in the Excel table. I appreciate this is not the normal functionality of the 'From Folder' feature.


    If anyone can think of a solution or direct my to an article discussing only importing new files using 'From Folder' I would be very grateful



    SH

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,946

    Re: Excel Power Query - Only New Files Using 'From Folder'

    You should consider either
    1) only making amendments to the source csv files and refreshing your query to get the corrected data from the csv files.
    or 2) exporting the amended data and overwriting the out-of-date csv files.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    04-29-2017
    Location
    London
    MS-Off Ver
    2016 Professional
    Posts
    50

    Re: Excel Power Query - Only New Files Using 'From Folder'

    Hi Bernie

    Unfortunately amending the source csv files is not an option as these must be retained unchanged.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,946

    Re: Excel Power Query - Only New Files Using 'From Folder'

    Can you move those files to another folder so that their data doesn't get re-imported when you refresh the query, and append any imported data to another table (as values) so that the edited values don't get over-written when the query is refreshed?

  5. #5
    Registered User
    Join Date
    04-29-2017
    Location
    London
    MS-Off Ver
    2016 Professional
    Posts
    50

    Re: Excel Power Query - Only New Files Using 'From Folder'

    Thanks Bernie, I didn't think of that.

+ 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. Sub-Forum for Excel Power Tools (Power Query, Power Pivot & Power BI)
    By chullan88 in forum Suggestions for Improvement
    Replies: 10
    Last Post: 06-28-2018, 02:25 PM
  2. Replies: 0
    Last Post: 04-05-2018, 01:16 AM
  3. Excel 2010 Power Query from folder with CSV
    By davidbrennan in forum Excel General
    Replies: 0
    Last Post: 03-22-2017, 09:56 AM
  4. Power Query - Get external data from Folder
    By crainaud in forum Excel General
    Replies: 0
    Last Post: 03-24-2016, 12:49 PM
  5. Power Query, merge 2 or more large files in one
    By Remphan in forum Excel General
    Replies: 0
    Last Post: 03-02-2016, 04:28 AM
  6. Power Query, merge 2 or more large files in one
    By Remphan in forum Excel General
    Replies: 0
    Last Post: 03-02-2016, 03:30 AM
  7. Replies: 2
    Last Post: 07-19-2015, 06:04 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