+ Reply to Thread
Results 1 to 8 of 8

Pull data from csv files added into a network folder

  1. #1
    Registered User
    Join Date
    10-29-2012
    Location
    Notts, England
    MS-Off Ver
    365 PRO
    Posts
    63

    Cool Pull data from csv files added into a network folder

    Hi everyone,

    Trawled the internet for an answer to this but cant seem to find the solution, hopefully one fo you guys can help me.

    Scenario; I have 3rd party software that pulls reports in .csv files. I want to summarise this data into another spread sheet. Ideally I would like to save these files into a folder on the network and my summary workbook simply looks for this folder and is able to find data within all Excel files saved in there (new files will be added on a monthly basis).

    Once it has found the folder there will be 2 pieces of data to evaluate;
    Cell $B$1; this will be the name of a course (e.g. health & safety, money laundering etc.)
    Column $D; this will contain the score achieved by multiple learners.

    The summary spreadsheet then averages all of the scores for the different courses(in seperate cells)

    The idea is that the .csv files can be pulled and saved into said folder and eliminates the need to manually input this data into the summary spreadsheet.

    I hope this is doable and if so someone can help me along with this.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Pull data from csv files added into a network folder

    hi aaron_burr, can you upload a couple of CSV-files and what the result should look like?

  3. #3
    Registered User
    Join Date
    10-29-2012
    Location
    Notts, England
    MS-Off Ver
    365 PRO
    Posts
    63

    Re: Pull data from csv files added into a network folder

    UK non-core report.xlsxUK Core report.xlsxSummary sheet.xlsx

    Hi Watersev, thanks for the reply.

    Ive attached 2 reports and the summary sheet. Probably worth mentioning that they dont have to be .csv files as I initially thought.

    The summary is relatively straight forward and only needs to average the D column on each report in the corresponding cell on the summary sheet.

    This is well beyond me so apologies for the lack of any suggestions/ ideas from myself

    Thanks

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Pull data from csv files added into a network folder

    please check attachment, press Run button or run code "test"(ALT+F8, test, Run)
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-29-2012
    Location
    Notts, England
    MS-Off Ver
    365 PRO
    Posts
    63

    Re: Pull data from csv files added into a network folder

    This is perfect, thanks for your help Watersev, much appreciated.

  6. #6
    Registered User
    Join Date
    10-29-2012
    Location
    Notts, England
    MS-Off Ver
    365 PRO
    Posts
    63

    Re: Pull data from csv files added into a network folder

    Hi,

    Would you be able to help me amend this code to report on other data, i have tried to play around with it myself to no avail.

    Essentially it tis the same as the above but rather than Averaging A1:A i would like the macro to COUNTIF the word cancelled in B1:B (these cells will contain other data and not just the word cancelled).

    The formula =COUNTIF(B7:B1000,"=*CANCELLED*") works fine in Excel but I cant get it to translate into the code supplied in the last post.

  7. #7
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Pull data from csv files added into a network folder

    try this out:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    10-29-2012
    Location
    Notts, England
    MS-Off Ver
    365 PRO
    Posts
    63

    Re: Pull data from csv files added into a network folder

    Perfect again, think I need to get myself on a VBA course as Excel formulas clearly dont translate exactly into VBA.

+ 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. i need a macro to pull excel files from a folder and print them
    By kmraz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-06-2013, 06:53 PM
  2. [SOLVED] Macro to pull in files from folder that is unknown
    By SeaniGeld in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2013, 02:23 PM
  3. Replies: 1
    Last Post: 08-03-2011, 10:13 AM
  4. MACRO that can copy files from a network folder
    By Traymond in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-07-2011, 07:53 PM
  5. [SOLVED] Cannot save excel files to a folder on a network
    By Robbie in forum Excel General
    Replies: 1
    Last Post: 06-09-2006, 02:30 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