+ Reply to Thread
Results 1 to 1 of 1

Split master file by column values/ rename PQ output file?

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016, 32-bit
    Posts
    92

    Split master file by column values/ rename PQ output file?

    Hi all,

    I'm trying to use PQ to import a file (connection only) and then split the data into separate workbooks based on the value in the second column (there are a bunch of divisions, and each division's data would be on a separate workbook as the end state). See the example workbook attached.

    I have created 2 functions in PQ: fxCn&CleanData (to connect to the table and clean the data), and fxFilterRows (to filter the rows into the separate divisions). Now, I know I can invoke fxFilterRows for each division to separately get the needed subtables, but it seems like there should be an easier way (vba?) to pass the division names in and have this happen automatically (similar to the pivot table that can create subpivots on based on a filter).

    fxCn&CleanData
    Please Login or Register  to view this content.
    fxFilteredRows
    Please Login or Register  to view this content.
    My other issue is how to reference the output of a function in PQ. When invoked in the PQ Editor, the resulting table name is "Invoked FunctionfxCn&CleanData" unless I rename it inside the PQ editor (seems you can't do with VBA?). Also, using "Invoked FunctionfxCn&CleanData" isn't recognized as a valid table.

    **If there's an easier way to get the resulting workbooks from the original file without having to do the PQ functions, I'm all for it, but our machines have memory issues trying to open the original files, which is why I was trying to use PQ.
    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. Macro To append Data from a monthly file to Master file Based on Column Headers
    By ashwankumar in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-05-2016, 11:15 PM
  2. Split one Excel file into multiple files based on values in column A?
    By MetroBOS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-06-2015, 10:59 AM
  3. Compare value in one file to a master file, then output the result
    By scorched87 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-16-2014, 03:41 PM
  4. Want a input box to make a copy of master file and rename it automatically
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-14-2014, 02:39 AM
  5. [SOLVED] VBA Split Data and Move to targeted named file from master file
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-19-2013, 01:06 PM
  6. Replies: 0
    Last Post: 03-04-2013, 03:40 AM
  7. Rename Multiple Excel Sheets Using Master Vlookup Sheet File
    By avantgti7 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-13-2010, 10:58 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